/* ============================================================
   RESET
============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================================
   ZÁKLADNÍ NASTAVENÍ TĚLA A TEXTŮ
============================================================ */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #020617;
  color: #94a3b8;
  line-height: 1.6;
  font-size: 1.15rem;
}

section p {
  max-width: 850px;
  margin-bottom: 16px;
  font-size: 1.35rem;
  line-height: 1.7;
  color: #ffffff;
}

/* ============================================================
   POZADÍ – HERO
============================================================ */
.hero-bg {
  position: fixed;
  inset: 0;
  background-image: url('pozadi.png');
  background-size: cover;
  background-position: center bottom;
  z-index: -2;
}

.hero-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.4), rgba(2, 6, 23, 0.9));
  z-index: -1;
}

/* ============================================================
   HLAVIČKA
============================================================ */
header {
  padding: 28px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(2, 6, 23, 0.90);
  border-bottom: 1px solid #334155;
}

.logo {
  font-size: 2.9rem;
  font-weight: 800;
  color: #000000;
}

/* ============================================================
   SEKCE / HERO BOXY
============================================================ */
section,
.hero {
  width: 90%;
  margin: 4vh auto;
  padding: 6vh 6vw;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #334155;
  border-radius: 16px;
}

section.hero:first-of-type {
  padding-top: 12vh;
  padding-bottom: 8vh;
}

.hero h2 {
  font-size: clamp(2.1rem, 3.4vw, 2.8rem);
  margin-bottom: 16px;
  color: #f4f4f5;
}

.hero p {
  font-size: 1.2rem;
  max-width: 850px;
  margin-bottom: 26px;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #f4b000;
}

/* ============================================================
   TLAČÍTKA – SJEDNOCENÉ BUBLINY
============================================================ */
.btn,
.btn-primary,
.btn-yellow,
.btn-ghost {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: 0.2s;
  cursor: pointer;

  width: 100%;
  max-width: 320px;
  height: 60px;
}

.btn-primary,
.btn-yellow {
  background: #f4b000;
  color: #3b2600;
}

.btn-primary:hover,
.btn-yellow:hover {
  background: #ffca2b;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid #334155;
  background: rgba(15, 23, 42, 0.6);
  color: #e5e7eb;
}

.btn-ghost:hover {
  background: rgba(51, 65, 85, 0.6);
  transform: translateY(-1px);
}

/* ============================================================
   BLOG / KARTY
============================================================ */

.blog-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:24px;
}

.blog-item{
    position:relative;
    display:block;
    overflow:hidden;
    border-radius:16px;
    border:1px solid #334155;
    text-decoration:none;
    background:#0f172a;
    transition:.3s;
    aspect-ratio:16/10;
}

.blog-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.4s;
}

.blog-item::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top,
        rgba(2,6,23,.95),
        rgba(2,6,23,.35),
        transparent);
}

.blog-text{
    position:absolute;
    left:20px;
    right:20px;
    bottom:20px;
    z-index:2;
}

.blog-text h3{
    margin:0 0 8px;
    color:#f4b000;
    font-size:1.6rem;
}

.blog-text p{
    margin:0;
    color:#fff;
    font-size:1rem;
    line-height:1.5;
}

.blog-item:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 40px rgba(0,0,0,.45);
}

.blog-item:hover img{
    transform:scale(1.05);
}
/* ============================================================
   POPUP
============================================================ */
#oslik-popup {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#oslik-popup .popup-content {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #334155;
  padding: 30px 40px;
  border-radius: 18px;
  max-width: 420px;
  text-align: center;
  font-size: 1.1rem;
  color: #e5e7eb;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

/* ============================================================
   PATIČKA
============================================================ */
footer {
  padding: 20px 6vw;
  text-align: center;
  font-size: 0.95rem;
  color: #6b7280;
}

footer a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   HERO – MLUVENÝ OSLÍK (BOXY 1 + 2)
============================================================ */
.hero-oslik-box {
  width: 90%;
  margin: 4vh auto;
  padding: 6vh 6vw;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #334155;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.oslik-vypraveni-container {
  flex: 3;
}

.oslik-bublina {
  position: relative;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid #334155;
  border-radius: 18px;
  color: #fff;
  font-size: 1.35rem;
  font-style: italic;
  text-align: center;
}

.oslik-bublina::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 20px solid #334155;
}

.oslik-divider {
  width: 100%;
  height: 4px;
  margin: 15px 0 20px;
  background: linear-gradient(to right, transparent, #64748b, #94a3b8, #64748b, transparent);
  border-radius: 4px;
}

/* ============================================================
   SJEDNOCENÁ VELIKOST OBRÁZKŮ – ERB, KRONIKÁŘ, KRÁL
============================================================ */
.oslik-image-container {
  flex: 1;
  text-align: right;
  min-width: 260px;
}

.dobrodruh-image {
  flex: 1;
  text-align: right;
  min-width: 260px;
}

.oslik-img {
  width: 260px;
  height: 260px;
  object-fit: contain;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

/* Mobil – Oslík boxy */
@media (max-width: 850px) {
  .hero-oslik-box {
    flex-direction: column;
    text-align: center;
  }
  .oslik-image-container,
  .dobrodruh-image {
    order: -1;
    text-align: center;
  }
  .oslik-bublina::after {
    display: none;
  }
}

/* ============================================================
   BOX – DOBRODRUH (JMÉNO)
============================================================ */
.dobrodruh-box {
  margin: 60px auto;
  padding: 40px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  backdrop-filter: blur(6px);
}

.dobrodruh-form {
  flex: 1;
}

.dobrodruh-form h2 {
  color: #f4b000;
  margin-bottom: 15px;
  font-size: 2rem;
}

.dobrodruh-popis {
  color: #cbd5e1;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

#dobrodruh-jmeno {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.2rem;
  border-radius: 10px;
  border: 2px solid #475569;
  background: #0f172a;
  color: #f1f5f9;
  outline: none;
  transition: 0.2s;
}

#dobrodruh-jmeno:focus {
  border-color: #f4b000;
}

.ulozeno-info {
  margin-top: 15px;
  font-size: 1.1rem;
  color: #22c55e;
  font-weight: bold;
}

/* Mobil – dobrodruh box */
@media (max-width: 800px) {
  .dobrodruh-box {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   YOUTUBE BOX – FINÁLNÍ VERZE
============================================================ */
.youtube-oslik-box {
  display: flex;
  gap: 20px;
  align-items: center;
  background: rgba(255,255,255,0.08);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  margin-bottom: 25px;
  width: 100%;
  box-sizing: border-box;
}

.youtube-left {
  flex: 0 0 45%;
}

.youtube-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
}

.youtube-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.youtube-right {
  flex: 1;
  color: white;
}

.youtube-right h3 {
  margin-top: 0;
  color: #f4b000;
}
/* Mobil – YouTube */
@media (max-width: 768px) {
  .youtube-oslik-box {
    flex-direction: column;
    text-align: center;
  }
  .youtube-left {
    width: 100%;
  }
  .youtube-frame {
    padding-bottom: 70%;
  }
}

/* Tablet – YouTube */
@media (min-width: 769px) and (max-width: 1024px) {
  .youtube-left {
    flex: 0 0 50%;
  }
  .youtube-frame {
    padding-bottom: 70%;
  }
}

/* Italské písmo pro všechny velké texty */
h1, h2, h3, .logo, .subtitle, .yellow-title, .hashtag-italic {
    font-style: italic !important;
    color: #f4f4f5;
    opacity: 0.9;
}

header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
/* ============================================================
   PATIČKA – TEMNÝ OSLÍKOVO STYL
============================================================ */

.oslik-footer {
  width: 100%;
  margin-top: 60px;
  padding: 50px 6vw;
  background: rgba(2, 6, 23, 0.85);
  border-top: 1px solid #334155;
  backdrop-filter: blur(6px);
  color: #94a3b8;
  font-style: italic;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h3 {
  color: #f4b000;
  margin-bottom: 12px;
  font-size: 1.4rem;
  font-style: italic;
}

.footer-col p {
  color: #cbd5e1;
  max-width: 260px;
  font-size: 1.2rem;
  line-height: 1.7;
  font-style: italic;
}

.footer-col a {
  display: block;
  margin: 6px 0;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 1.1rem;
  font-style: italic;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #f4b000;
  text-decoration: none;
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
  color: #94a3b8;
  font-size: 1.2rem;
  font-style: italic;
  border-top: 1px solid #334155;
  padding-top: 20px;
  line-height: 1.7;
}

.footer-bottom a {
  color: #f4b000;
  text-decoration: none;
  font-size: 1.2rem;
  font-style: italic;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #ffd54a;
  text-decoration: none;
}

/* Mobil */
@media (max-width: 800px) {

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-col p {
    max-width: 100%;
  }

  .footer-bottom {
    font-size: 1.1rem;
  }
}
/* ============================================================
   OPRAVA PATIČKY – 4 SLOUPCE
============================================================ */

.footer-inner,
.footer-grid{
    max-width:1200px;
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:50px;
    align-items:start;
}

.footer-col{
    text-align:left;
}

.footer-col h3{
    color:#f4b000;
    margin-bottom:16px;
    font-size:1.45rem;
    font-style:italic;
}

.footer-col p{
    color:#cbd5e1;
    margin:8px 0;
    max-width:none;
    font-size:1.18rem;
    line-height:1.8;
    font-style:italic;
}

.footer-col a{
    display:block;
    margin:8px 0;
    color:#e5e7eb;
    text-decoration:none;
    font-size:1.1rem;
    transition:all .2s ease;
}

.footer-col a:hover{
    color:#f4b000;
    transform:translateX(3px);
}

.footer-bottom,
.footer-copy{
    margin-top:35px;
    padding-top:20px;
    border-top:1px solid #334155;
    text-align:center;
    color:#94a3b8;
    font-size:1.2rem;
    font-style:italic;
    line-height:1.8;
}

.footer-bottom a,
.footer-copy a{
    color:#f4b000;
    text-decoration:none;
    font-size:1.2rem;
    font-style:italic;
}

.footer-bottom a:hover,
.footer-copy a:hover{
    color:#ffd54a;
    text-decoration:underline;
}

/* Mobil */
@media (max-width

/* Mobil */
@media (max-width:800px){
    .footer-inner,
    .footer-grid{
        grid-template-columns:1fr;
        gap:30px;
    }

    .footer-col{
        text-align:left;
    }
}
.youtube-full-box::after{
    display:none;
}

.youtube-full-box{
    aspect-ratio:auto;
    overflow:visible;
}

.youtube-frame{
    position:relative;
    z-index:5;
}

.youtube-frame iframe{
    position:relative;
    z-index:10;
}