/* ============================================================
   Solunit – štýly
   ============================================================ */

:root {
  --c-navy: #0b1220;
  --c-navy-2: #141c2e;
  --c-ink: #0f172a;
  --c-body: #3b4658;
  --c-muted: #6b7686;
  --c-line: #e5e9f0;
  --c-bg: #ffffff;
  --c-bg-alt: #f5f7fb;
  --c-accent: #f59e0b;
  --c-accent-2: #fb923c;
  --c-accent-soft: #fff4e0;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 30px 60px rgba(15, 23, 42, .18);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--c-ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--container), 100% - 2rem);
  margin-inline: auto;
}

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: .75rem;
}
.eyebrow.center { text-align: center; }

.lead { font-size: 1.15rem; color: var(--c-body); max-width: 34rem; }

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--c-navy); color: #fff; box-shadow: 0 6px 18px rgba(11, 18, 32, .25); }
.btn-primary:hover { background: #1b2540; }
.btn-ghost { border-color: var(--c-line); color: var(--c-ink); background: #fff; }
.btn-ghost:hover { border-color: var(--c-ink); }
.btn-small { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark { width: 34px; height: 34px; }
.brand-name {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.03em;
  color: var(--c-ink);
}
.site-nav { display: flex; align-items: center; gap: 1.75rem; font-weight: 500; font-size: .95rem; }
.site-nav a:not(.btn) { color: var(--c-body); }
.site-nav a:not(.btn):hover { color: var(--c-ink); }
.lang-switch {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .3rem .6rem;
  border: 1px solid var(--c-line);
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--c-accent-soft), transparent 60%),
    linear-gradient(180deg, #fff, #fbfcfe);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.6rem; color: var(--c-ink); font-weight: 800; line-height: 1.1; }
.hero-facts span { font-size: .85rem; color: var(--c-muted); max-width: 11rem; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}
.hero-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: .45rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-ink);
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.chip-1 { top: 14%; right: calc(50% + 128px); }
.chip-2 { top: 46%; left: calc(50% + 128px); }
.chip-3 { bottom: 16%; right: calc(50% + 112px); }

/* ---------- Telefón (mockup rám) ---------- */
.phone {
  width: 100%;
  max-width: 230px;
  aspect-ratio: 9 / 19.5;
  background: #0b0f1a;
  border-radius: 34px;
  padding: 9px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 8px;
  border-radius: 99px;
  background: #000;
  z-index: 2;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  background: #fff;
}
.phone-lg { max-width: 290px; }

/* ---------- Sekcie ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tight { padding: 2.5rem 0; }
.section-alt { background: var(--c-bg-alt); }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-sub { font-size: 1.05rem; color: var(--c-body); }

/* ---------- Karty služieb ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.card p { margin: 0; font-size: .95rem; }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c-accent-soft);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.card-icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--c-accent); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Pilulky ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.industries .pill-row { justify-content: center; }
.pill-row li {
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: #fff;
  font-size: .9rem;
  font-weight: 500;
  color: var(--c-ink);
}
.pill-row.small li { padding: .35rem .8rem; font-size: .82rem; }

/* ---------- Portfólio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.project:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.project-shot {
  background: linear-gradient(160deg, #eef2f8, #dfe6f1);
  padding: 2rem 2rem 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 300px;
  overflow: hidden;
}
.project-shot .phone {
  max-width: 190px;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 20px 40px rgba(15, 23, 42, .2);
}
.project-shot .phone img { border-radius: 22px 22px 0 0; object-position: top; }
.project-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.project-sector { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--c-accent); margin: 0; }
.project-body h3 { margin: 0; }
.project-body p { font-size: .92rem; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.tags li {
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 6px;
  background: var(--c-bg-alt);
  color: var(--c-body);
}
.project-link {
  margin-top: auto;
  padding-top: .75rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-ink);
}
.project-link:hover { color: var(--c-accent); }

/* ---------- Technológie + proces ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.process { counter-reset: step; display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.process li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 1rem;
  row-gap: .15rem;
  align-items: start;
}
.process li::before {
  grid-row: 1 / span 2;
  content: counter(step, decimal-leading-zero);
  font-weight: 800;
  font-size: .85rem;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
}
.process strong { grid-column: 2; display: block; color: var(--c-ink); margin-bottom: .2rem; }
.process span { grid-column: 2; font-size: .95rem; }

.stack { display: flex; flex-direction: column; gap: 1.5rem; }
.stack-group h4 { margin-bottom: .6rem; }

/* ---------- O nás ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
}
.about-copy p { font-size: 1.05rem; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.contact-list li { display: flex; flex-direction: column; }
.contact-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--c-muted); }
.contact-list a { font-weight: 600; color: var(--c-ink); }
.contact-list a:hover { color: var(--c-accent); }

.contact-form {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--c-ink); }
.contact-form input, .contact-form textarea {
  font: inherit;
  font-size: .95rem;
  padding: .75rem .9rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-bg-alt);
  color: var(--c-ink);
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}
.form-note { font-size: .78rem; color: var(--c-muted); margin: 0; text-align: center; }

/* ---------- Pätička ---------- */
.site-footer {
  background: var(--c-navy);
  color: #aab4c5;
  padding: 3.5rem 0 1.5rem;
  font-size: .9rem;
}
.site-footer .brand-name { color: #fff; }
.footer-tag { margin-top: .5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-legal p { margin: 0 0 .25rem; }
.footer-legal strong { color: #fff; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: 1.5rem;
  font-size: .8rem;
  color: #7c8798;
}
.todo { color: var(--c-accent); }

/* ---------- Responzívnosť ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions, .hero-facts { justify-content: center; }
  .hero-facts li { align-items: center; }
  .hero-visual { margin-top: 1rem; }
  .cards, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: .25rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .75rem .5rem; }
  .site-nav .btn { margin-top: .5rem; }
  .lang-switch { align-self: flex-start; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-chip { display: none; }
  .cards, .portfolio-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .project { transition: none; }
}
