:root {
  --primary-color: #de253d;
  --primary-color-rgb: rgb(222, 37, 61);
  --text-color: #585656;
  --heading-color: #1c1d1d;
  --primary-font: "Nunito Sans", sans-serif;
  --secondary-font: "Marcellus", serif;
}

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

body {
  margin: 0;
  color: var(--text-color);
  font-family: var(--primary-font);
  font-size: 18px;
  line-height: 1.8;
  font-weight: 400;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
  border-style: none;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all ease 0.35s;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.container_2 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.cicban_vyhody_img {
  width: 30%;
  border-radius: 16px;
}

.big_text {
  font-size: 2.6rem;
  color: #de253d;
  text-align: center;
  padding: 0 15px;
}

.ciciban_galery {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  padding: 0 15px 40px;
}

.ciciban_card_img {
  width: 320px;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  background: #fff;
}

/* ---------- Hlavička a logo ---------- */
.site-header {
  background: #fff;
}

.logo-space {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-link {
  display: inline-block;
  line-height: 0;
}

.ciciban-logo {
  max-width: 100%;
  height: auto;
}

/* ---------- Kontaktní lišta ---------- */
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
}

.header-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.contact-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-block svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.contact-block .content {
  margin: 0;
  font-size: 0.8333em;
  line-height: 1.4;
  color: var(--heading-color);
}

.contact-block .content a {
  color: var(--heading-color);
  text-decoration: none;
}

.contact-block .content a:hover {
  color: var(--primary-color);
}

/* ---------- Navigace ---------- */
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  display: inline-block;
  padding: 16px 20px;
  color: var(--heading-color);
  font-size: 0.8888em;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.nav-menu li a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transform: translateX(-50%);
  transition: width ease 0.35s;
}

.nav-menu li a:hover::after {
  width: 30px;
}

.nav-menu li.current-menu-item a {
  color: var(--primary-color);
}

.nav-menu li.current-menu-item a::after {
  width: 30px;
}

/* Sociální sítě */
.nav-social {
  display: flex;
  align-items: center;
}

.social-list {
  display: flex;
  align-items: center;
}

.social-list li + li {
  margin-left: 8px;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--primary-color);
  border-radius: 100%;
  color: var(--primary-color);
}

.social-list a:hover {
  background: var(--primary-color);
  color: #fff;
}

.social-list svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Tlačítko pro mobilní menu */
.toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  cursor: pointer;
}

.toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--heading-color);
  border-radius: 2px;
  transition:
    transform ease 0.35s,
    opacity ease 0.35s;
}

/* ---------- Banner ---------- */
.top_section {
  width: 100%;
  padding: 15px;
}

.main_banner {
  width: 100%;
  height: auto;
  filter: blur(2px);
}

.banner-wrapper {
  position: relative;
}

.main_banner {
  display: block;
  width: 100%;
  filter: blur(2px);
}

.banner-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.banner-caption h1 {
  margin: 0 0 15px;
  font-family: var(--secondary-font);
  font-size: clamp(1.4rem, 6vw, 3em);
  line-height: 1.2;
  color: #fff;
}

.banner-caption p {
  max-width: min(500px, 90%);
  margin: 0;
  font-size: clamp(0.85rem, 2.8vw, 1.2rem);
  line-height: 1.5;
  color: #fff;
}

.btn-wrap {
  margin-top: 30px;
}

a.btn {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.6666em;
  font-weight: 700;
  color: #fff;
  background: var(--primary-color);
  padding: 15px 30px;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  letter-spacing: 1px;
  text-decoration: none;
  text-align: center;
  transition: all ease 0.35s;
}

a.btn:hover {
  background: transparent;
  color: var(--primary-color);
}

a.btn svg {
  width: 0.9em;
  height: 0.9em;
  margin-left: 10px;
  fill: currentColor;
  vertical-align: -0.1em;
}

.bottom_section {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 15px;
}

.cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 400px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  text-align: center;
  overflow: hidden;
  background: #fff;
}

.card_img {
  display: block;
  width: 100%;
  height: auto;
}

.card_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px 28px 36px;
}

.cards h2 {
  margin: 0;
  padding: 30px 32px 30px;
  font-family: var(--secondary-font);
  font-size: 1.6em;
  font-weight: 400;
  color: var(--heading-color);
}

.card_text {
  margin: 0;
  font-size: 0.8888em;
  line-height: 1.7;
  color: var(--text-color);
}

a.btn-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.8333em;
  font-weight: 700;
  color: #fff;
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  padding: 10px 26px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all ease 0.35s;
}

a.btn-readmore svg {
  width: 0.9em;
  height: 0.9em;
  fill: currentColor;
}

a.btn-readmore:hover {
  background: transparent;
  color: var(--primary-color);
}

/* ---------- Blog ---------- */
.blog_section {
  padding: 60px 15px;
  text-align: center;
}

.section_title {
  margin: 0 0 40px;
  font-family: var(--secondary-font);
  font-size: 2em;
  font-weight: 400;
  color: var(--heading-color);
}

.blog_grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1170px;
  margin: 0 auto;
}

.blog_card {
  display: flex;
  flex-direction: column;
  width: 320px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  background: #fff;
  text-align: left;
}

.blog_card img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog_content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 28px 32px;
}

.blog_date {
  font-size: 0.7778em;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--primary-color);
}

.blog_card h3 {
  margin: 0;
  font-family: var(--secondary-font);
  font-size: 1.25em;
  font-weight: 400;
  color: var(--heading-color);
}

.blog_card p {
  margin: 0;
  font-size: 0.8888em;
  line-height: 1.7;
  color: var(--text-color);
}

/* ---------- Stránka článku ---------- */
.blog-article {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 15px 60px;
}

.blog-article h1 {
  margin: 0 0 8px;
  font-family: var(--secondary-font);
  font-weight: 400;
  line-height: 1.2;
  color: var(--heading-color);
}

.blog-article .blog_date {
  display: block;
  margin-bottom: 24px;
}

.blog-article img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 24px;
}

.blog-article p {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.blog-article h2 {
  margin: 36px 0 14px;
  font-family: var(--secondary-font);
  font-size: 1.6em;
  font-weight: 400;
  line-height: 1.3;
  color: var(--heading-color);
}

.blog-article h3 {
  margin: 28px 0 12px;
  font-family: var(--secondary-font);
  font-size: 1.25em;
  font-weight: 400;
  line-height: 1.35;
  color: var(--heading-color);
}

.blog-article ul {
  margin: 0 0 18px;
  padding-left: 22px;
  list-style: disc;
}

.blog-article li {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
}

.blog-article hr {
  border: 0;
  border-top: 1px solid #ececec;
  margin: 34px 0;
}

.blog-article a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-article strong {
  color: var(--heading-color);
}

/* Obrázek vložený do textu článku */
.blog-inline-img {
  margin: 32px auto;
  max-width: 520px;
  text-align: center;
}

.blog-inline-img img {
  margin-bottom: 8px;
}

.blog-inline-img figcaption {
  font-size: 0.85em;
  color: #8a8a8a;
  line-height: 1.5;
}

/* Šipka zpět vpravo nahoře */
.blog-back {
  position: absolute;
  top: 40px;
  right: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
}

.blog-back svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.blog-back:hover {
  color: var(--primary-color);
}

/* Tlačítko Všechny články pod mřížkou */
.blog_intro {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1em;
  color: var(--text-color);
}

.blog_empty {
  width: 100%;
  text-align: center;
  color: #8a8a8a;
}

.blog_all {
  margin-top: 40px;
}

.blog_all_btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 600px) {
  .blog-back {
    position: static;
    margin-bottom: 16px;
  }
}

/* ---------- Stránka Vítejte u Cicibanu ---------- */
.page-header {
  background: var(--primary-color);
  padding: 40px 15px;
  text-align: center;
  margin-bottom: 40px;
}

.page-title {
  margin: 0;
  font-family: var(--secondary-font);
  font-weight: 400;
  font-size: 2.4em;
  color: #fff;
}

.page-article {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px 60px;
}

.page-article p {
  margin: 0 0 16px;
  line-height: 1.8;
  color: var(--text-color);
}

.page-intro {
  text-align: center;
  font-family: var(--secondary-font);
  font-weight: 400;
  font-size: 1.6em;
  line-height: 1.3;
  color: var(--heading-color);
  margin: 0 0 40px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.feature-row--reverse {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 0 0 40%;
}

.feature-image img {
  width: 100%;
  border-radius: 16px;
}

.feature-text {
  flex: 1;
}

.ciciban_header {
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin: 0 0 10px;
}

.feature-text p {
  margin: 0 0 12px;
  line-height: 1.8;
}

.feature-text p:last-child {
  margin-bottom: 0;
}

.page-quote {
  text-align: center;
  font-size: 1.1em;
  max-width: 700px;
  margin: 40px auto 0;
  color: var(--heading-color);
  line-height: 1.7;
}

.materials-section {
  margin-top: 60px;
  text-align: center;
}

.materials-title {
  margin: 0 0 24px;
  font-size: 1.1em;
}

.materials-text {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: left;
}

.materials-text p {
  margin: 0 0 16px;
  line-height: 1.8;
}

.materials-text p:last-child {
  margin-bottom: 0;
}

.materials-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.materials-gallery img {
  width: 300px;
  max-width: 100%;
  border-radius: 16px;
}

/* ---------- Responzivita ---------- */
@media (max-width: 992px) {
  .header-main {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-contact {
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .header-contact--right {
    width: auto;
  }

  .logo-space {
    order: 1;
    width: 100%;
  }

  .toggle-btn {
    display: flex;
  }

  .nav-wrap {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .main-nav {
    position: static;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    text-align: center;
  }

  .nav-menu li a::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .banner-caption {
    position: static;
    justify-content: flex-start;
    padding: 24px 16px 32px;
    background: #fff;
  }

  .main_banner {
    filter: none;
  }

  .banner-caption h1 {
    margin-bottom: 12px;
    font-size: 1.8rem;
    color: var(--heading-color);
  }

  .banner-caption p {
    font-size: 1rem;
    color: var(--text-color);
  }

  .btn-wrap {
    margin-top: 20px;
  }

  a.btn {
    padding: 12px 28px;
    font-size: 1rem;
  }

  .feature-row,
  .feature-row--reverse {
    flex-direction: column;
    gap: 20px;
  }

  .feature-image {
    flex: none;
    width: 100%;
  }

  .page-intro {
    font-size: 1.3em;
  }

  .ciciban_galery {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 40px;
  }

  .cicban_vyhody_img {
    width: 70%;
  }

  .big_text {
    font-size: 1.6rem;
  }

  .ciciban_card_img {
    width: 100%;
    max-width: 360px;
    height: 240px;
  }
}
