/*============================
  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;
  vertical-align: baseline;
  font-size: 100%;
  font: inherit;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  background: #F6F7EB;
}
body {
  min-height: 100vh;
  background: #F6F7EB;
  color: #222;
  font-family: 'Roboto', Georgia, serif;
  font-weight: 400;
  line-height: 1.65;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  padding-left: 2em;
  margin-bottom: 1.5em;
}
a {
  color: #0C3B2E;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #7FCDBB;
}

/*============================
  BRAND COLORS & CSS VARIABLES
============================*/
:root {
  --color-primary: #0C3B2E;
  --color-secondary: #7FCDBB;
  --color-accent: #F6F7EB;
  --color-black: #222;
  --color-white: #fff;
  --color-border: #e4e5db;
  --color-muted: #F2F2E3;
}

/*============================
  TYPOGRAPHY — Elegant, Classic
============================*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  color: #0C3B2E;
  margin-bottom: 18px;
  line-height: 1.18;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
  margin-top: 8px;
}
h2 {
  font-size: 2.125rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 13px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
p, li, td, th {
  font-size: 1rem;
  margin-bottom: 14px;
  font-family: 'Roboto', Georgia, serif;
  line-height: 1.8;
}
strong, b {
  font-weight: 700;
}
small {
  font-size: 0.86em;
  color: #555;
}

/* Classic muted blockquotes */
blockquote {
  border-left: 4px solid var(--color-secondary);
  padding-left: 1rem;
  color: #3d594e;
  font-style: italic;
  background: var(--color-muted);
  margin-bottom: 24px;
}

/*============================
  LAYOUT STRUCTURE & CONTAINERS
============================*/
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(12,59,46,0.06);
}

@media (max-width: 900px) {
  .section {
    padding: 30px 10px;
    margin-bottom: 38px;
  }
}
@media (max-width: 500px) {
  .section {
    padding: 18px 4px;
    margin-bottom: 24px;
  }
}

/*==============================
  FLEXBOX LAYOUTS (MANDATORY)
==============================*/
.card-container, .feature-grid, .service-cards, .team-cards, .case-study-cards, .faq-accordion {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(12,59,46,0.07);
  margin-bottom: 20px;
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.card:last-child {
  margin-bottom: 0;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.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;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  box-shadow: 0 3px 14px rgba(12,59,46,0.08);
  gap: 20px;
  padding: 20px 32px 20px 20px;
  margin-bottom: 20px;
  min-width: 0;
}
.testimonial-card p {
  color: #222;
  font-size: 1.07rem;
  margin-bottom: 4px;
}
.testimonial-card span {
  font-size: 1rem;
  color: #7FCDBB;
  margin-left: 10px;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.service-cards, .feature-grid, .team-cards, .case-study-cards {
  gap: 24px;
}
.service-cards > div, .feature-grid > div, .team-cards > div, .case-study-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(12,59,46,0.06);
  padding: 18px 20px 24px 20px;
  flex: 1 1 250px;
  min-width: 230px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow .23s, transform .18s;
}
.service-cards > div:hover, .feature-grid > div:hover, .case-study-card:hover {
  box-shadow: 0 6px 18px rgba(12,59,46,0.10);
  transform: translateY(-2px) scale(1.02);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-accordion > div {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  padding: 13px 16px;
  transition: box-shadow .18s, border-color .18s;
}
.faq-accordion > div:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 2px 8px rgba(12,59,46,0.08);
}

/* Table styling for comparisons */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(12,59,46,0.04);
  margin-bottom: 24px;
}
th, td {
  padding: 12px 10px;
  border: 1px solid var(--color-border);
  text-align: left;
}
th {
  background: var(--color-muted);
  color: #0C3B2E;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
}

/*============================
  BUTTONS & INTERACTIVE AREAS
============================*/
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 13px 34px;
  font-size: 1rem;
  border-radius: 6px;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  transition: background .18s, color .18s, box-shadow .18s, border .2s;
  box-shadow: 0 2px 8px rgba(12,59,46,0.07);
  margin-top: 11px;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  letter-spacing: 0.01em;
  border: 1px solid var(--color-primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #0C3B2E;
}
.btn-secondary {
  border: 1px solid var(--color-secondary);
  background: #fff;
  color: var(--color-primary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-muted);
  color: #0C3B2E;
  border-color: var(--color-primary);
}

/* Price tags in services */
.price {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 700;
  color: #0C3B2E;
  margin-top: 8px;
  margin-bottom: 0;
}

/*============================
  HEADER & NAVIGATION BAR
============================*/
header {
  background: #fff;
  box-shadow: 0 4px 18px rgba(12,59,46,0.06);
  position: relative;
  z-index: 300;
}
header .container {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}
.main-nav {
  display: flex;
  gap: 28px;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  font-size: 1rem;
  align-items: center;
}
.main-nav a {
  color: #0C3B2E;
  padding: 9px 7px;
  border-radius: 3px;
  transition: color .18s, background .18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #7FCDBB;
  background: #eef8f4;
}

/*============================
  MOBILE NAVIGATION (Burger)
============================*/
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #0C3B2E;
  cursor: pointer;
  margin-left: 10px;
  padding: 8px 13px;
  border-radius: 8px;
  transition: background .14s, color .18s;
  z-index: 410;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: #0C3B2E;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background: rgba(12,59,46,0.97);
  color: #fff;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999;
  transform: translateX(110vw);
  transition: transform .33s cubic-bezier(.77,.2,.29,1);
  opacity: 1;
  box-shadow: 0 12px 52px rgba(12,59,46,0.25);
  padding: 40px 20px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  margin-bottom: 16px;
  margin-top: 6px;
  padding: 6px 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.12rem;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  padding: 12px 3px 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.11);
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #7FCDBB;
  background: rgba(127,205,187,0.13);
}

@media (max-width: 1000px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1001px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Full logo on mobile centers */
header .container > a {
  display: flex;
  align-items: center;
  height: 58px;
}
header img {
  height: 34px;
  width: auto;
}

@media (max-width: 500px) {
  header .container {
    flex-direction: row;
    gap: 10px;
  }
  header img {
    height: 27px;
  }
}

/*============================
  FOOTER (classic proportions)
============================*/
footer {
  background: #0C3B2E;
  color: #fff;
  padding: 48px 0 28px;
  letter-spacing: 0.01em;
  position: relative;
}
footer .container {
  max-width: 1160px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
footer img {
  height: 38px;
  margin-bottom: 18px;
}
footer h3 {
  color: #7FCDBB;
  font-size: 1.125rem;
  margin-top: 0;
}
footer ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}
footer li {
  margin-bottom: 8px;
}
footer a {
  color: #fff;
  transition: color .18s, text-decoration .18s;
}
footer a:hover, footer a:focus {
  color: #7FCDBB;
  text-decoration: underline;
}
footer .text-section p, footer .text-section a {
  color: #fff;
  font-size: 1rem;
}
footer .text-section {
  margin-bottom: 16px;
}
@media (max-width: 960px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  footer img {
    margin-bottom: 0;
  }
}

/*============================
  HOMEPAGE & SECTION SPECIFIC
============================*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 4px;
}
.feature-grid > div {
  flex: 1 1 230px;
  min-width: 180px;
  text-align: left;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}

.testimonial-card {
  min-width: 0;
  max-width: 750px;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.service-cards > div {
  flex: 1 1 235px;
  min-width: 190px;
}

/* Case study cards on realizacje */
.case-study-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(12,59,46,0.07);
  padding: 22px 20px 22px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  transition: box-shadow .21s, transform .18s;
}
.case-study-card:hover {
  box-shadow: 0 6px 22px rgba(12,59,46,0.11);
  transform: translateY(-3px) scale(1.015);
}
.case-study-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
}
.case-study-card span {
  font-size: 0.95rem;
  color: #7FCDBB;
  margin-top: 8px;
  font-style: italic;
}

.team-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 5px;
}
.team-cards > div {
  flex: 1 1 230px;
  min-width: 180px;
}

.text-section {
  margin-bottom: 18px;
  padding-bottom: 4px;
}

/*============================
  ACCORDIONS & FAQ
============================*/
.faq-accordion h3 {
  font-size: 1.07rem;
  font-family: 'Montserrat', Georgia, serif;
  margin-bottom: 6px;
  color: #0C3B2E;
  cursor: pointer;
}
.faq-accordion p {
  font-size: 1rem;
  color: #222;
  line-height: 1.7;
}

/*============================
  RESPONSIVE ADAPTATION
============================*/
@media (max-width: 900px) {
  .feature-grid, .service-cards, .team-cards {
    flex-direction: column;
    gap: 18px;
  }
  .case-study-cards {
    flex-direction: column;
  }
}
@media (max-width: 700px) {
  .main-nav {
    display: none;
  }
  .container, .section {
    padding-left: 8px;
    padding-right: 8px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  .testimonial-card, .service-cards > div, .feature-grid > div, .case-study-card, .team-cards > div, .faq-accordion > div {
    padding: 13px 8px 16px 12px;
  }
}
@media (max-width: 768px) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .section {
    margin-bottom: 30px;
    padding: 14px 3px;
  }
}

/*============================
  TABLET/MOBILE: CARD/SECTION GAPS
============================*/
@media (max-width: 600px) {
  .feature-grid, .case-study-cards {
    gap: 14px;
  }
  .service-cards {
    gap: 13px;
  }
  .testimonial-card {
    padding: 13px 9px 13px 11px;
  }
}

/*============================
  MICRO-INTERACTIONS & ANIMATION
============================*/
a, button, .btn-primary, .btn-secondary {
  transition: color .16s, background .16s, box-shadow .18s;
}
.card, .service-cards > div, .feature-grid > div, .case-study-card {
  transition: box-shadow .18s, transform .18s;
}
.card:hover, .service-cards > div:hover, .feature-grid > div:hover, .case-study-card:hover {
  box-shadow: 0 8px 32px rgba(12,59,46,0.10);
  transform: translateY(-1.3px) scale(1.015);
}

/*============================
  COOKIE CONSENT BANNER & MODAL
============================*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #222;
  border-top: 2px solid var(--color-secondary);
  box-shadow: 0 -3px 18px rgba(12,59,46,0.07);
  z-index: 1999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  gap: 28px;
  width: 100%;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: transform .33s, opacity .24s;
  border-radius: 14px 14px 0 0;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner p {
  color: #222;
  margin-bottom: 0;
  font-size: 1rem;
  flex: 1 1 250px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  padding: 9px 27px;
  border-radius: 5px;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--color-secondary);
  color: #0C3B2E;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(12,59,46,0.04);
  transition: background .18s, color .18s, border .16s;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #0C3B2E;
  border-color: var(--color-secondary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #5ecbae;
}
.cookie-btn.reject {
  background: #fff;
  color: #0C3B2E;
  border-color: #bbb;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #f3f6f0;
  color: #0C3B2E;
}
.cookie-btn.settings {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #f3fff8;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 13px 8px 18px 8px;
  }
  .cookie-actions {
    flex-direction: row;
    gap: 9px;
    margin-top: 3px;
  }
}

/* Cookie modal overlay */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(12,59,46,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3200;
  opacity: 1;
  transition: opacity .26s;
  pointer-events: auto;
  animation: cookieModalFadeIn .18s cubic-bezier(.6,.5,.18,1);
}
@keyframes cookieModalFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 14px;
  padding: 34px 32px 26px 26px;
  box-shadow: 0 12px 44px rgba(12,59,46,0.13);
  min-width: 280px;
  max-width: 97vw;
  width: 430px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  font-size: 1rem;
}
@media (max-width: 600px) {
  .cookie-modal-dialog {
    width: 97vw;
    padding: 17px 7px 16px 13px;
    min-width: 0;
  }
}

.cookie-modal .cookie-close {
  position: absolute;
  top: 9px;
  right: 9px;
  background: none;
  border: none;
  color: #0C3B2E;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 8px;
  padding: 3px 9px;
  transition: background .16s;
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  background: #7FCDBB;
  color: #0C3B2E;
}
.cookie-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: #0C3B2E;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 15px;
}
.cookie-category label {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  color: #0C3B2E;
  font-weight: 500;
}
.cookie-toggle {
  width: 36px;
  height: 20px;
  background: #e5ede8;
  border-radius: 13px;
  position: relative;
  transition: background .15s;
  margin-right: 7px;
  cursor: pointer;
}
.cookie-toggle input {
  opacity: 0;
  width: 36px;
  height: 20px;
  position: absolute;
  left: 0; top: 0;
  cursor: pointer;
  z-index: 2;
}
.cookie-toggle .slider {
  position: absolute;
  height: 16px; width: 16px;
  left: 2px; top: 2px;
  border-radius: 50%;
  background: #7FCDBB;
  transition: left .14s, background .16s;
}
.cookie-toggle input:checked + .slider {
  left: 18px;
  background: var(--color-primary);
}
.cookie-category.essential label {
  opacity: 0.5;
  cursor: default;
}
.cookie-category.essential .cookie-toggle {
  background: #e1ecdf;
}
.cookie-category.essential .slider {
  background: #a2baa9;
}
.cookie-category.essential input {
  pointer-events: none;
}

/* Modals: Actions below settings */
.cookie-modal .cookie-actions {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}

/*==============================
  UTILITIES & SMALL ADJUSTMENTS
==============================*/
hr {
  border: 0;
  border-top: 1px solid #e8efe1;
  margin: 2rem 0 2rem 0;
}
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.muted { color: #8BA6A2; }

/*============================
  PRINT: Remove shadows/colors
============================*/
@media print {
  body, .section, .card, header, footer, .feature-grid > div, .service-cards > div, .testimonial-card, .case-study-card, .faq-accordion > div {
    background: none !important;
    box-shadow: none !important;
    color: #111;
  }
  a, a:visited { color: #111 !important; text-decoration: underline; }
  .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
}
