/* RESET & BASE TYPOGRAPHY (LUXURY PREMIUM) */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  background: #f7f6f3;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #202020;
  background-color: #f7f6f3;
  min-height: 100vh;
  letter-spacing: 0.01em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 1.2em;
  margin: 16px 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #223B57;
  margin-bottom: 14px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  line-height: 1.12;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #2f4258;
}
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
p {
  font-size: 1.08rem;
  color: #273147;
  margin-bottom: 14px;
  font-family: 'Open Sans', Arial, sans-serif;
}
strong {
  font-weight: 700;
  color: #223B57;
}
blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  color: #223B57;
  margin-bottom: 12px;
  line-height: 1.45;
  border-left: 3px solid #d1b46b;
  padding-left: 16px;
  background: #f6f5f4;
  border-radius: 6px 0 0 6px;
}
a {
  color: #223B57;
  text-decoration: none;
  transition: color 0.25s;
  cursor: pointer;
}
a:hover, a:focus {
  color: #b89d4b;
}

/* BRAND LUXURY COLOR PALETTE & VARIABLES */
:root {
  --primary: #223B57;
  --secondary: #6ADDAB;
  --soft-bg: #f7f6f3;
  --accent: #F1F5F8;
  --gold: #d1b46b;
  --gold-dark: #b89d4b;
  --heading: #223B57;
  --card-shadow: 0 4px 18px 0 rgba(34,59,87,0.08), 0 1.5px 4px 0 rgba(210,180,107,0.05);
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  border-bottom: 1px solid #ededed;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 6px 0 rgba(205,171,65,.07);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 18px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  color: #223B57;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background 0.23s, color 0.23s;
  position: relative;
}
header nav a:hover:not(.nav-cta), header nav a:focus:not(.nav-cta) {
  background: #f4f2ef;
  color: #b89d4b;
}
.nav-cta {
  background: var(--gold);
  color: #fff !important;
  padding: 9px 24px;
  border-radius: 30px;
  font-weight: 700;
  margin-left: 18px;
  box-shadow: 0 2px 12px 0 rgba(210,180,107,0.11);
  border: 1.5px solid var(--gold-dark);
  transition: background 0.28s, color 0.28s;
}
.nav-cta:hover, .nav-cta:focus {
  background: var(--gold-dark);
  color: #fff;
}
/* LOGO spacing */
header img[alt="Twinkly Budownictwo"] {
  height: 42px;
  width: auto;
  margin-right: 28px;
}
/* MOBILE MENU */
.mobile-menu-toggle {
  background: none;
  color: var(--primary);
  border: none;
  font-size: 2.3rem;
  padding: 6px 12px;
  cursor: pointer;
  display: none;
  z-index: 2002;
  transition: color 0.22s;
}
.mobile-menu-toggle:focus {
  outline: 2px dashed var(--gold);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(34,59,87,0.96);
  color: #fff;
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.7,0,.3,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-start;
  background: none;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  margin: 22px 0 8px 24px;
  cursor: pointer;
  z-index: 2002;
  transition: color .19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--gold);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100vw;
  padding: 0 32px;
  margin-top: 30px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  padding: 12px 0;
  border-radius: 6px;
  transition: color 0.23s, background 0.21s;
  font-weight: 500;
  text-align: left;
}
.mobile-nav a.nav-cta {
  background: var(--gold);
  color: #223B57;
  font-weight: bold;
  padding: 12px 0;
  border-radius: 18px;
  margin: 12px 0;
  box-shadow: 0 2px 12px 0 rgba(210,180,107,0.10);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--gold-dark);
  color: #fff;
}

/* HERO SECTION */
.hero {
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 10px 30px rgba(34,59,87,0.11);
  margin-bottom: 60px;
  padding: 40px 0 50px 0;
}
.hero .container {
  align-items: flex-start;
}
.hero .content-wrapper {
  gap: 20px;
  align-items: flex-start;
}
.hero h1 {
  color: #fff;
  font-size: 2.7rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.hero p {
  color: #f1ecd7;
  font-size: 1.15rem;
}
.cta-btn {
  background: var(--gold);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 10px 34px;
  border-radius: 28px;
  border: 1px solid var(--gold-dark);
  box-shadow: 0 3px 12px 0 rgba(210,180,107,0.10);
  margin-top: 12px;
  transition: background 0.24s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--gold-dark);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px 0 rgba(210,180,107,0.15);
}

/* SECTION LAYOUTS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 18px rgba(34,59,87,.05);
}
.features, .about, .services, .contact, .testimonials, .legal {
  margin-bottom: 60px;
  padding: 40px 0;
  background: transparent;
}

/* FLEX PATTERNS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  align-items: stretch;
  margin-top: 24px;
}
.feature-grid > div {
  flex: 1 1 240px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2.5px 12px rgba(34,59,87,0.07), 0 1.5px 4px rgba(210,180,107,0.07);
  padding: 28px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 1.5px solid #ede6d9;
  position: relative;
  margin-bottom: 20px;
  transition: transform 0.20s, box-shadow 0.25s, border 0.18s;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  border-color: var(--gold);
  box-shadow: 0 10px 40px 0 rgba(210,180,107,0.13);
  transform: translateY(-6px) scale(1.018);
  z-index: 1;
}
.feature-grid img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  margin-bottom: 8px;
}
.feature-grid h3 {
  font-size: 1.15rem;
  color: #223B57;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 6px;
  font-weight: 700;
}
.feature-grid p {
  font-size: 1.01rem;
  color: #2f3c47;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.text-section ul {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
  color: #5b6378;
}
.text-section li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0;
}
.text-section img {
  height: 20px;
  width: 20px;
}
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5efe1;
  color: #b89d4b;
  font-weight: bold;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 18px;
  font-size: 1.08rem;
}

/* TESTIMONIALS */
.testimonials {
  margin-bottom: 60px;
  padding: 40px 0;
}
.testimonials .content-wrapper {
  gap: 32px;
  align-items: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 28px 22px 28px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 3.5px 16px rgba(34,59,87,.08);
  border: 1.5px solid #ede6d9;
  min-width: 220px;
  max-width: 670px;
  transition: box-shadow 0.2s, transform 0.2s, border 0.17s;
  color: #223B57;
}
.testimonial-card blockquote {
  color: #223B57;
  font-size: 1.1rem;
  background: none;
  border-left: 2.5px solid var(--gold);
}
.testimonial-card p {
  color: #76797b;
  font-size: 0.99rem;
}
.testimonial-card strong {
  color: #b89d4b;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: var(--gold);
  box-shadow: 0 6px 25px 0 rgba(210,180,107,0.13);
  transform: translateY(-4px) scale(1.015);
  z-index: 1;
}

/* CONTACT */
.contact .map-placeholder {
  margin-left: 0;
}
.contact ul {
  margin-bottom: 12px;
}

/* CARDS GENERAL */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.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;
}

/******* LEGAL PAGE SECTION LAYOUTS *******/
.legal .content-wrapper {
  gap: 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(34,59,87,0.06);
  padding: 24px 26px 26px 26px;
  margin-top: 24px;
}
.legal .text-section h2 {
  color: #b89d4b;
  font-size: 1.14rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 18px;
  margin-bottom: 8px;
}
.legal .text-section li {
  color: #394256;
  font-size: 0.98rem;
  margin-bottom: 7px;
}

/******* FOOTER STYLES *******/
footer {
  background: #223B57;
  color: #fff;
  padding: 28px 0 10px 0;
  margin-top: 40px;
  border-radius: 26px 26px 0 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  font-size: 1.03rem;
  margin-bottom: 10px;
  color: #fff;
}
.footer-links span {
  color: #b89d4b;
  font-weight: 600;
}
.footer-links a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color .2s;
  font-weight: 400;
  padding: 2px 7px;
  border-radius: 3px;
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--gold);
  background: #fff1db;
}
.brand-info {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: center;
  color: #fff6e5;
  font-size: 0.97rem;
}

/******* BURGER MENU DISPLAY RULES *******/
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu.open {
    display: none !important;
  }
}

/******* RESPONSIVE RULES *******/
@media (max-width: 900px) {
  .container {
    padding: 0 12px;
    max-width: 97vw;
  }
  .feature-grid {
    gap: 20px;
  }
  .feature-grid > div {
    min-width: 210px;
    padding: 22px 12px 18px 12px;
  }
  .testimonial-card {
    padding: 20px 13px;
    max-width: 97vw;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    height: 60px;
    padding-left: 5px;
    padding-right: 5px;
    gap: 6px;
  }
  .hero h1 {
    font-size: 1.64rem;
    margin-bottom: 10px;
  }
  .hero {
    padding: 28px 0 25px 0;
    border-radius: 0 0 18px 18px;
  }
  .section, .features, .about, .services, .testimonials, .contact, .legal {
    margin-bottom: 32px;
    padding: 22px 0 16px 0;
    border-radius: 12px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div {
    min-width: unset;
    max-width: 100%;
    width: 100%;
    padding: 17px 10px 14px 10px;
  }
  .testimonials .content-wrapper, .features .content-wrapper {
    gap: 18px;
  }
  .testimonial-card {
    min-width: unset;
    padding: 12px 7px;
    border-radius: 9px;
    margin-bottom: 15px;
  }
  .text-section, .contact .map-placeholder {
    padding: 0;
    gap: 9px;
    font-size: 0.95rem;
  }
  .content-grid {
    flex-direction: column;
    gap: 11px;
  }
  .card-container {
    flex-direction: column;
    gap: 12px;
  }
  .about .content-wrapper, .legal .content-wrapper {
    padding: 13px 4px 16px 4px;
    margin-top: 14px;
    border-radius: 7px;
  }
  .footer-links, .brand-info {
    flex-direction: column;
    gap: 8px;
    font-size: 0.99rem;
  }
  .map-placeholder {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.94rem;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/******* LUXURY BUTTONS & INTERACTIONS *******/
button, .cta-btn, .nav-cta {
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  border: none;
  transition: background 0.17s, color 0.17s, box-shadow 0.19s, border 0.2s;
  outline: none;
}
button:active, .cta-btn:active, .nav-cta:active {
  transform: scale(0.98);
}

/******* LEADERSHIP PROFILES *******/
.leadership-profiles {
  margin-top: 18px;
  margin-bottom: 9px;
  background: #fff8ef;
  border-radius: 9px;
  padding: 18px 18px;
  box-shadow: 0 1.5px 6px rgba(218,182,74,0.04);
}
.leadership-profiles h3 {
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.leadership-profiles ul {
  gap: 6px;
}

/******* Cookie Consent Banner  *******/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2500;
  background: #fffdf9;
  border-top: 2px solid var(--gold);
  box-shadow: 0 -5px 30px 0 rgba(34,59,87,0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 20px 24px;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(.7,0,.3,1), opacity 0.35s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  color: #223B57;
  font-size: 1.05rem;
  max-width: 550px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 7px 22px;
  border-radius: 20px;
  font-size: 1rem;
  background: var(--gold);
  color: #fff;
  border: 1.5px solid var(--gold-dark);
  box-shadow: 0 2px 10px rgba(210,180,107,0.06);
  margin-left: 0;
  margin-right: 0;
  transition: background .21s, box-shadow .2s, color .18s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--gold-dark);
  color: #fff;
}
.cookie-banner .cookie-secondary {
  background: transparent;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold);
}
.cookie-banner .cookie-secondary:hover, .cookie-banner .cookie-secondary:focus {
  background: #f7eacf;
  color: var(--primary);
}
.cookie-banner .cookie-settings {
  background: #223B57;
  color: #fff;
  border: 1.5px solid #223B57;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #fff;
  color: #223B57;
}

/******* Cookie Modal  *******/
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,59,87,0.63);
  z-index: 2502;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cookie-modal {
  background: #fffef9;
  border-radius: 18px;
  box-shadow: 0 6px 48px rgba(34,59,87,0.11);
  padding: 32px 34px;
  max-width: 430px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
  animation: cookieModalIn .38s cubic-bezier(.7,0,.3,1);
}
@keyframes cookieModalIn {
  0% { transform: translateY(70px) scale(0.93); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--gold);
  font-size: 1.26rem;
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.05rem;
}
.cookie-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #223B57;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--gold);
  width: 20px; height: 20px;
  border-radius: 6px;
}
.cookie-category input[disabled] {
  opacity: 0.7;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  right: 19px;
  top: 19px;
  background: none;
  border: none;
  color: #223B57;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.22s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--gold);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 11px 12px 11px;
    gap: 12px;
    font-size: 0.98rem;
  }
  .cookie-modal {
    padding: 18px 8px;
    border-radius: 10px;
  }
  .cookie-modal h2 {
    font-size: 1.10rem;
  }
  .cookie-category label {
    font-size: 0.955rem;
  }
}

/******* LUXURY MICRO-EFFECTS *******/
.feature-grid > div::after {
  content: "";
  display: block;
  height: 4px;
  width: 44px;
  border-radius: 2.5px;
  margin-top: 10px;
  background: var(--gold);
  opacity: 0.18;
}
.feature-grid > div:focus-within::after,
.feature-grid > div:hover::after {
  opacity: 0.36;
  background: var(--gold-dark);
  transition: opacity 0.20s;
}

/******* MISC (FORMS, UTILS, ETC) *******/
::-webkit-input-placeholder { color: #aaa; }
::-moz-placeholder { color: #aaa; }
:-ms-input-placeholder { color: #aaa; }
::placeholder { color: #aaa; }
:focus { outline-color: var(--gold); }

::-webkit-scrollbar {
  width: 10px;
  background: #fcf9f3;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: #e5d7b9;
  border-radius: 8px;
}

/* FONTS LOAD */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@400;700&display=swap');
