/* =========================================================
   Radosti z Podluží – stránka „O nás“
   Všechny styly jsou omezené na .rzp-onas, aby neovlivnily zbytek šablony.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,700&display=swap');

.rzp-onas {
  --rzp-bezova: #e9e0d3;
  --rzp-bila: #ffffff;
  --rzp-hneda: #6a5f4a;
  --rzp-text: #1a1a1a;
  --rzp-cervena: #c4161c;
  --rzp-orn: url('/user/documents/upload/onas-ornament-tulipan.png');
  --rzp-orn2: url('/user/documents/upload/onas-ornament-vetvicka.png');
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--rzp-text);
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.rzp-onas *,
.rzp-onas *::before,
.rzp-onas *::after { box-sizing: border-box; }

/* ---------- sekce ---------- */
.rzp-onas__sekce {
  position: relative;
  overflow: hidden;
  padding: 48px 40px;
  background: var(--rzp-bila);
}
.rzp-onas__sekce--bezova { background: var(--rzp-bezova); }

.rzp-onas__obsah {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.rzp-onas__obsah--uvod { grid-template-columns: 1.35fr 1fr; }
.rzp-onas__obsah--rodina { grid-template-columns: 1.3fr 1fr; }

/* fotka vpravo (na desktopu) */
.rzp-onas__sekce--obracene .rzp-onas__foto { order: 2; }
.rzp-onas__sekce--obracene .rzp-onas__text { order: 1; }

/* ---------- typografie ---------- */
.rzp-onas h2 {
  margin: 0 0 12px;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
  color: var(--rzp-hneda);
  text-transform: none;
  letter-spacing: 0;
  border: 0;
}
.rzp-onas h2 em { font-style: italic; }
.rzp-onas p {
  margin: 0 0 18px;
  padding: 0;
  text-align: justify;
  hyphens: manual;
}
.rzp-onas p:last-child { margin-bottom: 0; }
.rzp-onas strong { font-weight: 700; }
.rzp-onas__srdce { color: var(--rzp-hneda); font-style: normal; }
.rzp-onas__srdce--cervene { color: var(--rzp-cervena); }

/* ---------- obrázky ---------- */
.rzp-onas img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
  margin: 0;
}
.rzp-onas__foto {
  margin: 0;
  display: flex;
  justify-content: center;
}
.rzp-onas__foto img {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 9 / 10;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.rzp-onas__foto--vysoka img { max-width: 450px; aspect-ratio: 5 / 7; }
.rzp-onas__foto--siroka img { max-width: 100%; aspect-ratio: 12 / 7; object-position: center; }

.rzp-onas .rzp-onas__logo img {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  box-shadow: none;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.rzp-onas img.rzp-onas__madewith {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 28px auto 0 !important;
}

/* ---------- dekorace ---------- */
.rzp-onas__sekce--bezova::before,
.rzp-onas__sekce--bezova::after {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}
/* úvod: tulipán vlevo nahoře, větvička vpravo dole */
.rzp-onas__sekce--uvod::before {
  width: 240px; height: 240px; left: -70px; top: -70px;
  background-image: var(--rzp-orn); transform: rotate(-35deg);
}
.rzp-onas__sekce--uvod::after {
  width: 220px; height: 260px; right: -60px; bottom: -40px;
  background-image: var(--rzp-orn2); transform: rotate(20deg);
}
/* Mirka */
.rzp-onas__sekce--mirka::before {
  width: 200px; height: 200px; left: -60px; top: -50px;
  background-image: var(--rzp-orn2); transform: rotate(-20deg);
}
.rzp-onas__sekce--mirka::after {
  width: 220px; height: 220px; right: -50px; bottom: -60px;
  background-image: var(--rzp-orn); transform: rotate(15deg);
}
/* Aleš */
.rzp-onas__sekce--ales::before {
  width: 220px; height: 220px; left: 38%; top: -80px;
  background-image: var(--rzp-orn); transform: rotate(160deg);
}
.rzp-onas__sekce--ales::after {
  width: 180px; height: 200px; right: -50px; bottom: -40px;
  background-image: var(--rzp-orn2); transform: rotate(-10deg);
}
/* bílé sekce: jemné béžové linky (vlnky) */
.rzp-onas__sekce--vlnky::before {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 340px; height: 100%;
  right: 0; top: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 600' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23e6dccd' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M330 10 C 250 140 360 250 230 360 S 40 470 10 590'/%3E%3Cpath d='M345 120 C 280 230 350 320 260 410 S 120 520 90 600'/%3E%3C/g%3E%3C/svg%3E") no-repeat right top / 100% 100%;
}
.rzp-onas__sekce--vlnky-vlevo::before { right: auto; left: 0; transform: scaleX(-1); }

/* ---------- tablet ---------- */
@media (max-width: 991px) {
  .rzp-onas__sekce { padding: 40px 28px; }
  .rzp-onas__obsah { gap: 32px; }
  .rzp-onas h2 { font-size: 23px; }
}

/* ---------- mobil ---------- */
@media (max-width: 767px) {
  .rzp-onas { font-size: 15.5px; line-height: 1.65; }
  .rzp-onas__sekce { padding: 32px 18px; }
  .rzp-onas__obsah,
  .rzp-onas__obsah--uvod,
  .rzp-onas__obsah--rodina { grid-template-columns: 1fr; gap: 22px; }
  /* na mobilu vždy fotka nahoře, text pod ní */
  .rzp-onas__sekce--obracene .rzp-onas__foto,
  .rzp-onas__foto { order: 0; }
  .rzp-onas__sekce--obracene .rzp-onas__text,
  .rzp-onas__text { order: 1; }
  .rzp-onas .rzp-onas__logo img { max-width: 220px; aspect-ratio: 1 / 1; }
  .rzp-onas__foto img,
  .rzp-onas__foto--vysoka img { max-width: 420px; aspect-ratio: 4 / 5; }
  .rzp-onas__foto--siroka img { aspect-ratio: 3 / 2; }
  .rzp-onas p { text-align: left; }
  .rzp-onas h2 { font-size: 22px; }
  .rzp-onas img.rzp-onas__madewith { max-width: 260px; }
  .rzp-onas__sekce--bezova::before,
  .rzp-onas__sekce--bezova::after { scale: .6; opacity: .8; }
  .rzp-onas__sekce--vlnky::before { width: 160px; opacity: .7; }
}
