/* -------------------------------
   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,menu,nav,output,ruby,section,summary,time,mark,audio,video {
  margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; background: transparent; }
img { border: 0; max-width: 100%; display: block; }
table { border-collapse: collapse; border-spacing: 0; }
button, input, select, textarea { font-family: inherit; font-size: 100%; box-sizing: border-box; }

/* -------------------------
   Brand variables (fallbacks)
--------------------------- */
:root {
  --color-primary: #22527b;
  --color-secondary: #f7f7f7;
  --color-accent: #fbbc05;
  --color-bg: #fff8f2;
  --color-bg-card: #fff;
  --color-bg-footer: #fff5e6;
  --color-text-dark: #233047;
  --color-text-body: #374659;
  --color-text-muted: #7a8597;
  --shadow-soft: 0 6px 24px rgba(34, 82, 123, 0.07);
  --shadow-subtle: 0 2px 8px rgba(34, 82, 123, 0.10);
  --radius: 16px;
  --radius-btn: 24px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
}

body {
  background: var(--color-bg);
  color: var(--color-text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  letter-spacing: -1px;
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-text-dark);
}
h4, h5, h6 { font-family: var(--font-display); color: var(--color-primary); }
p {
  margin-bottom: 16px;
  font-size: 1rem;
}
.text-section p, .text-section ul {
  font-size: 1rem;
  color: var(--color-text-body);
  margin-bottom: 16px;
}
ul, .text-section ul {
  padding-left: 0;
  margin-bottom: 16px; 
}
ul li {
  margin-bottom: 8px;
  padding-left: 0;
}
strong {
  color: var(--color-text-dark);
  font-weight: 500;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  max-width: 370px;
  flex: 1 1 250px;
}
.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: 8px;
  padding: 20px;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 20px;
  min-width: 250px;
  color: var(--color-text-dark);
}
.testimonial-card p {
  color: var(--color-text-dark);
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: .95rem;
  color: var(--color-text-muted);
}

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

.text-section {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Cards in Service/Offer lists */
ul li img {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  vertical-align: middle;
}
ul li {
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: calc(var(--radius) / 1.5);
  padding: 0;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-btn);
  padding: 0.85em 2.4em;
  box-shadow: 0 1px 8px rgba(251,188,5,0.10);
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.18s, color 0.21s;
  margin-top: 10px;
}
.btn.primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 1px 12px rgba(34,82,123,0.09);
}
.btn:hover,
.btn:focus {
  background: #ed9800;
  color: #fff;
  outline: none;
  box-shadow: 0 2px 18px rgba(34,82,123,0.09);
}
.btn.primary:hover, .btn.primary:focus {
  background: #174366;
}

/* Header / Navigation */
header {
  background: var(--color-secondary);
  box-shadow: var(--shadow-subtle);
  padding: 0;
  width: 100%;
  position: sticky; top: 0; z-index: 90;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}
.logo img {
  height: 48px;
  width: auto;
  border-radius: 8px;
  transition: box-shadow 0.3s;
}
.logo img:hover { box-shadow: 0 6px 24px rgba(34,82,123,0.10); }

.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  padding: 10px 4px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-primary);
  transition: color 0.17s, background 0.19s;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--color-accent);
  color: #fff;
}

.mobile-menu-toggle {
  background: none;
  color: var(--color-primary);
  font-size: 2rem;
  border: none;
  outline: none;
  cursor: pointer;
  display: none;
  border-radius: 50%;
  padding: 6px 12px;
  transition: background .21s;
}
.mobile-menu-toggle:hover { background: #e5e5e5; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(247,233,208,0.96);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.72,.14,.33,.95);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: row;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: var(--color-primary);
  font-size: 2.2rem;
  border: none;
  cursor: pointer;
  margin: 26px 24px 8px 0;
  align-self: flex-start;
  transition: color 0.18s;
}
.mobile-menu-close:hover { color: var(--color-accent); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 48px 24px;
  gap: 20px;
  width: 88vw;
  max-width: 350px;
  background: var(--color-bg-card);
  border-radius: 20px 0 0 20px;
  box-shadow: -4px 0 18px rgba(34,82,123,0.09);
}
.mobile-nav a {
  padding: 16px 0;
  font-size: 1.10rem;
  color: var(--color-primary);
  border-radius: 12px;
  transition: background 0.16s, color 0.17s;
  font-family: var(--font-display);
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--color-accent);
  color: #fff;
}

@media (max-width: 1120px) {
  .container { max-width: 99vw; }
}
@media (max-width: 940px) {
  .main-nav { gap: 9px; }
  header .container { gap: 8px; }
}
@media (max-width: 820px) {
  header .container { min-height: 60px; gap: 2px; }
  .main-nav a { font-size: 0.98rem; padding: 6px 2px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .container { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 540px) {
  .mobile-nav { padding: 38px 8px; max-width: 97vw; }
}

/* ----------------
   Main sections
------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.section:last-child, section:last-child {
  margin-bottom: 0;
}
h1, h2, h3, h4, h5, h6 {
  word-break: break-word;
}

/* Hero area */
section .btn:first-of-type {
  margin-top: 20px;
}

/* Features/Services sections */
ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Footer */
footer {
  background: var(--color-bg-footer);
  color: var(--color-text-dark);
  padding: 36px 0 16px;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  box-shadow: 0 -2px 24px rgba(34,82,123,0.04);
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 10px;
  font-size: 0.98rem;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--color-primary);
  opacity: .9;
  transition: opacity 0.13s, color 0.15s;
}
.footer-nav a:hover { color: var(--color-accent); opacity: 1; }
.footer-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-branding img {
  height: 36px;
  width: auto;
  border-radius: 10px;
}
.footer-branding span {
  font-size: 0.98rem;
  color: var(--color-text-muted);
}

@media (max-width: 540px) {
  .footer-nav { flex-direction: column; gap: 4px; }
  .footer-nav a { display: block; }
  .footer-branding { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* -------------------------
   Responsive Typography
--------------------------- */
@media (max-width: 1100px) {
  h1 { font-size: 2.10rem; }
  h2 { font-size: 1.5rem; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.20rem; }
  .section, section { padding: 24px 7px; }
}

/* -----------------------------
   Responsive Layouts with Flexbox
------------------------------- */
@media (max-width: 900px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .content-wrapper { gap: 12px; }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .card-container { gap: 14px; }
  .card { padding: 18px; }
  .testimonial-card { padding: 12px; }
}
@media (max-width: 420px) {
  .testimonial-card { padding: 8px; }
}

/* ----------------------
   Micro-interactions
---------------------- */
.card, .testimonial-card, .btn {
  transition: box-shadow .18s, border-color .18s, background .16s, color .18s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 26px rgba(251,188,5,0.14), 0 11px 24px rgba(34,82,123,0.09);
}
.btn:active { transform: scale(0.98); }

/* -------------
   Cookie Banner
--------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff8f2;
  color: var(--color-text-dark);
  border-top: 2.5px solid var(--color-accent);
  box-shadow: 0 0 28px rgba(34,82,123,0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px;
  z-index: 20000;
  gap: 18px;
  font-family: var(--font-body);
  animation: cookie-slideIn 0.39s cubic-bezier(.71,1.5,.4,1) 1;
}
@keyframes cookie-slideIn {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--color-text-dark);
  margin-bottom: 0;
}
.cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  padding: 9px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .19s, color .17s, box-shadow .21s;
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 1px 8px rgba(251,188,5,.08);
}
.cookie-btn.settings, .cookie-btn.secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1.5px solid var(--color-accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #ed9800;
  outline: none;
  color: #fff;
}
.cookie-btn.settings:hover,
.cookie-btn.secondary:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
@media (max-width: 800px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 7px; }
  .cookie-actions { align-self: flex-end; }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  z-index: 20001;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(105,89,53,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .29s cubic-bezier(.71,1.5,.4,1);
}
.cookie-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 14px 80px rgba(34, 82, 123, .13);
  padding: 33px 22px 24px 22px;
  min-width: 290px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  animation: modalIn .29s cubic-bezier(.72,1.4,.3,1);
}
@keyframes modalIn {
  from { transform: scale(.89); opacity:0 }
  to   { transform: scale(1); opacity:1 }
}
.cookie-modal h3 { margin-bottom: 4px; font-size: 1.2rem; }
.cookie-modal .close {
  position: absolute;
  right: 32px; top: 22px;
  font-size: 1.9rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 5px;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 8px;
}
.cookie-switch {
  width: 38px;
  height: 22px;
  background: var(--color-secondary);
  border-radius: 11px;
  border: 1.5px solid #e8c356;
  position: relative;
  transition: background .18s;
  cursor: pointer;
}
.cookie-switch[aria-checked="true"] {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.cookie-switch::after {
  content: '';
  display: block;
  width: 17px; height: 17px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(34,82,123,0.10);
  position: absolute;
  top: 1.5px; left: 1.5px;
  transition: left .18s, background .18s;
}
.cookie-switch[aria-checked="true"]::after {
  left: 18px;
  background: #fff;
}
.cookie-category .label {
  flex: 1;
}
.cookie-category .desc {
  font-size: 0.97rem; color: var(--color-text-muted);
}
@media (max-width: 500px) {
  .cookie-modal-dialog { padding: 18px 7px; min-width: 94vw; }
}

/* -----------
 Animations
---------------- */
.fade-in {
  animation: fadein .36s cubic-bezier(.71,1.5,.2,1.1) 1;
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide-in-right {
  animation: slideInRight .43s cubic-bezier(.72,1.3,.3,1) 1;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(56px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---------------------
 Utility & Minor Styles
------------------------ */
::-webkit-scrollbar { width:8px; background: #f0eee0; border-radius:8px; }
::-webkit-scrollbar-thumb { background: #eadaba; border-radius: 8px; }
::-webkit-selection{background:var(--color-accent);color:#fff;}

a { color: var(--color-primary); transition: color .16s; }
a:hover, a:focus { color: var(--color-accent); outline:none; }

hr {
  border: 0; height: 2px;
  background: #f6e7c2;
  border-radius: 3px; margin: 24px 0;
}

input, textarea, select {
  border-radius: 10px;
  border: 1.5px solid #e7e0d1;
  background: #fff;
  padding: 9px 13px;
  margin-bottom: 9px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  outline: none;
}

/* Highlight cards, list items, sections for CTA/final blocks */
section:last-child, .section:last-child {
  background: #fff6e6;
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  padding-bottom: 64px;
}

/* Custom Icon Colors */
ul li img[src*='laptop'],
ul li img[src*='setting'],
ul li img[src*='rental'],
ul li img[src*='repair'],
ul li img[src*='backup'],
ul li img[src*='training'],
ul li img[src*='time'],
ul li img[src*='flexibility'],
ul li img[src*='support'],
ul li img[src*='safe'],
ul li img[src*='fast'] {
  filter: hue-rotate(15deg) brightness(0.98) saturate(1.2);
}

/* Standalone text sections */
.text-section a {
  color: var(--color-accent); text-decoration: underline; font-weight: 500;
  transition: color 0.15s;
}
.text-section a:hover{ color: var(--color-primary); }

/* Polskie diakrytyki font smoothing */
body {
  font-feature-settings: "liga" 1, "kern" 1;
}

/* Improve form touch targets (for future form extensions) */
input, textarea, .btn { min-height: 40px; }

/* -------------
   Misc. helpers
--------------- */
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* -----------
   No overlap guarantee
------------- */
.card, .testimonial-card, .feature-item, .section, section, .content-wrapper, .card-container, .content-grid {
  margin-bottom: 20px;
}
.card-container, .content-grid, .text-image-section, .testimonial-card, .footer-branding, .footer-nav {
  gap: 20px;
}

/* ------------
  Hide elements
-------------- */
@media (max-width: 768px) {
  .main-nav, .footer-branding { flex-direction: column; align-items: flex-start; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
