:root {
  --ink: #232325;
  --graphite: #58585a;
  --graphite-dark: #2d2d30;
  --paper: #f5f4f1;
  --paper-strong: #ebe9e4;
  --white: #ffffff;
  --accent: #3d5a99;
  --muted: #6c6c70;
  --line: rgba(35, 35, 37, 0.12);
  --radius: 4px;
  --gutter: max(16px, 4.5vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

h1,
h2 {
  font-family: "Source Serif 4", Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

h2 em,
h1 em {
  font-style: italic;
  color: var(--graphite);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ---------- NAV ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 80px;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(245, 244, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.brand-text small {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-phone {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-phone svg {
  width: 18px;
  height: 18px;
}

.nav-phone:hover {
  background: var(--ink);
  color: var(--white);
}

.menu-button {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu-button span:not(.sr-only) {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s;
}

.menu-button span:nth-child(1) { top: 17px; }
.menu-button span:nth-child(2) { top: 25px; }

.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  display: none;
}

/* ---------- SHARED ---------- */

.section {
  padding: 120px var(--gutter);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow span {
  width: 32px;
  height: 1px;
  background: currentColor;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.65);
}

.section-heading h2 {
  font-size: clamp(44px, 6vw, 80px);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, background 0.2s;
}

.button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.button:hover svg {
  transform: translateX(4px);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.button-dark:hover {
  background: var(--accent);
}

.button-light {
  background: var(--white);
  color: var(--ink);
}

.text-link {
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - 80px);
  padding: 72px var(--gutter) 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.06;
  margin-bottom: 28px;
}

.hero-lead {
  font-size: clamp(18px, 1.45vw, 20px);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 560px;
}

.hero-note {
  margin: 0;
  max-width: 520px;
  padding-left: 18px;
  border-left: 2px solid var(--line);
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.45;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 40px;
}

/* vodotlač z piktogramu loga */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -8%;
  bottom: -8%;
  right: -16%;
  aspect-ratio: 1;
  background: url("assets/logo-watermark.png") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}

/* ---------- VALUES ---------- */

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value {
  padding: 56px var(--gutter);
  display: flex;
  gap: 28px;
}

.value + .value {
  border-left: 1px solid var(--line);
}

.value span {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  padding-top: 6px;
}

.value p {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  max-width: 520px;
}

.value strong {
  font-weight: 500;
  font-style: italic;
}

/* ---------- SERVICES ---------- */

.services .section-heading {
  margin-bottom: 64px;
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  position: relative;
  min-height: 230px;
  padding: 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  background: transparent;
  transition: background 0.3s, color 0.3s;
}

.service-card:hover {
  background: var(--graphite-dark);
  color: var(--white);
}

.service-index {
  position: absolute;
  top: 36px;
  right: 36px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.service-card:hover .service-index {
  color: rgba(255, 255, 255, 0.6);
}

.service-card svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.3;
}

.service-card h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.15;
}

/* ---------- CONTACT ---------- */

.contact {
  background: var(--graphite-dark);
  color: var(--white);
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 8vw;
  align-items: center;
}

.contact-photo {
  justify-self: end;
  width: min(100%, 440px);
}

.contact-photo img {
  width: 100%;
  border-radius: var(--radius);
  filter: grayscale(0.15);
}

.contact h2 {
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.1;
}

.nowrap {
  white-space: nowrap;
}

.contact h2 em {
  color: #c9cdd8;
}

.role {
  margin: 16px 0 40px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: clamp(16px, 1.6vw, 20px);
  overflow-wrap: anywhere;
}

.contact-list svg {
  flex: none;
  width: 22px;
  height: 22px;
  opacity: 0.7;
}

.contact-list a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- LOCATION ---------- */

.location .section-heading {
  margin-bottom: 64px;
}

.location-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: stretch;
}

.location-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 0.2s, transform 0.2s;
}

.info-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.info-card svg {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: var(--paper-strong);
}

.card-hint {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.info-card small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.map {
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  filter: grayscale(0.6) contrast(1.05);
}

/* ---------- FOOTER ---------- */

footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: 72px var(--gutter) 32px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand-text strong {
  color: var(--white);
}

.footer-brand .brand-text small {
  color: rgba(255, 255, 255, 0.55);
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
}

.footer-address p {
  margin: 0;
}

.footer-address a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
  margin: 0;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {
  .nav-links { gap: 24px; }
  .nav-links { gap: 20px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    height: 72px;
  }

  /* na mobile len okrúhle tlačidlo s ikonou – rovnaké ako menu */
  .nav-phone {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
  }
  .nav-phone span { display: none; }

  .nav-links { display: none; }
  .menu-button { display: block; }

  .brand img { height: 36px; }

  .mobile-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }

  .mobile-menu.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .mobile-menu a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 26px;
  }

  html { scroll-padding-top: 72px; }

  .section { padding: 72px var(--gutter); }
  .services .section-heading,
  .location .section-heading { margin-bottom: 40px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 48px var(--gutter) 64px;
  }

  .hero::after {
    right: auto;
    left: 38%;
    top: -4%;
    bottom: -4%;
    opacity: 0.05;
  }

  .values { grid-template-columns: 1fr; }
  .value + .value { border-left: 0; border-top: 1px solid var(--line); }
  .value { padding: 40px var(--gutter); }

  .contact { grid-template-columns: 1fr; gap: 36px; }
  .contact-photo { justify-self: start; width: min(100%, 300px); }
  .role { margin-bottom: 28px; }

  .map,
  .map iframe { min-height: 320px; }

  .location-grid { grid-template-columns: 1fr; }

  .footer-main { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand { gap: 12px; }
  .brand-text strong { font-size: 16px; }
  .brand-text small { font-size: 11px; letter-spacing: 0.06em; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 20px; margin-top: 32px; }
  .hero-actions .button { justify-content: center; }
  .hero-actions .text-link { align-self: center; }

  .value { gap: 18px; padding: 32px var(--gutter); }
  .value p { font-size: 19px; }

  /* oblasti ako kompaktný zoznam: ikona + názov v jednom riadku */
  .service-grid { grid-template-columns: 1fr; }
  .service-card {
    min-height: 0;
    padding: 18px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
  }
  .service-card svg { width: 32px; height: 32px; flex: none; }
  .service-card h3 { font-size: 20px; }
  .service-index { display: none; }
  .info-card { padding: 20px; font-size: 16px; }
  .footer-bottom { flex-direction: column; }
}
