/* RESET & BASE ------------------------------------------------------ */
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;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1.5;
  background: #F3EFE6;
  color: #35424A;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: #8B6A45;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B2947A;
}

strong, b {
  font-weight: 700;
}

/* TYPOGRAPHY ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 28px;
  color: #8B6A45;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #B2947A;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: #8B6A45;
}
h4, h5, h6 {
  font-size: 1.07rem;
  color: #35424A;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 18px;
}

ul, ol {
  margin-left: 24px;
  padding-left: 0;
}
li {
  margin-bottom: 12px;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.text-section {
  margin-bottom: 20px;
  padding: 0;
}

/* HEADER -------------------------------------------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #EFE8DE;
  box-shadow: 0 2px 12px 0 rgba(200,186,168,0.06);
  position: relative;
  z-index: 25;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 77px;
  padding: 0 20px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-left: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #35424A;
  padding: 4px 0;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  transition: color .15s;
}
.main-nav a::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: #B2947A;
  border-radius: 3px;
  transition: width .22s cubic-bezier(.4,.01,.47,1.35);
  position: absolute;
  left: 0; bottom: -2px;
}
.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}
.main-nav a:hover, .main-nav a:focus {
  color: #8B6A45;
}

/* CTA BUTTON ---------------------------------------------------------- */
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 600;
  background: #B2947A;
  color: #fff;
  padding: 13px 30px;
  border: none;
  border-radius: 30px;
  margin-left: 32px;
  box-shadow: 0 3px 16px 0 rgba(209,182,130,0.10);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background .2s, transform .18s;
  display: inline-block;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #8B6A45;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 5px 24px 0 rgba(209,182,130,0.13);
}

/* MOBILE MENU --------------------------------------------------------- */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #8B6A45;
  cursor: pointer;
  display: none;
  padding: 10px 14px;
  margin-left: 14px;
  transition: background .14s;
  border-radius: 5px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #EFEDDD;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 86vw;
  max-width: 340px;
  background: #fff;
  box-shadow: 3px 0 16px 0 rgba(191,170,150,0.16);
  z-index: 2500;
  transform: translateX(-110%);
  transition: transform .32s cubic-bezier(.65,0,.33,1.12);
  padding: 32px 24px 18px 24px;
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #B2947A;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 12px;
  transition: color .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #8B6A45;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  color: #35424A;
  padding: 10px 0 8px 0;
  font-weight: 500;
  border-bottom: 1px solid #EFEDDD;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #B2947A;
}

@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
}

@media (max-width: 900px) {
  .main-nav {
    gap: 18px;
    margin-left: 10px;
  }
  .cta-btn {
    margin-left: 18px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .cta-btn {
    margin-left: 0;
    padding: 12px 24px;
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  header .container {
    padding: 0 8px;
  }
  .logo img {
    height: 38px;
  }
  .cta-btn {
    font-size: 0.92rem;
    padding: 9px 16px;
  }
  .mobile-menu {
    width: 100vw;
    max-width: none;
    padding: 26px 8vw 14px 9vw;
  }
}

/* SECTIONS & LAYOUT -------------------------------------------------- */
section {
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(177,158,136,0.08);
  padding: 34px 24px 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow .22s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(177,158,136,0.15);
}
.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: #fff;
  border-radius: 17px;
  box-shadow: 0 3px 20px 0 rgba(138,84,44,0.12);
  margin-bottom: 22px;
  position: relative;
  min-width: 0;
  flex: 1 1 320px;
}
.testimonial-card p {
  color: #35424A;
  font-size: 1.1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-style: italic;
  margin-bottom: 0;
  flex: 1 1 auto;
}
.testimonial-card span {
  font-size: 1rem;
  font-weight: 600;
  color: #8B6A45;
  margin-left: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 22px;
  background: #EFEDDD;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 14px 0 rgba(206,187,161,0.06);
}

/* CUSTOM HOME PAGE LISTS (features, offer) --------------------------- */
section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
section ul li {
  background: #FCFAF7;
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 19px 19px 14px 19px;
  box-shadow: 0 2px 12px 0 rgba(195,170,146,0.09);
  min-width: 0;
  flex: 1 1 200px;
}
section ul li img {
  width: 34px;
  height: 34px;
  margin-right: 10px;
  flex-shrink: 0;
}
section ul li strong {
  display: block;
  margin-bottom: 6px;
  color: #8B6A45;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14rem;
}
section ul li span {
  color: #5B686C;
  font-size: 0.97rem;
  font-family: 'Open Sans', Arial, sans-serif;
}

section ul li b {
  color: #8B6A45;
}

/* OL custom (jak-pracujemy.html) -------------------------------------- */
ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
  counter-reset: customnum;
  margin-bottom: 24px;
}
ol li {
  counter-increment: customnum;
  position: relative;
  padding-left: 52px;
  min-height: 48px;
  flex-direction: row;
  align-items: center;
  display: flex;
  gap: 20px;
  background: #F8F6F2;
  border-radius: 15px;
  box-shadow: 0 2px 10px 0 rgba(195,170,146,0.06);
}
ol li::before {
  content: counter(customnum)'.';
  font-family: 'Montserrat', Arial, sans-serif;
  color: #B2947A;
  font-size: 1.37rem;
  font-weight: 600;
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
}
ol li img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
ol li b {
  color: #8B6A45;
  font-size: 1.1rem;
}

/* FOOTER -------------------------------------------------------------- */
footer {
  background: #EFE8DE;
  padding: 32px 0 24px 0;
  border-top: 1px solid #DDD4B8;
  margin-top: 60px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  padding: 0;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  min-width: 170px;
}
.footer-brand img {
  height: 38px;
  width: auto;
}
.footer-contact {
  color: #7B726A;
  max-width: 240px;
  line-height: 1.65;
}
.footer-navigation {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #574C3F;
  min-width: 150px;
  font-size: 1rem;
}
.footer-navigation a {
  color: #8B6A45;
  font-weight: 500;
}
.footer-navigation a:hover {
  text-decoration: underline;
}
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.97rem;
}
.footer-social a img {
  height: 28px;
  width: 28px;
  margin-right: 7px;
  display: inline-block;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-wrap: wrap;
    gap: 26px;
  }
}
@media (max-width: 700px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  .footer-social {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
}

/* BLOG FILTERS -------------------------------------------------------- */
.category-filters {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  font-size: 0.97rem;
  margin-top: 14px;
  margin-bottom: 2px;
}
.category-filters span {
  color: #A2815B;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 7px;
}
.category-filters a {
  background: #EFE8DE;
  color: #8B6A45;
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.99rem;
  display: inline-block;
  transition: background .14s, color .14s;
}
.category-filters a:hover, .category-filters a:focus {
  background: #B2947A;
  color: #fff;
}

/* CONFIRMATION MESSAGE ------------------------------------------------ */
.confirmation-message {
  background: #fdf6ee;
  color: #8B6A45;
  border-left: 4px solid #B2947A;
  padding: 26px 22px 18px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(196,171,133,0.07);
  margin-bottom: 18px;
  font-size: 1.15rem;
  line-height: 1.66;
}

.next-steps {
  margin-bottom: 18px;
}

/* RESPONSIVITY -------------------------------------------------------- */
@media (max-width: 900px) {
  .content-wrapper {
    gap: 18px;
  }
  h1 {
    font-size: 2rem;
    margin-bottom: 18px;
  }
  h2 {
    font-size: 1.4rem;
    margin-bottom: 13px;
  }
  .card {
    padding: 28px 17px 18px 17px;
  }
  .testimonial-card {
    padding: 16px;
    font-size: 1em;
  }
  section ul li, .feature-item {
    padding: 13px 14px 8px 14px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 28px 4vw;
  }
  .container {
    padding: 0 4vw;
  }
  .content-wrapper,
  .card-container,
  .content-grid {
    flex-direction: column !important;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 10px 14px 14px;
    font-size: 1em;
  }
  .footer-brand img {
    height: 32px;
  }
  .footer-contact,
  .footer-navigation,
  .footer-social {
    font-size: 0.95rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .category-filters {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.97rem;
  }
}
@media (max-width: 520px) {
  html, body {
    font-size: 15px;
  }
  h1 {
    font-size: 1.28rem;
    margin-bottom: 15px;
  }
  h2 {
    font-size: 1.06rem;
    margin-bottom: 11px;
  }
  .section {
    padding: 14px 4vw;
    margin-bottom: 23px;
  }
  .card {
    padding: 10px 9px 10px 9px;
    border-radius: 13px;
  }
  .testimonial-card {
    border-radius: 12px;
  }
  .feature-item {
    padding: 10px 7px 7px 7px;
    border-radius: 11px;
  }
}

/* BUTTONS ------------------------------------------------------------- */
button,
input[type="submit"],
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 30px;
  transition: background .17s, color .16s, box-shadow .17s, transform .18s;
}

button:focus, .cta-btn:focus {
  outline: 2px solid #B2947A;
  outline-offset: 2px;
}

/* COOKIES CONSENT BANNER ----------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #FCFAF7;
  border-top: 1px solid #E2DACF;
  box-shadow: 0 -2px 16px 0 rgba(177,158,136,0.08);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 12vw 21px 12vw;
  transition: transform .35s;
}
.cookie-banner.hidden {
  transform: translateY(200%);
}
.cookie-banner .cookie-text {
  color: #35424A;
  font-size: 1rem;
  margin-right: 25px;
  flex: 1 1 280px;
}
.cookie-btns {
  display: flex;
  gap: 12px;
}
.cookie-banner button {
  padding: 8px 22px;
  font-size: 1rem;
  font-weight: 600;
  background: #EFE8DE;
  color: #8B6A45;
  border-radius: 22px;
  border: 1px solid #E2DACF;
}
.cookie-banner button.accept {
  background: #B2947A;
  color: #fff;
  border-color: #B2947A;
}
.cookie-banner button.reject {
  background: #F3EFE6;
  color: #B2947A;
}
.cookie-banner button.settings {
  background: #E2DACF;
  color: #8B6A45;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  box-shadow: 0 2px 10px 0 rgba(209,182,130,0.14);
  background: #8B6A45;
  color: #fff;
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #F3EFE6;
  color: #8B6A45;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 4vw 16px 4vw;
  }
  .cookie-banner .cookie-text {
    margin: 0 0 14px 0;
  }
}
@media (max-width: 520px) {
  .cookie-banner {
    padding: 9px 2vw 11px 2vw;
  }
  .cookie-banner .cookie-btns {
    gap: 6px;
  }
}

/* COOKIE MODAL ------------------------------------------------------- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(53, 66, 74, 0.21);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.cookie-modal-overlay.active {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 6px 36px rgba(141,109,95,0.17);
  padding: 31px 30px;
  max-width: 410px;
  width: 92vw;
  font-size: 1.07rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 4050;
}
.cookie-modal h2 {
  font-size: 1.21rem;
  color: #8B6A45;
  margin-bottom: 9px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #35424A;
  font-size: 1rem;
  background: #F8F6F2;
  border-radius: 10px;
  padding: 10px 15px;
}
.cookie-category input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: #8B6A45;
}
.cookie-category input[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}
.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.cookie-modal-footer button {
  min-width: 112px;
}
@media (max-width: 520px) {
  .cookie-modal {
    padding: 15px 7vw;
    font-size: 0.97rem;
  }
}

/* MICRO-INTERACTIONS ------------------------------------------------- */
section .cta-btn, .section .cta-btn {
  margin-top: 10px;
}
.card, .feature-item, .testimonial-card, .confirmation-message, .cookie-modal, .cookie-banner {
  transition: box-shadow .18s, transform .17s;
}
.card:focus-within, .card:hover, .feature-item:hover, .testimonial-card:hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow: 0 7px 28px 0 rgba(191,135,92,0.13);
}

input, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: 9px;
  border: 1px solid #EFE8DE;
  background: #FAF7F2;
  font-size: 1rem;
  padding: 10px 14px;
  margin-bottom: 20px;
}
input:focus, textarea:focus {
  outline: 2px solid #B2947A;
  background: #FFF;
}

/* DREAMY ATMOSPHERE + SOFT GRADIENTS---------------------------------- */
body, section, .card, .feature-item, .testimonial-card {
  /* Subtle pastel overlay for dreamy feeling */
  background-blend-mode: lighten;
}
section {
  background: linear-gradient(90deg,rgba(255,249,238,0.85) 0%,rgba(240,235,226,0.55) 100%);
}
.card, .feature-item, .testimonial-card {
  background: linear-gradient(120deg, #fff 87%, #F3EFE6 100%);
}

/* SOFT SHADOWS & ROUNDED CORNERS ------------------------------------- */
.card, .feature-item, .testimonial-card, .cookie-modal {
  border-radius: 17px;
  box-shadow: 0 2px 16px 0 rgba(161,139,125,0.10);
}

/* VISUAL HIERARCHY & SPACING ----------------------------------------- */
.section, .content-wrapper, .card-container, .card, .content-grid, .testimonial-card, .feature-item {
  margin-bottom: 0px;
}
.card-container > *, .content-grid > *, .testimonial-card, section ul > li, .feature-item, .card {
  margin-right: 0;
  margin-bottom: 20px;
}
.section:last-child, .content-wrapper:last-child, .footer-navigation a:last-child {
  margin-bottom: 0;
}

/* ENSURE NO OVERLAP & PROPER GAP ------------------------------------- */
.card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item, section ul {
  gap: 20px;
}
.card, .feature-item, .testimonial-card {
  margin-bottom: 20px;
}

/* MISCELLANEOUS ------------------------------------------------------ */
::-webkit-scrollbar {
  width: 8px;
  background: #F3EFE6;
}
::-webkit-scrollbar-thumb {
  background: #EFE8DE;
  border-radius: 8px;
}
::-webkit-selection {
  background: #E9DABB;
  color: #35424A;
}
::selection {
  background: #E9DABB;
  color: #35424A;
}

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

