/* Bezplatná požičovňa zdravotných pomôcok – Hospic Matky Božej
   Jeden zdroj štýlov pre PHP verziu aj pre náhľad. */

:root {
  --biela: #ffffff;
  --modra-svetla: #eaf4fb;
  --modra-jemna: #d3e8f6;
  --modra: #1f6f9c;
  --modra-tmava: #12496a;
  --oranzova: #e88b2f;
  --oranzova-svetla: #fdf1e3;
  --text: #1c2b33;
  --text-tlmeny: #4c6270;
  --ciara: #d9e6ee;
  --tien: 0 10px 30px rgba(18, 73, 106, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--biela);
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", Tahoma, Verdana, sans-serif;
  font-size: 20px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  display: block;
}

.email {
  white-space: nowrap;
}

a {
  color: var(--modra-tmava);
}

.obal {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.preskocit {
  position: absolute;
  left: -9999px;
}
.preskocit:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--biela);
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

/* Hlavička */
.hlavicka {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ciara);
}
.hlavicka .obal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}
.znacka {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}
.znacka .logo-img {
  height: 56px;
  width: auto;
  flex: none;
}
.znacka strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
}
.znacka span {
  font-size: 0.85rem;
  color: var(--text-tlmeny);
}
.menu {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.menu a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  padding: 0.35rem 0;
  border-bottom: 3px solid transparent;
}
.menu a:hover,
.menu a:focus {
  color: var(--modra);
  border-bottom-color: var(--oranzova);
}

/* Tlačidlá */
.tlacidlo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.6rem;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.tlacidlo:hover {
  transform: translateY(-2px);
}
.tlacidlo-hlavne {
  background: var(--oranzova);
  color: #fff;
}
.tlacidlo-hlavne:hover {
  background: #d17c22;
}
.tlacidlo-vedlajsie {
  background: var(--biela);
  color: var(--modra-tmava);
  border-color: var(--modra-jemna);
}
.tlacidlo-vedlajsie:hover {
  background: var(--modra-svetla);
}

/* Sekcie */
section {
  padding: 4.5rem 0;
}
.nadpis-sekcie {
  color: var(--modra);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}
.katalog-poznamka {
  font-size: 0.6em;
  opacity: 0.85;
}
h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1.2rem;
}
h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.25;
  margin: 0 0 1.2rem;
}
h3 {
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
}
p {
  margin: 0 0 1rem;
}

/* Úvod */
.uvod {
  background: linear-gradient(180deg, var(--modra-svetla), #fff);
  padding-top: 3.5rem;
}
.uvod-mriezka {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.stitok {
  display: inline-block;
  background: var(--oranzova-svetla);
  color: #a25c10;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.uvod-tlacidla {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.kontakt-pasik {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--ciara);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--tien);
}
.kontakt-pasik > div > span {
  display: block;
  font-size: 0.95rem;
  color: var(--text-tlmeny);
}
.email {
  white-space: nowrap;
  font-size: inherit;
  color: inherit;
}
.kontakt-pasik a {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.uvod-foto img {
  border-radius: 24px;
  box-shadow: var(--tien);
  width: 100%;
  height: auto;
}

/* Karty výhod */
.vyhody {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 3rem;
}
.karta {
  background: #fff;
  border: 1px solid var(--ciara);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--tien);
}
.karta .emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.6rem;
}

/* O nás */
.o-nas {
  background: var(--modra-svetla);
}
.dva-stlpce {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.dva-stlpce img {
  border-radius: 24px;
  box-shadow: var(--tien);
}
.ramik {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--ciara, #d7e6f2);
  background: var(--biela, #ffffff);
  box-shadow: var(--tien);
  margin: 0;
}
.ramik img {
  display: block;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}
.ramik figcaption {
  padding: 1rem 1.4rem;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-tlmeny);
}

/* Katalóg */
.katalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 2.5rem;
}
.pomocka {
  background: #fff;
  border: 1px solid var(--ciara);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--tien);
  display: flex;
  flex-direction: column;
}
.pomocka img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: #fff;
  padding: 0.6rem;
}
.pomocka-telo {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.pomocka-telo .tlacidlo {
  margin-top: auto;
  align-self: flex-start;
}

/* Kroky */
.kroky {
  background: var(--oranzova-svetla);
}
.kroky-mriezka {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.krok {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid #f0dcc4;
}
.krok .cislo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--oranzova);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}

/* Rezervácia */
.rezervacia {
  background: var(--modra-svetla);
}
.formular {
  background: #fff;
  border: 1px solid var(--ciara);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: var(--tien);
}
.pole {
  margin-bottom: 1.3rem;
}
.pole label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}
.pole input,
.pole select,
.pole textarea {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  padding: 0.95rem 1rem;
  border: 2px solid var(--ciara);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}
.pole input:focus,
.pole select:focus,
.pole textarea:focus {
  outline: 3px solid var(--modra-jemna);
  border-color: var(--modra);
}
.pole textarea {
  min-height: 140px;
  resize: vertical;
}
.suhlas {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.suhlas input {
  width: 26px;
  height: 26px;
  margin-top: 0.25rem;
  flex: none;
}
.poznamka {
  font-size: 1rem;
  color: var(--text-tlmeny);
}
.hlaska {
  padding: 1.1rem 1.3rem;
  border-radius: 14px;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hlaska-ok {
  background: #e7f6ec;
  border: 2px solid #9dd6b0;
  color: #16603a;
}
.hlaska-chyba {
  background: #fdecec;
  border: 2px solid #f0b1b1;
  color: #8c2020;
}

/* 2 % */
.udaje {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  background: #fff;
  border: 1px solid var(--ciara);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--tien);
  margin-bottom: 1.5rem;
}
.udaje div span {
  display: block;
  color: var(--text-tlmeny);
  font-size: 0.95rem;
}
.udaje div strong {
  font-size: 1.15rem;
}

/* Kontakt */
.kontakt {
  background: var(--modra-svetla);
}
.kontakt-mriezka {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.hodiny {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid var(--ciara);
}
.hodiny div {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--ciara);
  font-size: 1.15rem;
}
.hodiny div:last-child {
  border-bottom: 0;
}

/* Pätička */
.paticka {
  background: var(--modra-tmava);
  color: #dcecf6;
  padding: 2.5rem 0;
  font-size: 1rem;
}
.paticka a {
  color: #fff;
}

@media (max-width: 980px) {
  .uvod-mriezka,
  .dva-stlpce,
  .kontakt-mriezka {
    grid-template-columns: 1fr;
  }
  .vyhody,
  .katalog,
  .kroky-mriezka {
    grid-template-columns: 1fr 1fr;
  }
  .menu {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 19px;
  }
  .vyhody,
  .katalog,
  .kroky-mriezka,
  .kontakt-pasik,
  .udaje {
    grid-template-columns: 1fr;
  }
  section {
    padding: 3rem 0;
  }
}

.mapa {
  width: 100%;
  height: 22rem;
  margin-top: 2rem;
  border: 1px solid var(--ciara, #d7e3ef);
  border-radius: 1.5rem;
  box-shadow: 0 18px 44px rgba(28, 58, 90, 0.12);
}

@media (min-width: 640px) {
  .mapa { height: 26rem; }
}

.pomocka-video-spust {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: center;
}
.pomocka-video-spust img { display: block; width: 100%; }
.pomocka-play {
  display: block;
  padding: 0.55rem;
  background: #eaf3fb;
  color: #1c3a5a;
  font-size: 1rem;
  font-weight: 600;
}
.pomocka-video-spust:hover .pomocka-play,
.pomocka-video-spust:focus-visible .pomocka-play { background: #d8e9f7; }

.video-prekrytie {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(12, 28, 45, 0.82);
}
.video-okno {
  position: relative;
  width: min(60rem, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.video-okno iframe { width: 100%; height: 100%; border: 0; }
.video-zatvorit {
  position: absolute;
  top: -3.2rem;
  right: 0;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1c3a5a;
  font-size: 1.2rem;
  cursor: pointer;
}

.video-prekrytie[hidden] { display: none !important; }
