/* =========================================================
   MikiForge Studio v0.1 — štýly
   Farby a typografia sú v :root (sekcia 1). Úprava jednej
   premennej sa prejaví na celom webe.
   ========================================================= */

/* ---------- 0. Fonty (lokálne, licencia SIL OFL — assets/fonts) ---------- */
@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/source-serif-4-var.woff") format("woff");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-var.woff") format("woff");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Premenné ---------- */
:root {
  --bg: #171918;
  --bg-deep: #121413;
  --bg-raised: #1f2220;
  --line: rgba(247, 243, 235, 0.12);
  --line-strong: rgba(247, 243, 235, 0.22);
  --text: #f7f3eb;
  --muted: #bdb5a8;
  --copper: #d98a55;
  --copper-text: #e39a68;      /* medená pre text na tmavom */
  --copper-btn: #a95d31;       /* pozadie tlačidla — kontrast so svetlým textom */
  --copper-btn-hover: #93501f;
  --cream: #f1e9dc;
  --cream-line: rgba(38, 30, 22, 0.16);
  --ink: #1d1a17;              /* text na krémovom */
  --ink-muted: #5a5047;
  --copper-on-cream: #8f4a1f;
  --error: #ff9b8a;
  --error-on-cream: #a3271a;
  --success: #9fd4a3;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 72px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
picture { display: block; }

a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }

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

::selection { background: var(--copper); color: #1a1310; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cream); color: var(--ink);
  padding: 10px 16px; font-weight: 700; text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }


/* ---------- 3. Typografické prvky ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copper-text);
  margin: 0 0 1.1rem;
}
.eyebrow--dark { color: var(--copper-on-cream); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 500;
  font-optical-sizing: auto;
}

/* ---------- 4. Tlačidlá a odkazy ---------- */
.btn {
  --_bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px;
  padding: 0.8em 1.5em;
  font-family: var(--sans);
  font-size: 1rem; font-weight: 700; letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--_bg);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn__arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { --_bg: var(--copper-btn); color: #fff9f2; box-shadow: 0 10px 30px -14px rgba(217, 138, 85, .8); }
.btn--primary:hover { --_bg: var(--copper-btn-hover); }
.btn--primary:active { transform: translateY(1px); }

.btn--outline { color: var(--text); border-color: var(--copper); }
.btn--outline:hover { background: rgba(217, 138, 85, .12); }

.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: not-allowed; box-shadow: none; }

.link-underline {
  display: inline-flex; align-items: center; min-height: 48px;
  color: var(--text); font-weight: 600; text-decoration: none;
  background: linear-gradient(var(--copper), var(--copper)) left calc(100% - 10px) / 100% 1px no-repeat;
  transition: background-size .3s var(--ease), color .2s;
}
.link-underline:hover { color: var(--copper-text); }
.link-underline--dark { color: var(--ink); background-image: linear-gradient(var(--copper-on-cream), var(--copper-on-cream)); }
.link-underline--dark:hover { color: var(--copper-on-cream); }

/* ---------- 5. Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(23, 25, 24, .94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(23, 25, 24, .82); backdrop-filter: blur(10px); }
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.005em; line-height: 1; }
.brand__name span { color: var(--text); }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav__list a {
  display: inline-block; padding: 8px 0;
  font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--text);
  opacity: .88;
  background: linear-gradient(var(--copper), var(--copper)) left bottom / 0 1px no-repeat;
  transition: background-size .25s var(--ease), opacity .2s;
}
.site-nav__list a:hover { opacity: 1; background-size: 100% 1px; }
.site-nav__cta { min-height: 42px; padding: .6em 1.15em; font-size: .92rem; }

.nav-toggle { display: none; }

/* ---------- 6. Úvod ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 100px); }
/* Na počítači úvod vyplní celú prvú obrazovku — krémová sekcia nevykukne spod okraja */
@media (min-width: 961px) {
  .hero {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    display: flex; align-items: center;
  }
  .hero > .container { width: 100%; }
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(217, 138, 85, .16), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(217, 138, 85, .06), transparent 70%),
    linear-gradient(180deg, #1a1c1b 0%, var(--bg) 100%);
}
.hero__bg::after { /* jemná mriežka dielne */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: .25;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 80% at 70% 40%, #000 0%, transparent 75%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 1.2rem + 4.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.hero__title span { display: inline-block; }
@media (min-width: 1081px) { .hero__title span { white-space: nowrap; } }
.section-title, .local__title, .project__title, .faq__item summary { text-wrap: balance; }
.hero__lead, .local__lead, .about__lead { text-wrap: pretty; }
.hero__lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: #e8e1d5; max-width: 30ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

.hero__process {
  list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 4px 0 4px 22px;
  border-left: 1px solid var(--copper);
  display: grid; gap: 6px;
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
}

.hero__visual { margin: 0; position: relative; }
.devices { position: relative; padding: 0 0 6% 14%; }

.laptop { position: relative; }
.laptop__lid {
  background: linear-gradient(160deg, #3a3d3c, #1c1e1d);
  border-radius: 14px 14px 4px 4px;
  padding: 2.2% 2.2% 2.6%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 40px 80px -30px rgba(0,0,0,.8);
}
.laptop__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: #0b0c0c; }
.laptop__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.laptop__base {
  position: relative; height: 0; padding-bottom: 3.4%;
  margin: 0 -7%;
  background: linear-gradient(180deg, #4a4d4c 0%, #2a2c2b 55%, #161817 100%);
  border-radius: 0 0 16px 16px;
}
.laptop__base::before {
  content: ""; position: absolute; left: 41%; right: 41%; top: 0; height: 32%;
  background: #1a1c1b; border-radius: 0 0 8px 8px;
}

.phone {
  position: absolute; left: 0; bottom: 0; width: 24%;
  background: linear-gradient(160deg, #3b3e3d, #151716);
  border-radius: 22px;
  padding: 2.4% 2.2%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 30px 60px -20px rgba(0,0,0,.9);
}
.phone__screen { aspect-ratio: 390 / 800; overflow: hidden; border-radius: 15px; background: #0b0c0c; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.hero__caption {
  margin-top: 18px; padding-left: 14%;
  font-size: .82rem; color: var(--muted);
}
.hero__caption a { color: var(--copper-text); text-underline-offset: 3px; }

/* ---------- 7. Projekt pre miestne firmy (krémová) ---------- */
.local {
  position: relative; overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  padding: clamp(64px, 8vw, 112px) 0;
}
.local__sketch {
  position: absolute; right: -40px; top: 30px;
  width: clamp(220px, 28vw, 380px); color: #8a6b52; opacity: .5; pointer-events: none;
}
.local .container { position: relative; }
.local__head { max-width: 820px; }
.status-pill {
  display: inline-block; margin-left: .8em; vertical-align: 1px;
  padding: .35em .8em; border: 1px solid currentColor; border-radius: 99px;
  font-size: .62rem; letter-spacing: .16em; line-height: 1;
}
.local__title {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 1.2rem + 4vw, 4.4rem);
  line-height: 1.04; letter-spacing: -0.025em; font-weight: 600;
  margin-bottom: 1.4rem;
}
.local__lead { font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.local__cost {
  margin: 1.6rem 0 1rem; padding: 14px 18px;
  border-left: 3px solid var(--copper);
  background: rgba(255, 255, 255, .45);
  color: var(--ink); max-width: 62ch;
}
.local__region { color: var(--ink-muted); font-size: .98rem; }
.local__municipalities { display: block; margin-top: .3em; }

.scope {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0; margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--cream-line);
}
.scope__col { padding: 28px 28px 8px 0; }
.scope__col + .scope__col { padding-left: 28px; border-left: 1px solid var(--cream-line); }
.scope__title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin-bottom: 1rem; }
.scope__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.scope__list li { position: relative; padding-left: 26px; line-height: 1.5; }
.scope__list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.scope__list--in li::before { content: "✓"; color: var(--copper-on-cream); }
.scope__list--out li { color: var(--ink-muted); }
.scope__list--out li::before { content: "–"; color: var(--ink-muted); }
.scope__col--note p { color: #3b342e; font-size: .98rem; }
.scope__small { font-size: .9rem !important; color: var(--ink-muted) !important; font-style: italic; }

.process { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(36px, 4vw, 48px); border-top: 1px solid var(--cream-line); }
.process__title { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 600; margin-bottom: 2rem; }
.process__steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
}
.process__step { position: relative; }
.process__num {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--copper-on-cream);
  margin-bottom: .6rem;
}
.process__num::after { content: ""; flex: 1; height: 1px; background: rgba(169, 93, 49, .45); }
.process__step:last-child .process__num::after { display: none; }
.process__step h4 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: .4rem; line-height: 1.3; }
.process__step p { font-size: .95rem; color: #4a423b; margin: 0; }
.process__note { margin: 2rem 0 1.6rem; color: var(--ink-muted); font-size: .95rem; max-width: 70ch; }
.process__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.local :focus-visible { outline-color: var(--copper-on-cream); }

/* ---------- 8. Projekty ---------- */
.projects { padding: clamp(72px, 9vw, 128px) 0; }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 24px 64px;
  padding-bottom: clamp(36px, 4vw, 56px); margin-bottom: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.section-head__aside { color: var(--muted); margin: 0; max-width: 40ch; border-left: 1px solid var(--line); padding-left: 24px; }

.project {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.project + .project { margin-top: clamp(80px, 10vw, 140px); }
.project--alt .project__media { order: 2; }

.project__media { position: relative; padding-bottom: 12%; }
.browser {
  border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden;
  background: #0f1110;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9);
}
.browser__bar {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line);
  background: #232624;
}
.browser__bar span { width: 9px; height: 9px; border-radius: 50%; background: #45494a; }
.browser__bar em {
  margin-left: 12px; font-style: normal; font-size: .7rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.project__detail {
  position: absolute; right: -4%; bottom: 0; width: 42%; margin: 0;
  border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden;
  background: var(--bg-raised);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.95);
}
.project--alt .project__detail { right: auto; left: -4%; }
.project__detail img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.project__detail figcaption {
  padding: 7px 12px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--line);
}

.project__kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--copper-text);
}
.project__kicker span { font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0; color: var(--muted); font-weight: 500; }
.project__title {
  font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.08;
  font-weight: 500; letter-spacing: -0.015em; margin: .2rem 0 1.2rem;
}
.project__title::after { content: ""; display: block; width: 44px; height: 1px; background: var(--copper); margin-top: 1.1rem; }
.project__body p { color: #ddd6ca; }
.tags { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .78rem; padding: .35em .85em; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--muted); }
.checks { list-style: none; margin: .4rem 0 1.8rem; padding: 0; display: grid; gap: .45rem; }
.checks li { position: relative; padding-left: 26px; color: #ddd6ca; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 12px; height: 1px; background: var(--copper); }

/* ---------- 9. O štúdiu ---------- */
.about { padding: clamp(72px, 9vw, 128px) 0; background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.monogram {
  position: relative; aspect-ratio: 4 / 5; max-width: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(217, 138, 85, .14), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(247,243,235,.04) 39px 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(247,243,235,.04) 39px 40px),
    var(--bg);
}
.monogram::before, .monogram::after {
  content: ""; position: absolute; width: 28px; height: 28px; border-color: var(--copper); border-style: solid;
}
.monogram::before { top: 14px; left: 14px; border-width: 1px 0 0 1px; }
.monogram::after { bottom: 14px; right: 14px; border-width: 0 1px 1px 0; }
.monogram__letters {
  font-family: var(--serif); font-size: clamp(5rem, 3rem + 7vw, 8.5rem); line-height: .9; font-weight: 400;
  letter-spacing: -0.06em; color: var(--copper);
}
.monogram__rule { width: 48px; height: 1px; background: var(--line-strong); }
.monogram__caption { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

.about__lead { font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); line-height: 1.45; margin-top: 1.4rem; }
.about__text p:not(.eyebrow):not(.about__lead) { color: #d9d2c6; max-width: 62ch; }
.principles { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.principles strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin-bottom: .3rem; }
.principles span { font-size: .92rem; color: var(--muted); line-height: 1.5; display: block; }

/* ---------- 10. Otázky ---------- */
.faq { padding: clamp(72px, 9vw, 128px) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__intro { color: var(--muted); margin-top: 1.2rem; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 48px 22px 0;
  font-family: var(--serif); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 500; line-height: 1.35;
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 1.5px solid var(--copper); border-bottom: 1.5px solid var(--copper);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq__item summary:hover { color: var(--copper-text); }
.faq__answer { padding: 0 48px 24px 0; color: #d6cfc3; }
.faq__answer p { margin: 0; }

/* ---------- 11. Prihláška ---------- */
.apply { padding: clamp(72px, 9vw, 128px) 0; background: var(--bg-deep); border-top: 1px solid var(--line); }
.apply__grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.apply__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.apply__intro p:not(.eyebrow) { color: #d9d2c6; margin-top: 1.2rem; }
.apply__small { font-size: .9rem; color: var(--muted) !important; }
.apply__small a { color: var(--copper-text); text-underline-offset: 3px; }
.apply__contact { margin-top: 1.8rem; padding: 16px 0 4px 18px; border-left: 1px solid var(--copper); }
.apply__contact-label { margin: 0 0 .2rem !important; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) !important; }
.apply__contact-link { font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); color: var(--text); text-decoration-color: var(--copper); text-underline-offset: 5px; overflow-wrap: anywhere; }
.apply__contact-link:hover { color: var(--copper-text); }
.req { color: var(--copper-text); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: .88em; }

.apply__panel { border: 1px solid var(--line-strong); background: var(--bg); padding: clamp(20px, 3.5vw, 44px); border-radius: 6px; }

.form-mode {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; margin-bottom: 28px;
  border: 1px dashed rgba(217, 138, 85, .6); border-radius: var(--radius);
  background: rgba(217, 138, 85, .07);
}
.form-mode p { margin: 0; font-size: .95rem; color: #e1dacd; }
.form-mode strong { display: block; color: var(--text); margin-bottom: 2px; }
.form-mode__dot { flex: 0 0 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--copper); }
.form-mode.is-live { border-style: solid; border-color: rgba(159, 212, 163, .5); background: rgba(159, 212, 163, .06); }
.form-mode.is-live .form-mode__dot { background: var(--success); }
.form-noscript { padding: 12px 16px; border: 1px solid var(--line-strong); color: var(--muted); }

.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 22px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; color: var(--text); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--text);
  background: #232624;
  border: 1px solid rgba(247, 243, 235, .28);
  border-radius: var(--radius);
  padding: 13px 14px;
  min-height: 50px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: rgba(247, 243, 235, .45); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(217, 138, 85, .3); background: #262927; }
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 155, 138, .25); }
.field__hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.field__error { margin: 6px 0 0; font-size: .9rem; font-weight: 600; color: var(--error); }
.field__error:empty { display: none; }
.field__error::before { content: "! "; }

.choice { border: 0; padding: 0; margin: 0; }
.choice legend { padding: 0; }
.choice__row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice__opt { position: relative; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__opt span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px;
  padding: 10px 18px 10px 14px;
  border: 1px solid rgba(247, 243, 235, .28); border-radius: var(--radius);
  background: #232624; font-weight: 500;
  transition: border-color .2s, background-color .2s;
}
.choice__opt span::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid rgba(247, 243, 235, .6); box-sizing: border-box;
  transition: border-width .15s, border-color .15s;
}
.choice__opt:hover span { border-color: rgba(247, 243, 235, .5); }
.choice__opt input:checked + span { border-color: var(--copper); background: rgba(217, 138, 85, .12); }
.choice__opt input:checked + span::before { border: 5px solid var(--copper); }
.choice__opt input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 3px; }
.choice.is-invalid .choice__opt span { border-color: var(--error); }

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

.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.form__submit { position: relative; min-width: 240px; }
.form__legal { flex: 1 1 240px; margin: 0; font-size: .85rem; color: var(--muted); }

.spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,249,242,.35); border-top-color: #fff9f2; }
.form.is-busy .spinner { display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__summary {
  margin-bottom: 24px; padding: 16px 18px;
  border: 1px solid var(--error); border-left-width: 4px; border-radius: var(--radius);
  background: rgba(255, 155, 138, .07);
}
.form__summary:focus { outline: 2px solid var(--error); outline-offset: 2px; }
.form__summary-title { font-weight: 700; margin-bottom: .4rem; }
.form__summary ul { margin: 0; padding-left: 1.2em; }
.form__summary a { color: var(--error); text-underline-offset: 3px; }

.form__status {
  margin-top: 22px; padding: 16px 18px; border-radius: var(--radius); font-weight: 600;
  border: 1px solid var(--line-strong); border-left-width: 4px;
}
.form__status:focus { outline: 2px solid var(--copper); outline-offset: 2px; }
.form__status.is-ok { border-color: var(--success); background: rgba(159, 212, 163, .07); }
.form__status.is-error { border-color: var(--error); background: rgba(255, 155, 138, .07); }
.form__status p { margin: 0; }
.form__status p + p { margin-top: .4rem; font-weight: 400; color: #d6cfc3; font-size: .95rem; }

/* ---------- 12. Kontakt a pätička ---------- */
.contact { padding: clamp(72px, 9vw, 120px) 0; }
.contact__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 80px; align-items: end; }
.contact__sub { color: var(--muted); margin-top: 1rem; }
.contact__box { border-left: 1px solid var(--copper); padding: 6px 0 6px 28px; }
.contact__pending { font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: .8rem; }
.contact__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; }
.contact__list a { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); color: var(--text); text-decoration-color: var(--copper); text-underline-offset: 5px; }
.contact__list a:hover { color: var(--copper-text); }
.contact__note { color: var(--muted); margin: 0; font-size: .95rem; max-width: 46ch; }

.site-footer { border-top: 1px solid rgba(217, 138, 85, .4); padding: 32px 0 40px; background: var(--bg); }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 14px 40px; align-items: center; font-size: .9rem; }
.site-footer p { margin: 0; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.02rem; }
.site-footer__tagline { color: var(--muted); font-family: var(--serif); font-style: italic; text-align: right; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer__links a { color: var(--muted); text-underline-offset: 3px; display: inline-block; padding: 6px 0; }
.site-footer__links a:hover { color: var(--text); }
.site-footer__meta { color: #8f887d; text-align: right; font-size: .82rem; }

/* ---------- 13. Jemné objavovanie pri posúvaní (len s JS a bez obmedzeného pohybu) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- 14. Responzívne rozloženie ---------- */
@media (max-width: 1080px) {
  .site-nav { gap: 22px; }
  .site-nav__list { gap: 20px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }

  /* mobilné menu */
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 14px;
    font: inherit; font-size: .9rem; font-weight: 600; color: var(--text);
    background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
    cursor: pointer;
  }
  .nav-toggle__bars { position: relative; width: 18px; height: 12px; }
  .nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
    content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
    transition: transform .25s var(--ease), opacity .2s, top .25s var(--ease);
  }
  .nav-toggle__bars::before { top: 0; }
  .nav-toggle__bars span { top: 5px; }
  .nav-toggle__bars::after { top: 10px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 5px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 5px; transform: rotate(-45deg); }

  .js .site-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px;
    background: #191b1a;
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 30px 50px -20px rgba(0,0,0,.8);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .site-nav__list { flex-direction: column; gap: 0; }
  .js .site-nav__list a {
    display: block; padding: 16px 0; font-family: var(--serif); font-size: 1.35rem; opacity: 1;
    border-bottom: 1px solid var(--line); background: none;
  }
  .js .site-nav__list a:hover { color: var(--copper-text); }
  .js .site-nav__cta { margin-top: 22px; min-height: 50px; font-size: 1rem; }

  /* bez JS: navigácia ostane viditeľná pod logom */
  .no-js .site-header { height: auto; position: static; }
  .no-js .site-header__inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .no-js .site-nav { flex-wrap: wrap; gap: 12px 20px; }
  .no-js .site-nav__list { flex-wrap: wrap; gap: 4px 18px; }

  /* úvod — text, potom vizuál */
  .hero__grid { grid-template-columns: 1fr; }
  .hero__text { max-width: 640px; }
  .hero__process { display: none; }
  .hero__visual { max-width: 640px; }

  .scope { grid-template-columns: 1fr 1fr; }
  .scope__col--note { grid-column: 1 / -1; border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--cream-line); }
  .process__steps { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .process__step:nth-child(2) .process__num::after { display: none; }

  .section-head { grid-template-columns: 1fr; }
  .section-head__aside { border-left: 0; padding-left: 0; }

  .project, .project--alt { grid-template-columns: 1fr; }
  .project--alt .project__media { order: 0; }
  .project__body { max-width: 640px; }

  .about__grid { grid-template-columns: 1fr; }
  .about__mark { order: 2; }
  .monogram { aspect-ratio: 16 / 9; max-width: none; }
  .faq__grid, .apply__grid, .contact__inner { grid-template-columns: 1fr; }
  .apply__intro { position: static; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand__name { font-size: 1.18rem; }
  .brand__mark { width: 30px; height: 30px; }
  .js .nav-toggle__label { font-size: .85rem; }

  .hero { padding-top: 36px; }
  .hero__title { font-size: clamp(2.35rem, 1.2rem + 7vw, 3rem); }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 6px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .link-underline { align-self: center; }
  .devices { padding-left: 16%; }
  .phone { width: 28%; border-radius: 16px; }
  .phone__screen { border-radius: 10px; }
  .laptop__lid { border-radius: 9px 9px 3px 3px; }
  .hero__caption { padding-left: 0; }

  .local__sketch { width: 180px; right: -60px; top: 12px; opacity: .3; }
  .status-pill { display: table; margin: .8em 0 0; }
  .local__title { font-size: clamp(2.15rem, 1rem + 7.4vw, 2.7rem); }
  .scope { grid-template-columns: 1fr; }
  .scope__col, .scope__col + .scope__col { padding: 24px 0 4px; border-left: 0; }
  .scope__col + .scope__col { border-top: 1px solid var(--cream-line); }
  .process__steps { grid-template-columns: 1fr; gap: 0; border-left: 1px solid rgba(169, 93, 49, .45); margin-left: 6px; }
  .process__step { padding: 0 0 26px 24px; }
  .process__step:last-child { padding-bottom: 0; }
  .process__num { font-size: 1.25rem; margin-bottom: .2rem; }
  .process__num::after { display: none; }
  .process__num::before { content: ""; position: absolute; left: -5px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--copper-on-cream); }
  .process__actions { flex-direction: column; align-items: stretch; gap: 6px; }
  .process__actions .link-underline { align-self: center; }

  .project__media { padding-bottom: 18%; }
  .project__detail { width: 52%; right: -2%; }
  .project--alt .project__detail { left: -2%; }
  .project__detail figcaption { font-size: .64rem; padding: 5px 9px; }
  .project__body .btn { width: 100%; }

  .principles { grid-template-columns: 1fr; gap: 18px; }
  .monogram { aspect-ratio: 3 / 2; }

  .faq__item summary { padding: 18px 40px 18px 0; }
  .faq__answer { padding-right: 0; }

  .apply__panel { padding: 18px 16px 22px; margin: 0 calc(var(--gutter) * -0.4); }
  .form__grid { grid-template-columns: 1fr; gap: 20px; }
  .choice__row { display: grid; grid-template-columns: 1fr; }
  .choice__opt span { width: 100%; }
  .form__submit { width: 100%; min-width: 0; }

  .contact__box { padding-left: 20px; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__tagline, .site-footer__meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .form.is-busy .spinner { display: none; }
}
