/* ==========================================================================
   DianaTech – hlavné štýly
   Farby: navy #0f2445 (obľúbená), modrá z loga #0056fd
   ========================================================================== */

@font-face { font-family: "Lexend"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/lexend-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Lexend"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/lexend-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/onest-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --ink:      #07152b;   /* pozadie stránky */
  --navy:     #0f2445;   /* plochy, sekcie */
  --navy-2:   #173563;   /* okraje, zvýraznené plochy */
  --line:     rgba(147, 176, 222, .16);
  --blue:     #0056fd;   /* modrá z loga – tlačidlá */
  --blue-lt:  #4f8dff;   /* modrá pre text na tmavom */
  --paper:    #eef3fb;   /* hlavný text */
  --muted:    #9aaccb;   /* sekundárny text */
  --ok:       #3ccf91;
  --bad:      #ff6b7a;

  --font-display: "Lexend", system-ui, sans-serif;
  --font-body:    "Onest", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
}

/* ---------- základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-lt); text-underline-offset: .2em; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue-lt); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

/* ---------- tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 26px;
  font: 600 1rem/1 var(--font-display);
  border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1f6bff; color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--navy-2); color: var(--paper); }
.btn-ghost:hover { border-color: var(--blue-lt); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 21, 43, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.header-tools { display: flex; align-items: center; gap: 10px; }

.langs { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.langs a {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 7px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font: 600 .8125rem/1 var(--font-display);
}
.langs svg { width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.langs a[aria-current="true"] { background: var(--navy-2); color: #fff; }
.langs a:not([aria-current]):hover { color: #fff; }

.menu-btn { display: none; }

/* ---------- úvod (hero) ---------- */
.hero {
  position: relative;
  padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
  isolation: isolate;
}
/* jemná „blueprint“ mriežka, ktorá sa stráca do tmy */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 10%, transparent 75%);
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 720px; height: 720px; right: -220px; top: -260px;
  background: radial-gradient(circle, rgba(0, 86, 253, .28), transparent 65%);
  pointer-events: none;
}

/* Adresný riadok – hlavný vizuálny prvok stránky */
.urlbar {
  display: flex; align-items: center; gap: 18px;
  max-width: 880px;
  padding: 14px 18px;
  margin-bottom: clamp(36px, 6vw, 64px);
  background: rgba(15, 36, 69, .78);
  border: 1px solid var(--navy-2);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -30px rgba(0, 40, 140, .55), inset 0 1px 0 rgba(255,255,255,.05);
}
.dots { display: flex; gap: 7px; flex-shrink: 0; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--navy-2); }
.urlbar .dots i { width: 13px; height: 13px; }
.url {
  flex: 1; min-width: 0;
  display: flex; align-items: center;
  padding: 12px 18px;
  background: var(--ink); border-radius: 999px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.4vw, 2.25rem);
  font-weight: 500; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden;
}
.url .lock { width: .7em; height: .7em; color: var(--ok); margin-right: .45em; flex-shrink: 0; }
.url .scheme, .url .tld { color: var(--muted); font-weight: 400; }
.url .domain { color: #fff; }
.url .caret {
  display: inline-block; width: 3px; height: 1.05em; margin: 0 -1px 0 1px;
  background: var(--blue-lt); border-radius: 2px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero h1 {
  font-size: clamp(2.4rem, 6.6vw, 5rem);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.04;
  max-width: 15ch;
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero .lead {
  max-width: 58ch;
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  color: var(--muted);
  margin-bottom: 40px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- sekcie ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.hero + .section { padding-top: clamp(40px, 6vw, 80px); } /* sekcia hned pod herom: bez zdvojenej medzery */
.section-alt { background: var(--navy); }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2, .about-text h2, .contact-info h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  letter-spacing: -.03em;
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 1.125rem; margin: 0; }

/* ---------- realizácie ---------- */
.frame {
  background: var(--navy);
  border: 1px solid var(--navy-2);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .7);
}
.frame-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--navy-2);
}
.frame-url {
  flex: 1; min-width: 0;
  padding: 4px 12px;
  background: var(--ink); border-radius: 999px;
  color: var(--muted); font-size: .8125rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; background: var(--ink); }

.project-shot { display: block; text-decoration: none; }
.project-shot .frame { transition: border-color .25s, transform .35s cubic-bezier(.2,.7,.2,1); }
.project-shot:hover .frame { border-color: var(--blue); transform: translateY(-4px); }

.project-body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.project-body p { color: var(--muted); }

.tech { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.tech li {
  padding: 4px 11px;
  border: 1px solid var(--navy-2); border-radius: 999px;
  font-size: .8125rem; color: var(--paper);
}

.visit {
  display: inline-flex; align-items: baseline; gap: 8px;
  font: 600 1rem var(--font-display); text-decoration: none; color: #fff;
  border-bottom: 2px solid var(--blue); padding-bottom: 3px;
}
.visit span { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .875rem; }
.visit:hover { border-bottom-color: var(--blue-lt); }
.visit:hover span { color: var(--paper); }

.project-featured {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.project-featured .project-body h3 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.project-featured .project-body p { font-size: 1.125rem; }

.project-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 4vw, 48px) clamp(24px, 3vw, 36px);
}
.project-grid .project-shot { margin-bottom: 22px; }
.project-grid .project-body h3 { font-size: 1.3rem; }
.project-grid .project-body p { font-size: 1rem; }
.empty { color: var(--muted); }

/* ---------- služby ---------- */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.service { padding: 36px 32px 8px 0; }
.service + .service { padding-left: 32px; border-left: 1px solid var(--line); }
.service .icon {
  width: 34px; height: 34px; margin-bottom: 22px;
  fill: none; stroke: var(--blue-lt); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.service h3 { font-size: 1.35rem; margin-bottom: 12px; }
.service p { color: var(--muted); margin: 0; }

.process-title { font-size: 1.5rem; margin: clamp(64px, 9vw, 104px) 0 32px; }
.process {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  counter-reset: none;
}
.process li { position: relative; padding-top: 58px; }
/* čiara spájajúca kroky */
.process li::before {
  content: ""; position: absolute; top: 19px; left: 40px; right: -24px;
  height: 1px; background: var(--navy-2);
}
.process li:last-child::before { display: none; }
.step-no {
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); border: 1px solid var(--blue);
  font: 600 1rem var(--font-display); color: #fff;
}
.process h4 { font-size: 1.125rem; margin-bottom: 8px; }
.process p { color: var(--muted); font-size: .975rem; margin: 0; }

/* ---------- o mne ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.about-photo img { border-radius: var(--r-lg); width: 100%; object-fit: cover; aspect-ratio: 6 / 7; }
.monogram {
  aspect-ratio: 6 / 7; border-radius: var(--r-lg);
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 86, 253, .25), transparent 60%),
    var(--navy);
  border: 1px solid var(--navy-2);
}
.monogram img { width: 42%; height: auto; }
.about-name { font: 500 1.125rem var(--font-display); color: var(--blue-lt); margin-bottom: 24px; }
.about-text p { max-width: 62ch; }
.about-text p:not(.about-name) { color: #c9d5ea; font-size: 1.1rem; }

/* ---------- kontakt ---------- */
.section-contact { background: var(--navy); }
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-info > p { color: var(--muted); font-size: 1.125rem; max-width: 42ch; }
.contact-list { margin: 36px 0 28px; display: grid; gap: 22px; }
.contact-list dt { color: var(--muted); font-size: .875rem; margin-bottom: 2px; }
.contact-list dd { margin: 0; }
.contact-list a {
  font: 500 clamp(1.25rem, 2.4vw, 1.6rem) var(--font-display);
  color: #fff; text-decoration: none; letter-spacing: -.01em;
  word-break: break-word;
}
.contact-list a:hover { color: var(--blue-lt); }
.contact-name { color: var(--muted); margin: 0; }

.contact-form {
  background: var(--ink);
  border: 1px solid var(--navy-2);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--navy); color: var(--paper);
  border: 1px solid var(--navy-2); border-radius: var(--r-sm);
  font: inherit; font-size: 1rem;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #6f84a8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-lt); background: #11294f; }
.field .invalid { border-color: var(--bad); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 22px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); flex-shrink: 0; }
.check.invalid span { color: var(--bad); }

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

.form-status p { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 18px; font-size: .95rem; }
.form-status .ok { background: rgba(60, 207, 145, .12); color: var(--ok); border: 1px solid rgba(60, 207, 145, .35); }
.form-status .bad { background: rgba(255, 107, 122, .1); color: var(--bad); border: 1px solid rgba(255, 107, 122, .35); }
.form-status .wait { color: var(--muted); padding-left: 0; }

/* ---------- pätička ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-inner img { height: 24px; width: auto; }
.footer-inner p { margin: 0; }
.footer-links { margin-left: auto !important; display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ==========================================================================
   Responzívnosť
   ========================================================================== */
@media (max-width: 1024px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process li:nth-child(2)::before { display: none; }
}

@media (max-width: 860px) {
  .header-inner { height: 68px; gap: 12px; }
  .brand img { height: 28px; }
  .menu-btn {
    display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0;
    background: none; border: 1px solid var(--line); border-radius: 50%;
    color: var(--paper); cursor: pointer;
  }
  .burger, .burger::before, .burger::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .25s, opacity .2s;
  }
  .burger { position: relative; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -6px; }
  .burger::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .burger { background: transparent; }
  .menu-btn[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }

  .header-tools { margin-left: auto; }
  .nav {
    position: fixed; left: 0; right: 0; top: 68px;
    flex-direction: column; gap: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--ink); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 15px 4px; border-radius: 0; font-size: 1.15rem; color: var(--paper); border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }

  .project-featured { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; border-top: 0; }
  .service, .service + .service { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .about, .contact { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .langs a span { display: none; }
  .langs a { padding: 6px 7px; }
  .urlbar { padding: 10px; gap: 10px; border-radius: var(--r-md); }
  .urlbar .dots { display: none; }
  .url { padding: 10px 14px; font-size: clamp(.95rem, 4.6vw, 1.2rem); }
  .url .proto { display: none; }
  .monogram { aspect-ratio: 16 / 9; }
  .monogram img { width: 24%; }
  .actions .btn { flex: 1 1 100%; }
  .project-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; row-gap: 0; }
  .process li { padding: 0 0 32px 60px; }
  .process li::before { display: block !important; top: 44px; bottom: 4px; left: 19px; right: auto; width: 1px; height: auto; }
  .process li:last-child::before { display: none !important; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-links { margin-left: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
