/* =========================================================
   MID Solutions – štýly webu
   Farby a písma sa menia na jednom mieste: v bloku :root nižšie.
   ========================================================= */

:root {
  /* farby */
  --bg: #212325;          /* hlavné pozadie, antracit */
  --bg-2: #2a2c2f;        /* pozadie zvýraznených sekcií */
  --bg-3: #1a1c1e;        /* pätička */
  --line: #3b3e42;        /* tenké deliace čiary */
  --text: #e9e5dd;        /* hlavný text */
  --soft: #a8a49b;        /* doplnkový text */
  --brass: #c4ae86;       /* mosadz, akcent */
  --brass-hover: #d4c19d;
  --on-brass: #1c1e20;    /* text na mosadznom tlačidle */

  /* písma */
  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* rozmery */
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 10vw, 136px);
  --header-h: 76px;

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
ul { list-style: none; margin: 0; padding: 0; }
strong { font-weight: 600; color: var(--text); }

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

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brass); color: var(--on-brass);
  padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

.text-soft { color: var(--soft); }

/* ---------- tlačidlá ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  padding: 15px 28px;
  background: var(--brass);
  color: var(--on-brass);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 1px;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--brass-hover); }

.btn--obrys {
  background: transparent;
  color: var(--brass);
  box-shadow: inset 0 0 0 1px var(--brass);
}
.btn--obrys:hover { background: var(--brass); color: var(--on-brass); }

.btn--male { padding: 11px 20px; font-size: .84rem; }

/* ---------- logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  width: 40px; height: 30px;
  fill: none;
  stroke: var(--brass);
  stroke-width: 2.4;
  stroke-linejoin: miter;
  flex: none;
}
.logo-text { font-size: 1.05rem; letter-spacing: .03em; font-weight: 300; white-space: nowrap; }
.logo-text b { font-weight: 700; }

/* ---------- hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(33, 35, 37, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a {
  color: var(--soft);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s ease;
}
.nav a:hover { color: var(--text); }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- spoločné pre sekcie ---------- */
.sekcia { padding-block: var(--section); border-top: 1px solid var(--line); }

.nadpis {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -.005em;
  max-width: 20ch;
}
.nadpis span { display: block; color: var(--soft); }
.nadpis--siroky { max-width: 28ch; }

/* ---------- úvod ---------- */
.hero { padding-block: clamp(56px, 9vw, 128px) var(--section); }
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
.hero__slogan {
  display: flex; align-items: center; gap: 14px;
  color: var(--brass);
  font-size: .92rem;
  letter-spacing: .02em;
  margin-bottom: 28px;
}
.hero__slogan::before { content: ""; width: 36px; height: 1px; background: var(--brass); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin-bottom: 32px;
}
.hero__sub { display: block; color: var(--soft); }
.lead { color: var(--soft); font-size: 1.06rem; max-width: 54ch; margin-bottom: 36px; }

.hero__sluzby { border-left: 1px solid var(--line); }
.hero__sluzby li { padding: 22px 0 22px 28px; border-bottom: 1px solid var(--line); }
.hero__sluzby li:last-child { border-bottom: 0; }
.hero__sluzby h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--brass);
  margin-bottom: 4px;
}
.hero__sluzby p { color: var(--soft); font-size: .9rem; line-height: 1.6; }

/* ---------- prístup ---------- */
.pristup__in {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.pristup__hlava { position: sticky; top: calc(var(--header-h) + 40px); }
.pristup__hlava .nadpis { margin-bottom: 28px; }
.pristup__hlava .text-soft { max-width: 46ch; }

.vyhody li { padding-block: 30px; border-top: 1px solid var(--line); }
.vyhody li:first-child { padding-top: 0; border-top: 0; }
.vyhody h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.2;
  margin-bottom: 10px;
}
.vyhody p { color: var(--soft); max-width: 60ch; }

/* ---------- manifest ---------- */
.manifest { background: var(--bg-2); border-top: 0; }
.manifest__in {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.manifest__citat {
  margin: 0;
  padding-left: 28px;
  border-left: 1px solid var(--brass);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
}
.manifest__text { max-width: 62ch; }
.manifest__zvyraznenie {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.25;
  color: var(--brass);
  margin: 32px 0;
}

/* ---------- v praxi ---------- */
.prax .nadpis { margin-bottom: clamp(36px, 5vw, 64px); }
.prax__body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.prax__body li { border-top: 1px solid var(--brass); padding-top: 24px; }
.prax__body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
.prax__body p { color: var(--soft); }

.prax__cena {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 7vw, 112px);
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
  align-items: start;
}
.prax__cena .text-soft { max-width: 62ch; }
.prax__zaver {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.2;
}

/* ---------- spolupráca ---------- */
.spolupraca .nadpis { margin-bottom: clamp(40px, 5vw, 64px); }
.moznosti {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.moznost { padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px) clamp(28px, 4vw, 48px) 0; }
.moznost + .moznost { padding-left: clamp(24px, 4vw, 56px); padding-right: 0; border-left: 1px solid var(--line); }
.moznost h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 14px;
}
.moznost p { color: var(--soft); max-width: 56ch; }
.moznost--my h3 { color: var(--brass); }
.moznost--my p { color: var(--text); }

.spolupraca__zaver {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(40px, 7vw, 112px);
  margin-top: clamp(40px, 5vw, 64px);
  align-items: end;
}
.spolupraca__zaver .text-soft { max-width: 62ch; }
.termin { color: var(--soft); font-size: .84rem; margin-top: 14px; }

/* ---------- kontakt ---------- */
.kontakt { background: var(--bg-2); border-top: 0; }
.kontakt__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.kontakt__text .nadpis { margin-bottom: 28px; }
.kontakt__text .text-soft { max-width: 50ch; }
.kontakt__poznamka {
  margin-top: 32px;
  padding-left: 20px;
  border-left: 1px solid var(--brass);
  max-width: 46ch;
}

.karta {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
}
.karta__udaje { margin: 0 0 32px; display: grid; gap: 20px; }
.karta__udaje dt { color: var(--soft); font-size: .8rem; letter-spacing: .02em; margin-bottom: 2px; }
.karta__udaje dd { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.karta__udaje a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s ease; }
.karta__udaje a:hover { border-color: var(--brass); }
.karta__meno { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; line-height: 1.2; }

/* ---------- pätička ---------- */
.site-footer {
  background: var(--bg-3);
  color: var(--soft);
  font-size: .88rem;
  padding-block: 56px 32px;
}
.site-footer__in {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
.site-footer__brand p { margin-top: 14px; }
.site-footer address { font-style: normal; }
.site-footer address strong { color: var(--text); font-weight: 500; }
.site-footer__udaje { margin: 0; display: grid; gap: 6px; }
.site-footer__udaje div { display: flex; gap: 8px; }
.site-footer__udaje dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.site-footer__kontakt a { text-decoration: none; color: var(--text); }
.site-footer__kontakt a:hover { color: var(--brass); }
.site-footer__copy {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
}

/* ---------- 404 ---------- */
.chyba { border-top: 0; min-height: 50vh; }
.chyba .nadpis { margin-bottom: 20px; }
.chyba .text-soft { margin-bottom: 32px; }

/* ---------- menšie obrazovky ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .site-footer__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero__in,
  .pristup__in,
  .manifest__in,
  .prax__body,
  .prax__cena,
  .spolupraca__zaver,
  .kontakt__in,
  .moznosti { grid-template-columns: minmax(0, 1fr); }

  .hero__in { align-items: start; }
  .pristup__hlava { position: static; }
  .moznost, .moznost + .moznost { padding: 28px 0; border-left: 0; }
  .moznost + .moznost { border-top: 1px solid var(--line); }
}

@media (max-width: 520px) {
  :root { --header-h: 64px; }
  .logo { gap: 10px; }
  .logo-mark { width: 34px; height: 26px; }
  .logo-text { font-size: .92rem; }
  .site-header .btn--male { padding: 10px 14px; font-size: .8rem; }
  .btns .btn { flex: 1 1 100%; text-align: center; }
  .site-footer__in { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 380px) {
  .site-header .logo-text { display: none; }
}
