/* =============================
   CIEPŁO DOMOWE - industrial_modern UI
   Author: Senior CSS Developer
   Brand: Ciepło Domowe
   ============================= */
/* ===== CSS RESET & NORMALIZE ===== */
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, main, 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 { height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; background: #232931; color: #F9F9F6; font-family: 'Open Sans', Arial, sans-serif; font-size: 16px; line-height: 1.7; }
article, aside, details, figcaption, figure, footer, header, main, menu, nav, section { display: block; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; border: none; background: none; outline: none; cursor: pointer; }
[tabindex]:focus { outline: 2px solid #F5C675; outline-offset: 2px;}

/* ====== VARS & FONTS (fallbacks added) ====== */
:root {
  --primary: #304A60;
  --secondary: #F5C675;
  --accent: #F9F9F6;
  --neutral-dark: #232931;
  --neutral-mid: #393f45;
  --neutral-900: #181C22;
  --steel: #465869;
  --metal: #7C828C;
  --shadow: rgba(0,0,0,0.17);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.24s cubic-bezier(.5,.2, .2,1);
  --card-bg: #2f3740;
  --testimonial-bg: #f6f7fa;
  --testimonial-text: #232931;
  --font-display: 'Montserrat', 'Arial Black', Arial, sans-serif;
  --font-body: 'Open Sans', Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --testimonial-bg: #21252a;
    --testimonial-text: #F9F9F6;
  }
}

body {
  background: var(--neutral-dark);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
h1 { font-size: 2.5rem; margin-top: 0; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
p, li, blockquote, cite { color: var(--accent); font-family: var(--font-body); }
blockquote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--testimonial-text);
  font-style: italic;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
cite { font-style: normal; color: var(--secondary); font-size: 1rem; }

/* =====================
   SPACING CONTAINERS
======================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card-container,
.service-cards,
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card, .service-card {
  background: var(--card-bg);
  border: 1.5px solid var(--steel);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--shadow);
  padding: 28px 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px; max-width: 340px;
  transition: transform .18s, box-shadow .18s;
}
.card:hover, .service-card:hover {
  box-shadow: 0 6px 28px rgba(80,90,100,0.30);
  transform: translateY(-4px) scale(1.025);
  border-color: var(--secondary);
}
.price {
  display: inline-block;
  margin-top: 12px;
  color: var(--secondary);
  font-weight: bold;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px 20px 24px;
  margin-bottom: 20px;
  background: var(--testimonial-bg);
  border-left: 5px solid var(--secondary);
  border-radius: var(--radius);
  box-shadow: 0 4px 22px rgba(24,28,34,0.11);
  color: var(--testimonial-text);
  min-width: 220px;
  max-width: 540px;
}
.testimonial-card blockquote,
.testimonial-card p {
  color: var(--testimonial-text);
}
.testimonial-card cite {
  color: var(--primary);
  font-style: normal;
  font-weight: 600;
}

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

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 32px;
}
.footer-menu nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-info {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* ==================
   HEADER & NAVIGATION
==================== */
header {
  width: 100%;
  background: var(--primary);
  padding: 0;
  box-shadow: 0 3px 15px rgba(30,35,45,.13);
  position: relative;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px; padding-bottom: 10px;
  gap: 18px;
  min-height: 64px;
}
header img { height: 46px; width: auto; margin-right: 20px; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.025em;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition);
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
  transition: width 0.16s;
  position: absolute;
  left: 0; bottom: 0;
}
.main-nav a:hover {
  color: var(--secondary);
}
.main-nav a:hover::after { width: 100%; }

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 12px 30px;
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(40,40,50,0.13);
  border: none;
  min-width: 180px;
  min-height: 44px;
  cursor: pointer;
  transition: background .18s, color .16s, box-shadow .17s, transform .12s;
  position: relative;
  margin-left: 10px;
}
.btn-secondary {
  background: var(--card-bg);
  color: var(--secondary);
  border: 1px solid var(--secondary);
}
.btn-primary:hover, .btn-secondary:hover {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 4px 20px rgba(245,198,117,.18);
  transform: translateY(-1.5px) scale(1.03);
}
.btn-secondary:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* ================================
  HAMBURGER MOBILE MENU
================================ */
.mobile-menu-toggle {
  display: none;
  margin-left: 12px;
  font-size: 2rem;
  color: var(--secondary);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  width: 46px; height: 46px;
  transition: background .18s;
  position: relative;
  z-index: 31;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--metal);
  color: var(--neutral-dark);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,41,49,.93);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform .36s var(--transition);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 24px 30px 10px 0;
  font-size: 2.2rem;
  background: none;
  color: var(--secondary);
  border: none;
  border-radius: var(--radius-sm);
  width: 48px; height: 48px;
  align-self: flex-end;
  cursor: pointer;
  transition: background .19s;
  z-index: 1001;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--metal);
  color: var(--neutral-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 30px 52px;
  width: 100vw;
  align-items: flex-start;
}
.mobile-nav a {
  color: var(--secondary);
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color .18s;
  padding: 8px 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
}

/* ============
  MAIN + FOOTER
============== */
main {
  width: 100%;
  min-height: 70vh;
  display: block;
  background: none;
  padding-bottom: 36px;
}
footer {
  width: 100%;
  background: var(--primary);
  color: var(--accent);
  font-size: 0.95rem;
  padding: 44px 0 24px 0;
  border-top: 2px solid var(--steel);
  box-shadow: 0 -2px 20px rgba(30,32,36,0.14);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-info img {
  width: 54px;
  height: auto;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--secondary);
  padding: 6px 2px;
  border-radius: 2px;
  transition: background .14s, color .13s;
}
footer nav a:hover, .footer-menu nav a:focus {
  color: var(--accent);
  background: var(--metal);
}

/* =================
 CHECKLIST, LISTS, etc
================== */
ul, ol {
  color: var(--accent);
  margin: 0 0 0 18px;
  font-size: 1.01rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
ul li::marker, ol li::marker { color: var(--secondary); }
ul li:before, ol li:before {
  content: '';
  margin-right: 4px;
}
li {
  padding-left: 0.0em;
  position: relative;
}
ul li:has(> strong) {
  font-weight: 600;
}

/* =====================
   RESPONSIVE STYLES
===================== */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
  .content-wrapper { max-width: 98vw; }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 12px;
  }
  .service-card,
  .card {
    min-width: 180px;
    max-width: calc(50vw - 40px);
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .container { padding-left: 8px; padding-right: 8px; }
  .section { padding: 28px 7px; margin-bottom: 38px; }
  .content-wrapper { gap: 20px; }
  .main-nav, .btn-primary { display: none; }
  .mobile-menu-toggle { display: block; }
  .card-container, .service-cards, .service-list, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .service-card, .card {
    min-width: 96vw;
    max-width: 99vw;
    padding: 18px 10px 18px 16px;
  }
  .testimonial-card {
    max-width: 99vw;
    padding: 17px 8px 17px 14px;
  }
  .footer-menu {
    flex-direction: column;
    gap: 8px;
  }
  .footer-info {
    margin-top: 12px;
    gap: 6px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 20px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.22rem; }
  h2 { font-size: 1.02rem; }
  .section { padding: 17px 2px; margin-bottom: 24px; }
}

/* =====================
  INTERACTIVE / MICROINTERACTIONS
===================== */
a, button, .btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close {
  transition: transform .13s, background .16s, color .13s, box-shadow .15s, border-color .19s;
}
a:active, button:active {
  transform: scale(0.97);
  outline: none;
}
.btn-primary:focus, .btn-secondary:focus {
  box-shadow: 0 0 0 3px var(--secondary), 0 3px 15px var(--shadow);
}

/* =====================
  COOKIES CONSENT BANNER
===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--neutral-mid);
  color: var(--accent);
  border-top: 2.5px solid var(--secondary);
  box-shadow: 0 -4px 24px var(--shadow);
  z-index: 10003;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px;
  gap: 18px;
  font-size: 1rem;
  animation: slideUp .55s cubic-bezier(.44, .03, .19, 1.21);
  font-family: var(--font-body);
}
@keyframes slideUp {
  0% { transform: translateY(100%); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  margin-left: 6px;
}
.cookie-btn {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 8px 21px;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 4px;
  transition: background .14s, color .13s;
  min-width: 110px;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-settings-btn {
  background: none;
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
  margin-left: 10px;
}
.cookie-settings-btn:hover {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 8px;
    gap: 10px;
  }
  .cookie-banner button { margin-left: 0; margin-top: 6px; }
}

/* =====================
  COOKIE MODAL SETTINGS
===================== */
.cookie-modal {
  position: fixed;
  z-index: 10005;
  background: rgba(35,41,49,.92);
  left: 0; top: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: initial;
  transition: opacity .26s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-dialog {
  background: var(--neutral-mid);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px var(--shadow);
  max-width: 386px;
  width: 95vw;
  padding: 44px 28px 28px 28px;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  animation: fadeInScale .21s;
}
@keyframes fadeInScale {
  0% { transform: scale(.75); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 20px;
  right: 18px;
  font-size: 1.48rem;
  color: var(--secondary);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 18px;
  padding: 2px 6px;
  transition: background .17s;
  z-index: 1;
}
.cookie-modal-close:hover { background: var(--metal); color: var(--primary); }
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.cookie-toggle {
  width: 40px; height: 22px;
  border-radius: 12px;
  background: var(--metal);
  position: relative;
  cursor: pointer;
  border: 2px solid var(--primary);
  transition: background .18s;
}
.cookie-toggle.enabled {
  background: var(--secondary);
  border-color: var(--secondary);
}
.cookie-toggle-knob {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%;
  transition: left .16s;
}
.cookie-toggle.enabled .cookie-toggle-knob {
  left: 20px;
  background: var(--primary);
}
.cookie-modal-category label {
  font-size: 1rem;
  color: var(--accent);
  font-family: var(--font-body);
}
.cookie-modal-category input[disabled] + .cookie-toggle {
  opacity: .57;
  cursor: not-allowed;
}
/* ==========
  FORMS & INPUTS
========= */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  background: #232931;
  color: var(--accent);
  border: 1.4px solid var(--metal);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border .15s, box-shadow .13s;
}
input:focus, textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 2px 6px var(--shadow);
  outline: none;
}
label {
  color: var(--secondary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 4px;
  display: block;
}

/* ===============
  SCROLLBAR STYLES
================ */
body::-webkit-scrollbar {
  width: 10px;
  background: var(--neutral-900);
}
body::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 6px;
}

/* ===============
  INDUSTRIAL MODERN ACCENTS
================ */
.card, .service-card, .testimonial-card {
  border-left: 8px solid var(--steel);
  position: relative;
}
.card::after, .service-card::after {
  content: '';
  display: block;
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--secondary);
  position: absolute;
  top: 22px; left: 0;
  z-index: 2;
}
.service-card h3, .card h3 {
  font-family: var(--font-display);
  color: var(--secondary);
  font-size: 1.18rem;
  margin-bottom: 6px;
  font-weight: 700;
}
/* ===============
  MISC
================ */
h1, h2, h3 { text-shadow: 0 2px 6px rgba(48,74,96,.15); }
.mark {
  background: var(--secondary);
  color: var(--primary);
  padding: 0 .2em;
  border-radius: 4px;
  font-weight: 700;
}
hr {
  border: none;
  height: 2px;
  background: var(--metal);
  margin: 30px 0;
}

/* === Final spacing fix === */
.section,.content-wrapper,.card-container,.service-cards,.service-list,.card,.testimonial-card {
  margin-bottom: 20px;
}
.card-container, .service-cards, .service-list, .content-grid {
  gap: 24px;
  margin-bottom: 20px;
}
.testimonial-card {
  margin-bottom: 24px;
}

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