/* ==== CSS RESET & NORMALIZE ==== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; border: 0; }

/* ==== FONT SETUP ==== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');

:root {
  --brand-primary: #233E8B;
  --brand-secondary: #39A2DB;
  --brand-accent: #F8FAFB;
  --brand-extra1: #F7DC8C;
  --brand-extra2: #F56B8A;
  --success: #8FCB9B;
  --grey-light: #f3f6f8;
  --grey-200: #E4E9EE;
  --grey-800: #2D3748;
  --shadow: 0 2px 14px 0 rgba(35,62,139,0.09), 0 1.5px 8px 0 rgba(57,162,219,0.06);
  --card-radius: 22px;
  --btn-radius: 32px;
  --transition: 0.24s cubic-bezier(.63,0,.13,1);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

html {
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  color: #172140;
  background: var(--brand-accent);
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.1px;
}

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

/* ==== HEADER & NAVIGATION ==== */
header {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(35,62,139,0.13);
  padding: 0;
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
}
header a img {
  height: 44px;
  max-width: 170px;
}
.main-nav {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition);
}
.main-nav a:after {
  content: '';
  display: block;
  border-radius: 2px;
  height: 3px;
  width: 0;
  background: var(--brand-secondary);
  transition: width var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-extra1);
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 80%;
}

.cta-btn {
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--brand-secondary);
  color: #fff;
  padding: 12px 32px;
  border-radius: var(--btn-radius);
  font-size: 1.08rem;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 16px 0 rgba(57,162,219,0.17);
  border: 0;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  cursor: pointer;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--brand-extra1);
  color: var(--brand-primary);
  box-shadow: 0 7px 24px rgba(57,162,219,0.22);
  outline: none;
}

/***** MOBILE MENU BUTTON *****/
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  cursor: pointer;
  z-index: 31;
  margin-left: 20px;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  color: var(--brand-extra1);
}

/***** MOBILE MENU PANEL *****/
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(120deg, var(--brand-accent), var(--grey-200) 65%, var(--brand-secondary) 100%);
  box-shadow: 0 8px 38px #233e8b13;
  z-index: 1111;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.44s cubic-bezier(.6,.1,.1,1);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 22px 24px 0 0;
  cursor: pointer;
  z-index: 1121;
  transition: color 0.18s;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.34rem;
  color: var(--brand-primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 12px 8px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--brand-extra1);
  color: var(--brand-secondary);
}

/********* MAIN LAYOUT *********/
main {
  flex: 1 1 auto;
  min-height: 60vh;
  background: var(--brand-accent);
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  position: relative;
}
section:nth-child(odd) {
  background: #fff;
}
section:nth-child(even) {
  background: var(--grey-light);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/***** HEADINGS & TYPOGRAPHY *****/
.tagline {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--brand-secondary);
  letter-spacing: 0.06em;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-weight: 800;
  letter-spacing: 0.05em;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 24px;
  line-height: 1.2;
}
h2 {
  font-size: 1.44rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--brand-secondary);
}
h4 {
  font-size: 1rem;
}
strong {
  font-weight: 700;
  color: var(--brand-primary);
}
.text-section {
  font-size: 1rem;
  color: #263a68;
  margin-bottom: 18px;
  line-height: 1.7;
  word-break: break-word;
}
.text-section ul, .text-section ol {
  margin: 16px 0 16px 28px;
  padding: 0;
  color: #173070;
}
.text-section li {
  margin-bottom: 10px;
  font-size: 1em;
  position: relative;
}
.text-section a {
  color: var(--brand-secondary);
  text-decoration: underline;
  transition: color var(--transition);
}
.text-section a:hover {
  color: var(--brand-extra1);
}

/***** FLEXBOX CONTAINERS & UTILS *****/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 28px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 240px;
  max-width: 400px;
  flex: 1 1 260px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 12px 40px 0 rgba(35,62,139,0.14);
  transform: translateY(-7px) scale(1.03) rotate(-1deg);
  z-index: 2;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.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;
}

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

/***** TESTIMONIALS *****/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 20px rgba(57,162,219,0.11);
  font-size: 1.06rem;
  color: #2D3748;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 650px;
  flex: 1 1 300px;
  position: relative;
  transition: box-shadow var(--transition), background 0.20s;
}
.testimonial-card p {
  font-style: italic;
  font-weight: 600;
  margin: 0;
  color: var(--brand-primary);
}
.testimonial-card span {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.97em;
  color: var(--brand-secondary);
  margin-left: 8px;
}
.testimonial-card::before {
  content: '\201C';
  color: var(--brand-extra2);
  font-size: 2.4rem;
  position: absolute;
  left: 18px;
  top: 10px;
  opacity: 0.13;
  font-family: var(--font-display);
  pointer-events: none;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  background: var(--brand-extra1);
  box-shadow: 0 12px 24px rgba(255,204,25,0.10), 0 3px 14px #F56B8A11;
}

/***** LISTS W/ ICONS IN SECTIONS *****/
section ul, section ol {
  margin: 0 0 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
section ul li, section ol li {
  font-size: 1.07em;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--brand-primary);
  position: relative;
  background: none;
}
section ul li img, section ol li img {
  width: 30px;
  height: 30px;
  display: inline-block;
  margin-right: 6px;
}

/***** CONTACT SECTION SPECIALS *****/
.content-wrapper img[alt^="Telefon"], .content-wrapper img[alt^="E-mail"], .content-wrapper img[alt^="Adres"], .content-wrapper img[alt^="Godziny"] {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}
.content-wrapper strong {
  margin-right: 7px;
}

/***** FOOTER STYLE *****/
footer {
  background: var(--brand-primary);
  color: #fff;
  padding: 38px 0 18px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 20px 0 10px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: color var(--transition);
  padding: 0 7px;
}
.footer-nav a:hover, .footer-nav a:active {
  color: var(--brand-extra1);
}
.kontakt-stopka {
  color: #b7cbee;
  font-size: 0.96em;
  margin: 0;
}
footer img {
  height: 34px;
  margin-bottom: 8px;
}

/***** BUTTONS & LINK EFFECTS *****/
button, .cta-btn, input[type='submit'] {
  font-family: var(--font-display);
  border: none;
  outline: none;
  cursor: pointer;
}
button:focus, .cta-btn:focus, input[type='submit']:focus {
  outline: 2px solid var(--brand-extra2);
  outline-offset: 2px;
}

/***** MICRO-INTERACTIONS & HOVER EFFECTS *****/
a, .cta-btn, .mobile-nav a, .main-nav a, .footer-nav a {
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}
.cta-btn:active {
  filter: brightness(0.93);
}
.card:active {
  transform: scale(0.98);
}
.testimonial-card:active {
  background: var(--brand-secondary);
  color: #fff;
}

/***** COOKIE CONSENT BANNER & MODAL *****/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff9ed;
  color: var(--brand-primary);
  padding: 24px 34px 18px 34px;
  border-top: 2.5px solid var(--brand-secondary);
  box-shadow: 0 -8px 18px #233e8b11;
  z-index: 1337;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
  transition: opacity 0.35s, transform 0.35s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner-text {
  font-size: 1.07em;
  line-height: 1.8;
  text-align: center;
  max-width: 690px;
}
.cookie-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}
.cookie-accept, .cookie-reject, .cookie-settings-btn {
  font-family: var(--font-display);
  padding: 10px 30px;
  border-radius: 27px;
  font-weight: 700;
  font-size: 1.04rem;
  border: none;
  box-shadow: 0 1.5px 8px rgba(57,162,219,0.09);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-accept {
  background: var(--brand-secondary);
  color: #fff;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--success);
  color: var(--brand-primary);
}
.cookie-reject {
  background: var(--grey-800);
  color: #fff;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: var(--brand-extra2);
  color: #fff;
}
.cookie-settings-btn {
  background: #fff;
  color: var(--brand-primary);
  border: 2px solid var(--brand-secondary);
}
.cookie-settings-btn:hover {
  background: var(--brand-secondary);
  color: #fff;
}

.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,62,139,0.38);
  z-index: 1355;
  justify-content: center;
  align-items: center;
  transition: opacity var(--transition);
}
.cookie-modal-overlay.active {
  display: flex;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  padding: 36px 36px 24px 36px;
  box-shadow: 0 14px 50px #39A2DB44;
  max-width: 440px;
  width: 92%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: modalpop .45s cubic-bezier(0.59,0,0.14,1);
}
@keyframes modalpop {
  0% { opacity: 0; transform: translateY(80px) scale(0.92); }
  100% { opacity: 1; transform: none; }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-size: 1.3rem;
  margin-bottom: 7px;
}
.cookie-category-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.cookie-category-row label {
  font-family: var(--font-body);
  font-size: 1.03em;
  font-weight: 600;
  color: var(--brand-secondary);
}
.cookie-toggle {
  appearance: none;
  background: var(--grey-200);
  border-radius: 16px;
  width: 46px;
  height: 24px;
  position: relative;
  outline: none;
  margin: 0 0 0 12px;
  transition: background 0.21s;
}
.cookie-toggle:checked {
  background: var(--brand-secondary);
}
.cookie-toggle::before {
  content: '';
  display: block;
  position: absolute;
  background: #fff;
  border-radius: 50%;
  width: 22px; height: 22px;
  left: 2px; top: 1px;
  box-shadow: 0 1px 6px #233e8b1a;
  transition: left 0.23s cubic-bezier(.72,0,.2,1);
}
.cookie-toggle:checked::before {
  left: 22px;
}
.cookie-modal .cookie-btn-row {
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--brand-secondary);
  cursor: pointer;
  transition: color 0.19s;
}
.cookie-modal-close:hover {
  color: var(--brand-primary);
}

/***** RESPONSIVE & MOBILE NAVIGATION *****/
@media (max-width: 1200px) {
  .container {
    max-width: 99vw;
  }
}
@media (max-width: 1000px) {
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 10px 24px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    gap: 8px;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  body {
    font-size: 1em;
  }
  .container {
    padding: 0 8px;
  }
  section, .section {
    padding: 26px 6px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 22px;
  }
  h1 {
    font-size: 1.5rem;
    margin-bottom: 18px;
  }
  h2 { font-size: 1.11rem; }
  h3 { font-size: 0.98rem; }
  .card {
    padding: 18px 11px;
    min-width: 160px;
    font-size: 0.95em;
  }
  .testimonial-card {
    padding: 13px;
    font-size: 0.98em;
  }
  .footer-nav {
    gap: 9px;
    font-size: 0.92em;
  }
  .kontakt-stopka {
    font-size: 0.91em;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 10px;
  }
  .card-container {
    gap: 13px;
  }
  .main-nav {
    display: none;
  }
}

@media (max-width: 520px) {
  html { font-size: 13.5px; }
  .card {
    padding: 12px 4px;
    min-width: unset;
    font-size: 0.91em;
  }
  .testimonial-card {
    font-size: 0.93em;
    padding: 10px;
  }
  section, .section {
    padding: 13px 1.5vw;
  }
  .cta-btn {
    padding: 8px 16px;
    font-size: 0.95em;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
    font-size: 0.89em;
  }
}
/* Hide scroll on mobile menu open */
@media (max-width: 900px) {
  body.menu-open {
    overflow: hidden;
  }
}

/* ==== CUSTOM ARTISTIC EXTRAS ==== */
/* Add playful underlines to accented elements */
.content-wrapper h2, .content-wrapper h1 {
  position: relative;
  display: inline-block;
}
.content-wrapper h2:after, .content-wrapper h1:after {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  margin: 8px 0 0 0;
  border-radius: 2px;
  background: var(--brand-extra2);
  opacity: 0.59;
}
.content-wrapper h1:after {
  background: var(--brand-secondary);
  width: 60px;
}
.content-wrapper h2:after {
  background: var(--brand-extra1);
  width: 36px;
}

/***** Decorative dots/artistic patterns *****/
section {
  overflow-x: hidden;
}
section::before {
  content: '';
  display: block;
  position: absolute;
  left: -30px;
  top: -20px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--brand-extra2);
  opacity: 0.08;
  z-index: 0;
}
section::after {
  content: '';
  display: block;
  position: absolute;
  right: -18px;
  bottom: -23px;
  width: 43px;
  height: 43px;
  border-radius: 52%;
  background: var(--brand-secondary);
  opacity: 0.12;
  z-index: 0;
}

/***** Artistic fonts for headings *****/
h1, h2 {
  font-family: 'Montserrat', var(--font-display), sans-serif;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-shadow: 0 1.5px 2.6px rgba(35,62,139,0.07);
}

/***** END ARTISTIC STYLING *****/
