/* CSS RESET & BASE TYPOGRAPHY ----------------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  color: #2A3642;
  background: #FAF7F2;
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 480px) {
  body {
    font-size: 0.97rem;
  }
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

ol, ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
a {
  color: #2A3642;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #9E7A2D;
}


/* BRAND TYPOGRAPHY -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', 'Times New Roman', Times, serif;
  color: #2A3642;
  font-weight: 700;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.13;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  line-height: 1.17;
  margin-bottom: 20px;
  font-weight: 700;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
}
h4 {
  font-size: 1.15rem;
  margin-bottom: 9px;
  font-weight: 600;
}
p, li, ul, ol, .text-section {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.04rem;
  color: #2A3642;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
strong {
  font-weight: 700;
  color: #2A3642;
}

/* CONTAINERS & LAYOUT ----------------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(42,54,66,0.06);
}

@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 26px 6px;
    border-radius: 10px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .content-wrapper {
    gap: 20px;
  }
}

/* LAYOUT CONTENT FLEX WRAPPERS ------------------------------- */

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(42,54,66,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(42,54,66,0.10);
  transform: translateY(-4px) scale(1.0125);
  z-index: 1;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F7F5F0;
  border-left: 4px solid #D8C497;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(42,54,66,0.03);
  margin-bottom: 20px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.testimonial-card:hover {
  border-left: 4px solid #9E7A2D;
  box-shadow: 0 8px 24px rgba(42,54,66,0.09);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Mandatory spacing for any direct flex containers */
.feature-grid, .castle-names-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.castle-names-grid>div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(42,54,66,0.04);
  padding: 22px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}
.castle-names-grid>div:hover {
  box-shadow: 0 4px 22px rgba(42,54,66,0.10);
}

@media (max-width: 960px) {
  .feature-grid, .castle-names-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* HERO SECTION ----------------------------------------------- */
.hero {
  background: linear-gradient(94deg, #F7F3E7 40%, #EFE7CD 100%);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 6px 32px 0 rgba(42,54,66,0.07);
  margin-bottom: 50px;
  padding: 60px 0 40px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
}
@media (max-width: 768px) {
  .hero {
    padding: 32px 0 22px 0;
    border-radius: 0 0 14px 14px;
  }
  .hero .content-wrapper {
    gap: 12px;
  }
}


/* BUTTONS & LINKS ------------------------------------------- */
.button-primary {
  display: inline-block;
  font-family: 'Merriweather', serif;
  font-weight: 600;
  font-size: 1.07rem;
  line-height: 1.2;
  color: #fff;
  background: #2A3642;
  border-radius: 28px;
  border: 2px solid #2A3642;
  padding: 11px 34px;
  margin: 6px 0 0;
  cursor: pointer;
  transition: background 0.22s, border 0.22s, color 0.22s, box-shadow 0.21s;
  box-shadow: 0 2px 12px 0 rgba(42,54,66,0.06);
  text-decoration: none;
}
.button-primary:hover, .button-primary:focus {
  background: #D8C497;
  color: #2A3642;
  border-color: #9E7A2D;
  box-shadow: 0 6px 28px 0 rgba(42,54,66,0.09);
}
.button-secondary {
  font-family: 'Merriweather', serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: #2A3642;
  background: #fff;
  border: 2px solid #2A3642;
  padding: 8px 28px;
  border-radius: 22px;
  transition: background 0.18s, color 0.18s, border 0.18s;
  cursor: pointer;
}
.button-secondary:hover, .button-secondary:focus {
  background: #2A3642;
  color: #fff;
  border-color: #2A3642;
}
.button-link {
  color: #9E7A2D;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}
.button-link:hover, .button-link:focus {
  color: #2A3642;
}

/* List styling */
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 0;
}

/* FOOTER --------------------------------------------------- */
footer {
  background: #2A3642;
  color: #fff;
  padding: 54px 0 22px 0;
  box-shadow: 0 -2px 24px 0 rgba(42,54,66,0.07);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  height: 68px;
  margin-bottom: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Merriweather', serif;
  font-size: 0.97rem;
  opacity: 0.88;
  transition: color 0.15s, opacity 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #D8C497;
  opacity: 1;
}
.footer-contact p {
  color: #F7F5F0;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.footer-legal {
  width: 100%;
  text-align: left;
  margin-top: 16px;
}
.footer-legal p {
  color: #D8C497;
  font-size: 0.93rem;
}
@media (max-width: 1000px) {
  footer .container {
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
  }
  .footer-logo img {
    height: 50px;
  }
}

/* HEADER --------------------------------------------------- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(42,54,66,0.04);
  padding: 16px 0 8px 0;
  z-index: 20;
  position: relative;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
}
header nav a {
  font-family: 'Merriweather', serif;
  font-size: 1.02rem;
  color: #2A3642;
  opacity: 0.85;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s, opacity 0.15s;
}
header nav a.active,
header nav a:hover,
header nav a:focus {
  color: #9E7A2D;
  opacity: 1;
}
header img {
  max-height: 56px;
  transition: filter 0.22s;
}
@media (max-width: 920px) {
  header .container {
    gap: 13px;
  }
  header img {
    max-height: 38px;
  }
  header nav { gap: 16px; }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
}
@media (max-width: 600px) {
  header .button-primary {
    font-size: 0.98rem;
    padding: 8px 18px;
  }
}

/* MOBILE MENU ----------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 24px;
  top: 20px;
  z-index: 1001;
  background: #fff;
  color: #2A3642;
  border: 2px solid #2A3642;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(42,54,66,0.08);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #2A3642;
  color: #fff;
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 40px rgba(42,54,66,0.20);
  transform: translateX(110%);
  transition: transform 0.33s cubic-bezier(0.7,0,0.3,1);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  padding: 38px 26px 24px 32px;
  gap: 10px;
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 23px;
  border: none;
  background: #fff;
  color: #2A3642;
  font-size: 2rem;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  z-index: 5;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #2A3642;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}
.mobile-nav a {
  font-family: 'Merriweather', serif;
  font-size: 1.20rem;
  color: #2A3642;
  padding: 13px 0;
  border-radius: 6px;
  opacity: 0.86;
  transition: color 0.15s, background 0.15s, opacity 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #9E7A2D;
  background: #F7F3E7;
  opacity: 1;
}

@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* SECTIONS SPECIAL CASES ------------------------------------ */
.top-tour-highlight {
  background: #EFE7CD;
  border-left: 5px solid #D8C497;
  padding: 20px 22px;
  margin-top: 24px;
  border-radius: 8px;
  font-family: 'Merriweather', serif;
  box-shadow: 0 2px 8px rgba(42,54,66,0.03);
}
.tour-flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0 0 0;
}

/* FAQ ACCORDION --------------------------------------------- */
.faq-accordion h3 {
  cursor: pointer;
  margin-bottom: 4px;
  background: #F7F3E7;
  border-radius: 7px;
  padding: 11px 16px;
  transition: background 0.18s;
  font-size: 1.07rem;
}
.faq-accordion h3:hover, .faq-accordion h3:focus {
  background: #EFE7CD;
}
.faq-accordion > div {
  padding: 12px 18px 20px 22px;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #2A3642;
}


/* STAR RATING SUMMARY -------------------------------------- */
.star-rating-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Merriweather', serif;
  color: #2A3642;
  background: #EFE7CD;
  border-radius: 7px;
  padding: 14px 22px;
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px rgba(42,54,66,0.10);
}
.star-rating-summary span {
  font-weight: 700;
  color: #9E7A2D;
}

/* MAP EMBED (kontakt) ------------------------------------- */
.map-embed {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px 0 0 0;
}

/* TEXT SECTIONS & RESPONSIVE TYPOGRAPHY ------------------- */
.text-section {
  font-family: 'Roboto', Arial, sans-serif;
  color: #2A3642;
  margin-bottom: 20px;
  font-size: 1.06rem;
  line-height: 1.75;
}
.text-section a {
  color: #9E7A2D;
  text-decoration: underline;
  transition: color 0.17s;
}
.text-section a:hover, .text-section a:focus {
  color: #2A3642;
}

/* TABLES (klauzule, polityka) ----------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(42,54,66,0.04);
}
td, th {
  padding: 16px 12px;
  border-bottom: 1px solid #EFE7CD;
  font-family: 'Roboto', Arial, sans-serif;
}
th {
  background: #EFE7CD;
  font-family: 'Merriweather', serif;
}

/* SPECIAL CARDS/LINKED/INFO (highlight) ------------------- */
.info-highlight {
  background: #F7F5F0;
  border-left: 4px solid #D8C497;
  border-radius: 8px;
  padding: 16px 22px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #2A3642;
  margin-bottom: 16px;
}

/* COOKIES BANNER ------------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #2A3642;
  color: #fff;
  padding: 28px 6vw 22px 6vw;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  box-shadow: 0 -2px 42px rgba(42,54,66,0.16);
  transition: transform 0.4s cubic-bezier(.86,.01,.21,.97),opacity 0.3s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0; pointer-events: none;
}
.cookie-banner__text {
  flex: 2 2 330px;
  font-size: 1.04rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #F7F5F0;
}
.cookie-banner__actions {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-banner__button {
  font-family: 'Merriweather', serif;
  font-weight: 600;
  font-size: 1.01rem;
  border-radius: 24px;
  border: 2px solid #fff;
  padding: 8px 22px;
  cursor: pointer;
  background: #fff;
  color: #2A3642;
  margin-left: 0;
  transition: background 0.16s, color 0.16s, border 0.16s;
}
.cookie-banner__button.accept {
  background: #D8C497;
  color: #2A3642;
  border-color: #D8C497;
}
.cookie-banner__button:hover, .cookie-banner__button:focus {
  background: #EFE7CD;
  border-color: #9E7A2D;
  color: #2A3642;
}
.cookie-banner__button.settings {
  background: none;
  color: #fff;
  border-color: #fff;
}

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    font-size: 0.97rem;
    padding: 18px 6vw 12px 6vw;
  }
  .cookie-banner__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* COOKIE MODAL --------------------------------------------- */
.cookie-modal {
  position: fixed;
  left: 50vw; top: 50vh;
  transform: translate(-50%,-50%) scale(1);
  min-width: 324px;
  max-width: 92vw;
  width: 410px;
  background: #fff;
  color: #2A3642;
  z-index: 4001;
  border-radius: 14px;
  box-shadow: 0 16px 52px rgba(42,54,66,0.22);
  padding: 34px 30px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 1;
  transition: opacity 0.27s cubic-bezier(.92,.01,.15,.98);
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal__close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: #2A3642;
  font-size: 1.7rem;
  cursor: pointer;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  transition: background 0.13s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #EFE7CD;
}
.cookie-modal__title {
  font-family: 'Merriweather', serif;
  font-size: 1.22rem;
  margin-bottom: 8px;
  font-weight: 700;
}
.cookie-modal__category {
  margin: 15px 0 0 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-modal__switch {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.cookie-modal__switch input[type='checkbox'] {
  appearance: none;
  width: 34px;
  height: 20px;
  border-radius: 12px;
  background: #EFE7CD;
  outline: none;
  border: 1.5px solid #D8C497;
  position: relative;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-modal__switch input[type='checkbox']:checked {
  background: #D8C497;
}
.cookie-modal__switch input[type='checkbox']::after {
  content: '';
  position: absolute;
  left: 3px; top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.18s;
}
.cookie-modal__switch input[type='checkbox']:checked::after {
  left: 15px;
}
.cookie-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}
.cookie-modal__actions button {
  font-family: 'Merriweather', serif;
  font-weight: 600;
  font-size: 1.02rem;
  border-radius: 24px;
  border: 2px solid #2A3642;
  padding: 7px 19px;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal__actions .accept {
  background: #D8C497;
  border-color: #D8C497;
  color: #2A3642;
}
.cookie-modal__actions .reject {
  background: none;
  color: #2A3642;
  border-color: #2A3642;
}
.cookie-modal__actions .accept:hover,
.cookie-modal__actions .accept:focus {
  background: #9E7A2D;
  color: #fff;
}
.cookie-modal__actions .reject:hover,
.cookie-modal__actions .reject:focus {
  background: #EFE7CD;
}
@media (max-width: 540px) {
  .cookie-modal {
    width: 99vw;
    padding: 22px 6vw 19px 6vw;
  }
}

/* SPECIAL SECTION SPACING --------------------------------- */
main section {
  margin-bottom: 35px;
}
main section:last-child { margin-bottom: 0; }

@media (max-width: 520px) {
  main section {
    margin-bottom: 22px;
  }
}

/* FLEX RESPONSIVENESS ------------------------------------- */
@media (max-width: 900px) {
  .content-grid, .text-image-section, .feature-grid, .castle-names-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .content-wrapper {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }
}

/* MICRO-INTERACTIONS ------------------------------------- */
a, .button-primary, .button-secondary, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner__button, .cookie-modal__actions button {
  outline: none;
  transition: background 0.16s, color 0.17s, border 0.17s, box-shadow 0.17s, opacity 0.16s;
}
a:active, .button-primary:active, .button-secondary:active {
  opacity: 0.69;
}

/* ICONS (for list in kontakt, etc.) ------------------------ */
ul img {
  height: 22px;
  width: 22px;
  vertical-align: middle;
  margin-right: 6px;
}

/* ACCESSIBILITY ----------------------------------------- */
:focus-visible {
  outline: 2px solid #2A3642;
  outline-offset: 2px;
}

/* PRINT ------------------------------------------------- */
@media print {
  header, footer, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  .section, main section, .card, .testimonial-card, .info-highlight { box-shadow: none !important; background: none !important; border: none !important; }
}

/* END OF STYLE ------------------------------------------- */
