/* =========================
   SCANDINAVIAN CLEAN STYLE
   Energetyczny Apartament
========================= */

/************
 RESET & BASELINE
************/
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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  -webkit-tap-highlight-color: transparent;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: #F2F3F5;
  color: #23436B;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #23436B;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #5BB057;
  outline: none;
}
ul, ol {
  margin: 16px 0 16px 20px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(35,67,107,.03);
}
th, td {
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f7f8fa;
  font-weight: 600;
  color: #23436B;
  font-size: 16px;
}
tr:last-child td {
  border-bottom: none;
}
blockquote {
  border-left: 4px solid #5BB057;
  padding-left: 18px;
  font-style: italic;
  color: #23436B;
  background: #F6F7F8;
}
address {
  font-style: normal;
  color: #63708A;
  margin-top: 8px;
}

/************
  TYPOGRAPHY
************/
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #23436B;
  margin-bottom: 16px;
  line-height: 1.17;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #23436B;
  line-height: 1.25;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #23436B;
  line-height: 1.3;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #63708A;
  margin-bottom: 8px;
}
p, li, dd {
  font-size: 1rem;
  color: #23436B;
}

/**************
   LAYOUT & CONTAINERS
**************/
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  background: #fff;
  border-radius: 18px;
  padding: 40px 28px;
  margin-bottom: 40px;
  box-shadow: 0 4px 14px 0 rgba(35,67,107,0.06), 0 1.5px 4px 0 rgba(35,67,107,0.03);
}
.text-section {
  background: #f7f8fa;
  padding: 32px 26px;
  border-radius: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 8px 0 rgba(35,67,107,0.07);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card:hover {
  box-shadow: 0 6px 20px 2px rgba(35,67,107,.12);
}
.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;
  background: #fcfcfc;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px 0 rgba(35,67,107,0.07);
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 14px 2px rgba(35,67,107,0.10);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F7F8FA;
  border-radius: 12px;
  padding: 24px 20px 20px 20px;
  box-shadow: 0 1px 5px 0 rgba(35,67,107,0.04);
  min-width: 230px;
  max-width: 320px;
  margin-bottom: 20px;
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}
.apartment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.apartment-item {
  flex: 1 1 270px;
  min-width: 250px;
  background: #f5f8f7;
  border-radius: 13px;
  padding: 20px 22px 16px 22px;
  box-shadow: 0 1px 5px 0 rgba(35,67,107,0.04);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.apartment-item h2 {
  font-size: 1.28rem;
  margin-bottom: 8px;
}

/************
  HEADER + NAVBAR
************/
header {
  background: #fff;
  box-shadow: 0 3px 18px 0 rgba(35,67,107,.04);
  margin-bottom: 36px;
  width: 100%;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 12px 20px;
  min-height: 80px;
}
header img {
  height: 45px;
}
nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #23436B;
  padding: 8px 7px;
  border-radius: 7px;
  transition: background 0.14s, color 0.14s;
}
nav a.cta-btn {
  background: #5BB057;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 16px;
  letter-spacing: 0.02em;
  margin-left: 16px;
  box-shadow: 0 1px 6px 0 rgba(91,176,87,.07);
  transition: background 0.18s, box-shadow 0.18s, color 0.14s;
}
nav a.cta-btn:hover, nav a.cta-btn:focus {
  background: #23436B;
  color: #fff;
  box-shadow: 0 3px 16px 0 rgba(35,67,107,0.11);
}
nav a:hover:not(.cta-btn) {
  background: #ecf2f0;
  color: #5BB057;
}
.mobile-menu-toggle {
  display: none;
  background: #F2F3F5;
  border: none;
  font-size: 2rem;
  padding: 7px 15px;
  border-radius: 10px;
  color: #23436B;
  margin-left: 18px;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #e1e7e4;
  color: #5BB057;
  outline: none;
}

/*************
  HERO SECTION
*************/
.hero {
  background: #F2F3F5;
  background-image: url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 60px 0 40px 0;
  margin-bottom: 0;
}
.hero .container {
  min-height: 340px;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  background: rgba(255,255,255,0.92);
  border-radius: 22px;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 2px 16px 0 rgba(35,67,107,0.07);
  padding: 46px 32px 38px 32px;
}
.hero h1 {
  font-size: 2.2rem;
}
.hero p {
  font-size: 1.2rem;
  color: #23436B;
  margin-bottom: 26px;
  margin-top: 8px;
}
.hero .cta-btn {
  font-size: 1.1rem;
  margin-top: 12px;
}

/**********
  BUTTONS
***********/
.cta-btn, .btn, .cookie-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #5BB057;
  color: #fff;
  padding: 12px 32px;
  font-size: 1.03rem;
  border: none;
  border-radius: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.19s, color 0.16s, box-shadow 0.17s;
  box-shadow: 0 1px 10px 0 rgba(91,176,87,0.08);
  margin-top: 10px;
}
.cta-btn:hover, .btn:hover, .cookie-btn:hover, .cta-btn:focus, .btn:focus, .cookie-btn:focus {
  background: #23436B;
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(35,67,107,0.13);
  outline: none;
}

.btn.secondary, .cookie-btn.secondary {
  background: #fff;
  color: #23436B;
  border: 1.5px solid #5BB057;
  margin-left: 12px;
  box-shadow: none;
  transition: background 0.13s, color 0.16s, border 0.12s;
}
.btn.secondary:hover, .cookie-btn.secondary:hover {
  background: #F2F3F5;
  border-color: #23436B;
  color: #23436B;
}

/***********
  LISTS
***********/
ul, ol {
  color: #23436B;
  font-size: 1rem;
  margin-bottom: 20px;
  padding-left: 24px;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.65;
  padding-left: 2px;
}
ul li img {
  margin-right: 9px;
  margin-bottom: -7px;
}
dl {
  margin: 18px 0 24px 0;
}
dt {
  font-weight: 600;
  margin-bottom: 4px;
  color: #23436B;
  font-family: 'Montserrat',Arial,sans-serif;
}
dd {
  margin-bottom: 18px;
  margin-left: 0;
}

/************
 APARTMENT FAQ
*************/
dt {
  font-size: 1rem;
}
dd {
  font-size: .97rem;
  color: #63708A;
}

/***************
    TESTIMONIAL
***************/
.testimonial-card {
  background: #F5F8F7;
  border-left: 5px solid #5BB057;
  color: #23436B;
  font-size: 1.04rem;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px 0 rgba(35,67,107,.05);
  position: relative;
}
.testimonial-card blockquote {
  background: transparent;
  border: none;
  font-style: italic;
  padding: 0;
  margin: 0 0 4px 0;
  color: #23436B;
}
.testimonial-card span {
  font-size: 0.93rem;
  color: #5BB057;
  font-family: 'Montserrat',Arial,sans-serif;
  margin-left: 7px;
}
.testimonial-summary {
  background: #eee;
  padding: 22px 20px;
  border-radius: 12px;
  color: #23436B;
}

/************
  FOOTER
************/
footer {
  background: #23436B;
  color: #fff;
  margin-top: 40px;
  padding: 36px 0 26px 0;
  box-shadow: 0 -3px 35px 0 rgba(35,67,107,.07);
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
  align-items: center;
}
footer nav a {
  color: #fff;
  opacity: 0.88;
  font-size: .99rem;
  padding: 5px 7px;
  border-radius: 5px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.13s, color 0.13s, opacity 0.14s;
}
footer nav a:hover,footer nav a:focus {
  background: #5BB057;
  color: #fff;
  opacity: 1;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  color: #e4e8ee;
  font-size: 0.98rem;
  margin-bottom: 0;
}
.footer-info address {
  color: #b9cad9;
  font-size: 0.92rem;
}

/*************
  RESPONSIVE & FLEXBOX ADJUSTMENTS
*************/
@media (max-width: 1020px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  .apartment-list,
  .feature-grid,
  .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .feature-item,
  .apartment-item {
    min-width: 80%;
    max-width: 95vw;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 6vw;
  }
  header .container {
    flex-direction: row;
    padding: 10px 6vw;
    min-height: 56px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .content-wrapper {
    padding: 26px 7vw;
    margin-bottom: 28px;
  }
  .text-section {
    padding: 22px 6vw;
  }
  .hero {
    padding: 38px 0 20px 0;
  }
  .hero .content-wrapper {
    padding: 26px 6vw 23px 6vw;
    max-width: none;
  }
  .section {
    padding: 21px 7vw;
    margin-bottom: 36px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 17px;
  }
  .footer-info {
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  h1, .h1 {
    font-size: 1.6rem;
  }
  h2, .h2 {
    font-size: 1.17rem;
  }
  .apartment-list .apartment-item {
    min-width: 100%;
    padding: 14px 5vw 13px 5vw;
  }
  .feature-item {
    padding: 15px 4vw;
  }
}
.text-image-section {
  flex-direction: row;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}
/*************
  MOBILE NAVIGATION & MENU
*************/
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,67,107,0.97);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(.86,0,.07,1), opacity 0.17s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: #F2F3F5;
  color: #23436B;
  border: none;
  font-size: 2rem;
  padding: 8px 15px;
  border-radius: 10px;
  margin: 22px 0 18px 24px;
  align-self: flex-start;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(35,67,107,0.10);
  transition: background 0.14s, color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #5BB057;
  color: #fff;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  width: 100vw;
  align-items: flex-start;
  padding-left: 32px;
  margin-top: 20px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.21rem;
  padding: 6px 10px 6px 7px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.13s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #5BB057;
  outline: none;
}
.mobile-nav a.cta-btn {
  background: #5BB057;
  color: #fff;
  border-radius: 16px;
  margin-top: 28px;
  padding: 12px 32px;
  font-size: 1.09rem;
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/************
 COOKIE CONSENT BANNER
*************/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 -3px 24px 0 rgba(35,67,107,.11);
  z-index: 2000;
  padding: 24px 3vw 16px 3vw;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  transition: transform 0.35s cubic-bezier(.85,0,.11,1), opacity 0.21s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  font-size: 1rem;
  color: #23436B;
  margin-bottom: 0;
  max-width: 540px;
}
.cookie-banner-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  min-width: 120px;
  font-size: 1.04rem;
  padding: 11px 25px;
}

/********
  COOKIE MODAL
*********/
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,67,107,0.28);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.21s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px 0 rgba(35,67,107,0.14);
  padding: 36px 30px 28px 30px;
  max-width: 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.cookie-modal-dialog header{
  font-family:'Montserrat',Arial,sans-serif;
  font-size:1.21rem;
  color:#23436B;
  font-weight:600;
  margin-bottom: 8px;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0 15px 0;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #23436B;
}
.cookie-option input[type='checkbox'] {
  accent-color: #5BB057;
  width: 18px;
  height: 18px;
}
.cookie-option input[disabled] {
  accent-color: #b7bfc9;
  opacity: .5;
}
.cookie-close {
  background: #F2F3F5;
  color: #23436B;
  border: none;
  font-size: 1.32rem;
  padding: 4px 15px;
  border-radius: 8px;
  align-self: flex-end;
  position: absolute;
  top: 16px;
  right: 21px;
  cursor: pointer;
  box-shadow: 0 2px 7px 0 rgba(35,67,107,0.10);
  transition: background 0.14s, color 0.13s;
}
.cookie-close:hover, .cookie-close:focus {
  background: #5BB057;
  color: #fff;
  outline: none;
}
@media (max-width: 500px) {
  .cookie-modal-dialog {
    max-width: 94vw;
    padding: 18px 7vw 15px 7vw;
  }
  .cookie-banner p {
    font-size: 0.99rem;
    max-width: 300px;
  }
  .cookie-banner {
    gap: 10px;
    padding: 19px 4vw 12px 4vw;
  }
  .cookie-banner-btns {
    gap: 8px;
    flex-direction: column;
  }
}
/*************
    CONTACT
*************/
.contact-info, .contact-short {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 5px;
  font-size: 1.01rem;
  color: #23436B;
}
.contact-info p {
  margin-right: 22px;
  margin-bottom: 3px;
  color: #23436B;
}
.contact-info a {
  color: #5BB057;
  font-weight: 500;
}
.contact-short img {
  width: 21px;
  height: 21px;
  margin-right: 5px;
  vertical-align: middle;
}

/**************
  ANIMATIONS
***************/
.cta-btn, .btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn, .cookie-close {
  transition: background 0.19s, color 0.13s, opacity 0.13s, box-shadow 0.15s, border-color 0.14s, transform 0.18s;
}
.cta-btn:active, .btn:active {
  transform: scale(0.97);
}
.testimonial-card, .feature-item, .card, .apartment-item {
  transition: box-shadow 0.17s, transform 0.15s;
}
.testimonial-card:active, .feature-item:active, .card:active, .apartment-item:active {
  transform: scale(0.98);
}

/**************
  ACCESSIBILITY
***************/
:focus {
  outline: 2px solid #5BB057;
  outline-offset: 1.5px;
}

/**************
  UTILITIES
***************/
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }

/**************
  PRINT (basic)
***************/
@media print {
  header, .mobile-menu, .cookie-banner, .cta-btn, .btn, .cookie-btn, .cookie-modal, footer {
    display: none !important;
  }
  body, .container, .content-wrapper, .section {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  * {
    color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

/***************
 NO GRID/COL, FLEX ONLY!
***************/
/* All main containers use display: flex - see above. No grid or columns used. */
