/* =========================================================
   Artur – digitálna vizitka
   Farby a písma sú v :root. Obsah sa upravuje v script.js (CONFIG).
   ========================================================= */

:root {
  --paper: #F1ECE2;     /* pozadie – teplý papier */
  --surface: #F8F5EE;   /* svetlé plochy */
  --ink: #13231C;       /* hlavný text */
  --ink-2: #2B3A33;     /* sekundárny text */
  --muted: #5A655F;     /* tichý text, štítky */
  --line: #D8D0C0;      /* linky */
  --ph-line: #B9B0A0;   /* okraj placeholderov */
  --accent: #C2462C;    /* tehlovo-červená */
  --accent-hover: #A93A23;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --t: .2s ease;
  --gutter: 20px;

  color-scheme: light;
}

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
[tabindex="-1"]:focus { outline: none; }

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

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

/* ---------- Typografia ---------- */

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.h2 {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 11vw, 58px);
  line-height: 1;
  letter-spacing: -.01em;
}
.h2--sm { font-size: clamp(34px, 9vw, 46px); }

.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
}

.lead {
  margin-top: 16px;
  max-width: 42ch;
  font-size: 17px;
  color: var(--ink-2);
}

/* ---------- Tlačidlá a odkazy ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35em;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 16px/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t), color var(--t), border-color var(--t);
}

.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--accent); color: #FFFFFF; }

.btn--accent { background: var(--accent); color: #FFFFFF; }
.btn--accent:hover { background: var(--accent-hover); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--muted);
}
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  transition: color var(--t), text-underline-offset var(--t);
}
.link:hover { color: var(--ink-2); text-underline-offset: 3px; }
.link--light:hover { color: var(--paper); }

/* ---------- Horná lišta a hlavička ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
}
.topbar__logo {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}

.hero {
  position: relative;
  padding: 28px 0 60px;
}
.hero__label { padding-right: 140px; }

.hero__name {
  margin-top: 44px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 19vw, 108px);
  line-height: .92;
  letter-spacing: -.015em;
}
.hero__name span,
.hero__name em { display: block; }
.hero__name em { overflow-wrap: anywhere; }

.hero__lead {
  margin-top: 26px;
  max-width: 34ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

/* Nálepka */
.sticker {
  position: absolute;
  top: 14px;
  right: 0;
  width: 118px;
  height: 118px;
}
.sticker__dots {
  position: absolute;
  inset: -22px -16px -26px -34px;
  background-image: radial-gradient(circle, var(--ph-line) 1px, transparent 1.6px);
  background-size: 9px 9px;
}
.sticker__disc {
  position: relative;
  display: block;
  width: 118px;
  height: 118px;
  transform: rotate(-9deg);
}
.sticker__ring {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: tocenie 30s linear infinite;
}
@keyframes tocenie { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .sticker__ring { animation: none; }
}

/* ---------- Sekcie ---------- */

main { flex: 0 0 auto; }

.section {
  position: relative;
  padding-block: 60px;
}
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--line);
}

.fade { transition: opacity var(--t); }
.fade.is-hidden { opacity: 0; }

/* ---------- 01 Výber ---------- */

.tiles {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 136px;
  padding: 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--t), color var(--t), border-color var(--t);
}
.tile:hover { border-color: var(--ink-2); }

.tile svg {
  width: 28px;
  height: 28px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile__name {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
}
.tile__sub {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  transition: color var(--t);
}

.tile[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.tile[aria-pressed="true"] .tile__sub { color: var(--ph-line); }
.tile[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- 02 Služby (akordeón) ---------- */

.acc {
  margin-top: 30px;
  border-bottom: 1px solid var(--line);
}
.acc__item { border-top: 1px solid var(--line); }
.acc__h { font: inherit; }

.acc__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 80px;
  padding: 16px 0;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.acc__num {
  flex: none;
  width: 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.acc__title {
  flex: 1;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
}
.acc__icon {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t);
}
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__btn:hover .acc__icon { border-color: var(--ink); }

.is-open .acc__icon { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.is-open .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t);
}
.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { min-height: 0; overflow: hidden; }
.acc__body { padding: 0 0 30px 38px; }

.acc__desc { color: var(--ink-2); }

.acc__list {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.acc__list li {
  position: relative;
  padding-left: 20px;
}
.acc__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.acc__foot {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}
.acc__price {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
}
.acc__price small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.acc__foot .btn { min-height: 48px; padding: 0 22px; }

/* ---------- Obrázky a placeholdery ---------- */

.media {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.media.has-img { border: 1px solid var(--line); }
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--phone {
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
}
.media--phone img { object-position: top center; }
.media--photo {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
}

.ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--surface);
  border: 1.5px dashed var(--ph-line);
  border-radius: inherit;
  font: 400 11px/1.45 var(--mono);
  color: var(--muted);
  text-align: center;
}

/* ---------- 03 Ukážky ---------- */

.rail {
  margin-top: 30px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 2px var(--gutter) 14px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.card {
  flex: 0 0 196px;
  scroll-snap-align: start;
}
.card__title {
  margin-top: 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
}
.card__desc {
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}
.card .link { font-size: 15px; }

.stickers { margin-top: 56px; }
.stickers__grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stickers__grid figure:first-child { grid-column: 1 / -1; }
.stickers__grid figcaption { margin-top: 10px; }

/* ---------- 04 Referencia / Ako to prebieha ---------- */

.ref { margin-top: 30px; }
.ref__quote {
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 8vw, 40px);
  line-height: 1.12;
}
.ref__by {
  margin-top: 18px;
  color: var(--ink-2);
}
.ref .link { margin-top: 6px; }

.steps {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--serif);
  font-size: 64px;
  line-height: .8;
  color: var(--accent);
}
.step__title {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
}
.step__text {
  margin-top: 4px;
  color: var(--ink-2);
}

/* ---------- 05 Vlastný nápad ---------- */

.idea {
  padding: 30px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.idea__btn { margin-top: 26px; }

/* ---------- Kontakt ---------- */

.contact {
  flex: 1 0 auto;
  display: flex;
  background: var(--ink);
  color: var(--paper);
}
.contact__inner {
  display: flex;
  flex-direction: column;
  padding-top: 64px;
}
.contact .label { color: var(--ph-line); }
.contact :focus-visible { outline-color: var(--paper); }

.contact__lead {
  margin-top: 16px;
  max-width: 36ch;
  font-size: 17px;
  color: #CFC8BA;
}
.contact__btns {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}
.contact__btns .btn { width: 100%; min-height: 56px; }

.contact__mail {
  margin-top: 18px;
  color: #CFC8BA;
  font-size: 15px;
}

.footer {
  margin-top: auto;
  padding: 72px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: 400 12px/1.4 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ph-line);
}

/* ---------- Väčšie obrazovky ---------- */

@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .contact__btns { grid-template-columns: 1fr 1fr; }
  .contact__btns .btn:first-child { grid-column: 1 / -1; }
  .idea { padding: 40px 36px; }
}
