/* Kominík Jan Tichý – barvy vycházejí z fotek: večerní obloha, saze, červené lanko na cívce */

@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 600 800;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 600 800;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin.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: "Instrument Sans";
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/instrument-sans-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/instrument-sans-latin.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;
}

:root {
  --obloha: #b5c1ed;
  --saze: #0e0f14;
  --cervena: #e5482d;

  --plocha: #f5f7fa;
  --text: #14161d;
  --text-2: #454d5d;
  --text-3: #636b7c;
  --linka: rgb(20 22 29 / 0.12);

  --okraj: max(24px, (100vw - 1200px) / 2);
  --nadpis: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --plynule: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--plocha);
  color: var(--text);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 28px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd, table { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3, .velke-cislo, .znacka { font-family: var(--nadpis); font-weight: 700; }
h1 { font-weight: 800; }

h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

.sirka { padding-inline: var(--okraj); }
.ikona { width: 18px; height: 18px; flex: none; }
.skryte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ——— značka ——— */

.znacka {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
}
.znacka > span { white-space: nowrap; }
.znacka-civka { width: 28px; height: 28px; flex: none; }
.znacka-remeslo {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.72;
  padding-left: 10px;
  border-left: 1px solid currentColor;
}

/* ——— úvod ——— */

.uvod {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to right, #b6c2ef, #a7b1e2);
  color: var(--text);
  overflow: hidden;
}
.uvod::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48px;
  background: linear-gradient(transparent, var(--saze));
  pointer-events: none;
}

.lista {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
  position: relative;
  z-index: 1;
}
.lista-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.lista-tel:hover { text-decoration: underline; text-underline-offset: 4px; }

.uvod-text {
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: 32px;
  animation: nastup 500ms var(--plynule) both;
}
@keyframes nastup {
  from { opacity: 0; transform: translateY(10px); }
}

h1 {
  font-size: clamp(40px, 11vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.uvod-popis {
  margin-top: 20px;
  max-width: 34rem;
  font-size: 18px;
  line-height: 28px;
  color: #262b3a;
}
.uvod-akce {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 28px;
}

.tlacitko {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding-inline: 24px;
  border-radius: 10px;
  background: var(--saze);
  color: #f2f4f9;
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12);
  transition: background-color 160ms var(--plynule), transform 160ms var(--plynule);
}
.tlacitko:hover { background: #232733; }
.tlacitko:active { transform: scale(0.98); }

.odkaz {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  padding-block: 8px;
}
.odkaz:hover { text-decoration-thickness: 2px; }

/* na telefonu je fotka pod textem a nahoře se rozplyne do oblohy */
.uvod-obraz { order: 1; }
@media (max-width: 479px) {
  .lista .znacka-remeslo { display: none; }
}
.uvod-foto {
  width: 100%;
  -webkit-mask-image: linear-gradient(transparent, #000 8%);
  mask-image: linear-gradient(transparent, #000 8%);
}

/* širší okno na výšku: fotka nesmí přerůst obrazovku */
@media (min-width: 720px) {
  .uvod-foto { height: min(100vw, 72svh); object-fit: cover; object-position: 50% 0; }
}

@media (min-width: 960px) and (min-aspect-ratio: 5/4) {
  .uvod {
    --vyska: max(100svh, 600px);
    height: var(--vyska);
    background: var(--obloha);
  }
  .uvod::after { height: 12%; }
  .uvod-foto {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right bottom;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .lista { height: 88px; }
  .uvod-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    padding-bottom: calc(var(--vyska) * 0.16);
  }
  .uvod-text > * { max-width: min(36rem, 100vw - var(--okraj) - var(--vyska) * 0.7 - 32px); }
  h1 { font-size: clamp(52px, 5.6vw, 88px); letter-spacing: -0.015em; }
  .uvod-popis { margin-top: 24px; font-size: 20px; line-height: 30px; }
  .uvod-akce { margin-top: 36px; }
}

/* ——— pásy ——— */

.pas { padding-block: 72px; }
.tmavy {
  background: var(--saze);
  color: #eef0f5;
  --text-2: #a8aebd;
  --text-3: #858da0;
  --linka: rgb(238 240 245 / 0.14);
}

.dva-sloupce { display: grid; gap: 40px; }
.perex { margin-top: 20px; max-width: 30rem; color: var(--text-2); }

@media (min-width: 960px) {
  .pas { padding-block: 120px; }
  .dva-sloupce { grid-template-columns: 5fr 7fr; gap: 80px; }
}

/* ——— co udělám ——— */

.sluzby li {
  position: relative;
  padding: 28px 0 28px 44px;
  border-top: 1px solid var(--linka);
}
.sluzby li:last-child { border-bottom: 1px solid var(--linka); }
.sluzby li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 34px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--cervena);
  border-radius: 50%;
}
.sluzby h3 { font-size: 24px; line-height: 32px; letter-spacing: -0.01em; }
.sluzby p { margin-top: 8px; max-width: 38rem; color: var(--text-2); }

/* ——— lhůty ——— */

.lhuty {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.lhuty th, .lhuty td {
  padding: 16px 0;
  border-bottom: 1px solid var(--linka);
  text-align: left;
  vertical-align: baseline;
  font-weight: 400;
}
.lhuty thead th {
  padding-top: 0;
  padding-bottom: 12px;
  font-size: 15px;
  line-height: 20px;
  color: var(--text-3);
  border-bottom-color: var(--text);
}
.lhuty tbody th { font-weight: 500; padding-right: 12px; }
.lhuty tbody th span {
  display: block;
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
  color: var(--text-3);
}
.lhuty .cislo { text-align: right; white-space: nowrap; padding-left: 16px; width: 1%; }
.lhuty td.cislo { font-size: 18px; font-weight: 500; }

.poznamky {
  margin-top: 24px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-2);
}
.poznamky li { position: relative; padding-left: 16px; }
.poznamky li + li { margin-top: 4px; }
.poznamky li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-3);
}

.rada {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--linka);
  font-size: 18px;
}
.rada a {
  font-weight: 600;
  white-space: nowrap;
  text-decoration-color: var(--cervena);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.rada a:hover { color: #b8351d; }

@media (max-width: 359px) {
  .lhuty .cislo { padding-left: 8px; }
  .lhuty td.cislo { font-size: 16px; }
}
@media (min-width: 960px) {
  .lhuty th, .lhuty td { padding-block: 20px; }
  .lhuty .cislo { padding-left: 48px; }
  .lhuty td.cislo { font-size: 20px; }
}

/* ——— fotky ——— */

.pas-fotky { padding-top: 0; }
.fotky { display: flex; flex-wrap: wrap; gap: 12px; }
.fotky img {
  flex: var(--pomer) 1 0;
  min-width: 0;
  width: 0;
  aspect-ratio: var(--pomer);
  object-fit: cover;
  border-radius: 12px;
}
.fotky img:first-child { flex-basis: 100%; }

@media (min-width: 720px) {
  .fotky { flex-wrap: nowrap; gap: 20px; }
  .fotky img, .fotky img:first-child { flex-basis: 0; }
}

/* ——— kontakt ——— */

.kontakt { display: grid; gap: 48px; align-items: center; }
.velke-cislo {
  display: inline-block;
  margin-top: 24px;
  font-size: clamp(48px, 13.5vw, 104px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 160ms var(--plynule);
}
.velke-cislo:hover { color: #ff7a5f; }

.udaje { margin-top: 40px; border-top: 1px solid var(--linka); }
.udaje div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
  border-bottom: 1px solid var(--linka);
}
.udaje dt { color: var(--text-3); }
.udaje dd { text-align: right; font-variant-numeric: tabular-nums; }

.kontakt-foto { width: 100%; border-radius: 16px; }

@media (min-width: 960px) {
  .kontakt { grid-template-columns: 7fr 4fr; gap: 80px; }
  .velke-cislo { font-size: clamp(64px, 7.4vw, 112px); }
  .udaje { max-width: 34rem; }
}

/* ——— patička ——— */

.paticka { padding-bottom: 40px; font-size: 15px; line-height: 24px; color: var(--text-2); }
.paticka-radek {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}
.paticka-radek::before {
  content: "";
  flex: 0 0 100%;
  border-top: 1px solid var(--linka);
  margin-bottom: 20px;
}
.paticka .znacka { color: #eef0f5; font-size: 18px; }
.paticka .znacka-civka { width: 24px; height: 24px; }
.paticka-ico { font-variant-numeric: tabular-nums; }

@media (min-width: 720px) {
  .paticka-ico { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .uvod-text { animation: none; }
  .tlacitko, .velke-cislo { transition: none; }
}

/* ——— stránka nenalezena ——— */

.nenalezeno {
  min-height: 100svh;
  display: grid;
  align-items: center;
  background: linear-gradient(#b5c1ed, #d7fafe);
}
.nenalezeno main { padding-block: 64px; }
.nenalezeno h1 { margin-top: 64px; }
