/* === CSS RESET / NORMALIZE === */
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 {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: #FAF7F2;
  color: #191C3A;
  font-family: 'Roboto', Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}

a {
  color: #191C3A;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #2CAED5;
  outline: none;
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.4em;
}

li {
  margin-bottom: 10px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 700;
  line-height: 1.22;
  color: #191C3A;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 28px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 18px;
}

h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 14px;
}

p {
  font-size: 1.0625rem;
  margin-bottom: 14px;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Mandatory section spacing */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

@media (min-width: 768px) {
  section {
    padding: 60px 0;
  }
}

/* ===== HEADER AND NAVIGATION ===== */
header {
  background: #FAF7F2;
  border-bottom: 1px solid #e3e1de;
  padding: 0 0 0 0;
  position: relative;
  z-index: 102;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 16px;
  padding-bottom: 16px;
}

header img[alt="Krystaliczne Brzmienia"] {
  width: 170px;
  min-width: 120px;
}

header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.12s, color 0.18s;
  color: #191C3A;
}
header nav a:hover,
header nav a.active {
  color: #2CAED5;
  background: #ECEAE6;
}

.button-primary {
  display: inline-block;
  background: #191C3A;
  color: #FAF7F2;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  font-size: 1.09rem;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  border: none;
  border-radius: 30px;
  box-shadow: 0 2px 16px 0 rgba(25,28,58,0.07);
  transition: background 0.18s, color 0.14s, box-shadow 0.23s;
  cursor: pointer;
  margin-left: 20px;
  text-align: center;
  outline: none;
}
.button-primary:hover, .button-primary:focus {
  background: #2CAED5;
  color: #191C3A;
  box-shadow: 0 2px 24px 0 rgba(44,174,213,0.13);
}

header .mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: #191C3A;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 18px;
  z-index: 110;
  position: relative;
  padding: 5px 8px;
  border-radius: 7px;
  transition: background 0.2s;
}
header .mobile-menu-toggle:focus, header .mobile-menu-toggle:hover {
  background: #ECEAE6;
  color: #2CAED5;
}

@media (min-width: 1024px) {
  header .mobile-menu-toggle { display: none; }
}
@media (max-width: 1023px) {
  header nav, .button-primary { display: none; }
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #FAF7F2;
  box-shadow: 0 2px 44px 0 rgba(25,28,58,0.07);
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.57,.01,.43,1.03);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #191C3A;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 22px 22px 12px 0;
  cursor: pointer;
  transition: color 0.14s;
  z-index: 1221;
  padding: 6px 11px;
  border-radius: 7px;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #2CAED5;
  background: #E7E4DE;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  padding: 0 14px 34px 34px;
}
.mobile-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.17rem;
  color: #191C3A;
  padding: 14px 0 14px 7px;
  border-radius: 16px;
  margin-bottom: 4px;
  transition: background 0.15s, color 0.13s;
  min-width: 150px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ECEAE6;
  color: #2CAED5;
}

/* === MAIN / HERO / SECTION SPACING === */
main {
  width: 100%;
  min-height: 58vh;
  background: transparent;
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (min-width: 600px) {
  .section, section {
    padding: 54px 0 58px 0;
  }
}

/* === FLEXBOX PATTERNS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(25,28,58,0.07);
  padding: 26px 26px 18px 26px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  max-width: 440px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.23s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px 0 rgba(44,174,213,0.12);
  transform: translateY(-3px) scale(1.018);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  color: #191C3A;
  border-radius: 18px;
  border: 1px solid #e8e6e3;
  box-shadow: 0 2px 8px 0 rgba(25,28,58,0.08);
  margin-bottom: 20px;
  font-size: 1.15rem;
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  transition: box-shadow 0.25s, border-color 0.17s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(44,174,213,0.10);
  border-color: #2CAED5;
}
.testimonial-card q {
  font-family: 'Georgia', serif;
  quotes: '„' '”' '‚' '’';
  font-style: italic;
  font-size: 1.13rem;
}
.testimonial-card strong {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  color: #2CAED5;
  margin-top: 10px;
  letter-spacing: 0.03em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === FEATURE GRIDs === */
.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-grid li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  padding: 22px 22px 16px 22px;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(25,28,58,0.06);
  min-width: 220px;
  max-width: 340px;
  transition: box-shadow 0.21s, transform 0.14s;
}
.feature-grid li img {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 6px 24px 0 rgba(44,174,213,0.15);
  transform: translateY(-2px) scale(1.017);
}
@media (min-width: 640px) {
  .feature-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px;
  }
  .feature-grid li {
    width: 100%;
    max-width: 340px;
  }
}

/* --- Event list/badges --- */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 0;
  margin-bottom: 23px;
}
.event-categories {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-bottom: 8px;
}
.badge {
  display: inline-block;
  background: #2CAED5;
  color: #fff;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 16px;
  padding: 5px 16px;
  letter-spacing: 0.01em;
  margin-right: 6px;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px 0 rgba(44,174,213,0.09);
}

/* --- Contact info + Footer --- */
footer {
  background: #FAF7F2;
  color: #48495d;
  border-top: 1px solid #e3e1de;
  padding: 45px 0 20px 0;
  width: 100%;
  margin-top: 50px;
  font-size: 0.99rem;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer nav a {
  font-family: 'Montserrat', Georgia, serif;
  color: #2CAED5;
  font-size: 1rem;
  transition: color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: #191C3A;
}
footer .contact-info {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
footer .contact-info img {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  margin-right: 7px;
}
footer .social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}
footer .social-links img {
  width: 28px;
  height: 28px;
  filter: grayscale(0.33);
  transition: filter 0.2s, opacity 0.19s;
  opacity: 0.87;
}
footer .social-links img:hover {
  filter: none;
  opacity: 1;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  footer {
    font-size: 1rem;
    padding-top: 30px;
  }
}

/* --- Location Map and Contact --- */
.location-map {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  background: #ECEAE6;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-family: 'Montserrat', Georgia, serif;
  transition: background 0.14s;
  font-size: 1.05rem;
  color: #191C3A;
  box-shadow: none;
}
.location-map:hover, .location-map:focus {
  background: #2CAED5;
  color: #fff;
}

/* === MISCELLANEOUS === */
.text-section {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.08rem;
  color: #20223c;
}
.text-section ul {
  margin-top: 10px;
  margin-bottom: 12px;
}
.text-section li {
  margin-bottom: 8px;
}

/* === BUTTONS & INTERACTIONS === */
button, .button, .button-primary {
  font-family: 'Montserrat', Georgia, serif;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.16s, color 0.11s, box-shadow 0.23s;
}
.button {
  display: inline-block;
  background: #2CAED5;
  color: #fff;
  font-size: 1.01rem;
  padding: 9px 22px;
  border-radius: 24px;
  font-weight: 500;
  margin-right: 8px;
  transition: background 0.18s, color 0.17s;
}
.button:hover, .button:focus {
  background: #191C3A;
  color: #fff;
}

/* --- FORMS etc --- */
input, textarea, select {
  font-family: 'Roboto', Georgia, serif;
  font-size: 1rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 7px;
  padding: 9px 13px;
  margin-bottom: 18px;
  color: #191C3A;
  outline: none;
  box-shadow: none;
}
input:focus, textarea:focus, select:focus {
  border-color: #2CAED5;
  box-shadow: 0 2px 8px rgba(44,174,213,0.09);
}

/* === MEDIA QUERIES / RESPONSIVE === */
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 15px;
  }
  section, .section {
    padding: 36px 0 36px 0;
    margin-bottom: 32px;
  }
  .content-wrapper {
    gap: 12px;
  }  
  .feature-grid {
    gap: 17px;
  }
  .feature-grid li {
    min-width: 170px;
    max-width: 100%;
    padding: 14px 10px 13px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    padding: 15px 11px;
    font-size: 1rem;
  }
  .card {
    padding: 15px 9px 13px 9px;
    min-width: 140px;
  }
}

@media (max-width: 500px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.16rem; }
}

/* === COOKIE BANNER & CONSENT === */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fff;
  color: #191C3A;
  box-shadow: 0 -2px 16px 0 rgba(25,28,58,0.08);
  padding: 26px 20px 20px 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: center;
  border-top: 1px solid #e6e3e0;
  animation: cookieSlideIn 0.45s cubic-bezier(.7,.09,.26,1.01);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 7px;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-bottom: 0;
}
.cookie-consent-banner .cookie-btn {
  background: #191C3A;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px 26px;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 3px;
  box-shadow: 0 2px 6px 0 rgba(25,28,58,0.08);
  transition: background 0.18s, color 0.14s, box-shadow 0.21s;
}
.cookie-consent-banner .cookie-btn.accept {
  background: #2CAED5;
  color: #fff;
}
.cookie-consent-banner .cookie-btn.settings {
  background: #ECEAE6;
  color: #2CAED5;
}
.cookie-consent-banner .cookie-btn.reject {
  background: transparent;
  color: #191C3A;
  border: 1px solid #2CAED5;
}
.cookie-consent-banner .cookie-btn:hover,
.cookie-consent-banner .cookie-btn:focus {
  background: #2CAED5;
  color: #fff;
}

/* Cookie modal */
.cookie-settings-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2200;
  background: rgba(25,28,58,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .18s cubic-bezier(.67,0,.34,1.13);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-settings-modal {
  background: #fff;
  color: #191C3A;
  border-radius: 17px;
  box-shadow: 0 12px 48px 6px rgba(25,28,58,0.16);
  padding: 36px 26px 26px 26px;
  min-width: 320px;
  max-width: 92vw;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  animation: modalPop .30s cubic-bezier(.62,1.24,.34,1.09);
}
@keyframes modalPop {
  0% { transform: scale(0.93) translateY(17px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-settings-modal h2 {
  font-size: 1.19rem;
  font-family: 'Montserrat', Georgia, serif;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 1rem;
}
.cookie-category label {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-category input[type=checkbox] {
  accent-color: #2CAED5;
  width: 22px;
  height: 22px;
  margin-right: 2px;
}
.cookie-category .cookie-essential {
  font-weight: 600;
  color: #2CAED5;
}
.cookie-settings-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 10px;
}
.cookie-settings-modal .cookie-btn {
  background: #191C3A;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px 26px;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 3px;
  transition: background 0.18s, color 0.14s, box-shadow 0.21s;
}
.cookie-settings-modal .cookie-btn.accept {
  background: #2CAED5;
  color: #fff;
}
.cookie-settings-modal .cookie-btn.settings {
  background: #ECEAE6;
  color: #2CAED5;
}
.cookie-settings-modal .cookie-btn.reject {
  background: transparent;
  color: #191C3A;
  border: 1px solid #2CAED5;
}
.cookie-settings-modal .cookie-btn:hover,
.cookie-settings-modal .cookie-btn:focus {
  background: #2CAED5;
  color: #fff;
}
.cookie-settings-modal .close-cookie-modal {
  background: none;
  color: #2CAED5;
  border: none;
  font-size: 2rem;
  position: absolute;
  top: 14px; right: 18px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width:600px) {
  .cookie-settings-modal {
    padding: 20px 8px 18px 8px;
    min-width: 0;
  }
}

/* === ELEGANT EFFECTS === */
.card, .testimonial-card, .feature-grid li {
  transition: box-shadow 0.21s, transform 0.16s;
}
.card:active, .testimonial-card:active, .feature-grid li:active {
  transform: scale(0.98);
}

.button-primary:active, .button:active {
  transform: scale(0.98);
}

/* === HIDE MOBILE MENU ON DESKTOP === */
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

/* --- Accessibility --- */
:focus {
  outline: 2px solid #2CAED5;
  outline-offset: 2px;
}

/* === END CSS === */
