/* ===== CSS RESET & BASE ===== */
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;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  color: #1A2238;
  background: #F7F7FF;
  font-size: 16px;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #1A2238;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(.65,0,.35,1);
}
a:hover, a:focus {
  color: #FFD803;
  outline: none;
}

/* ===== VARS & BRAND COLORS ===== */
:root {
  --primary: #1A2238;
  --secondary: #9DAAF2;
  --accent: #FFD803;
  --danger: #F05454;
  --success: #22c55e;
  --body-bg: #F7F7FF;
  --surface: #fff;
  --shadow-main: 0 8px 30px rgba(26,34,56,0.10),0 2px 4px rgba(26,34,56,0.04);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--primary);
  text-transform: uppercase;
}
h1 { font-size: 2.75rem; line-height: 1.11; margin-bottom: 24px; word-break: break-word; }
h2 { font-size: 2.0rem; margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1rem;}

.subheadline {
  color: var(--secondary);
  font-weight: 500;
  font-size: 1.18rem;
  margin-bottom: 18px;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #222a44;
}
ul, ol {
  margin-bottom: 18px;
  padding-left: 22px;
}
ul > li, ol > li {
  margin-bottom: 8px;
  color: #29292c;
}
strong {
  color: var(--primary);
  font-weight: bold;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.38rem; }
  .subheadline { font-size: 1rem; }
}

/* ===== MAIN CONTAINER & LAYOUTS ===== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
  position: relative;
}
@media (max-width: 768px) {
  .section {
    padding: 22px 9px;
    margin-bottom: 35px;
    border-radius: var(--radius-md);
  }
  .container {
    padding: 0 3vw;
  }
  .content-wrapper { gap: 18px; }
}

/* ===== FLEXBOX PATTERNS (MANDATORY) ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(26,34,56,0.09);
  transition: box-shadow 0.2s;
  position: relative;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(26,34,56,0.16);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 22px;
}
.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;
  padding: 20px;
  background: #F7F7FF;
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px rgba(26,34,56,0.11);
  margin-bottom: 20px;
  color: #222a44;
  font-size: 1.09rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
}
.feature {
  flex: 1 1 240px;
  min-width: 230px;
  background: #EFF3FA;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px 18px 22px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 18px rgba(157,170,242,0.08);
}
.feature:hover {
  transform: translateY(-5px) scale(1.025);
  box-shadow: 0 8px 32px rgba(157,170,242,0.17);
  background: #E0E5FB;
}
.feature img {
  width: 44px; height: 44px;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px !important;
  }
  .feature {
    width: 100%;
    min-width: unset;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* ===== BUTTONS & CTA ===== */
.cta-btn, .service-list .service-item a, .cookie-banner-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .03em;
  font-size: 1.14rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 18px rgba(255, 216, 3, 0.10);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, color 0.15s, transform 0.1s;
  text-transform: uppercase;
  margin-top: 8px;
  margin-bottom: 8px;
}
.cta-btn:hover,
.cta-btn:focus, .cookie-banner-button:hover, .cookie-banner-button:focus {
  background: #ffe34d;
  color: #1A2238;
  transform: scale(1.037);
  outline: none;
}

@media (max-width: 500px) {
  .cta-btn {
    padding: 13px 14px;
    font-size: .99rem;
  }
}

/* ===== HEADER & SITE NAVIGATION ===== */
header {
  width: 100%;
  background: var(--primary);
  box-shadow: 0 4px 18px rgba(26,34,56,0.12);
  color: #fff;
  position: relative;
  z-index: 1002;
}
header .container {
  padding-top: 14px;
  padding-bottom: 14px;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
header img {
  height: 40px;
  width: auto;
  margin-right: 16px;
}
nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
nav a {
  color: #fff;
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 8px 6px;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
}
nav a:hover, nav a.active {
  background: var(--accent);
  color: var(--primary);
}
.cta-btn {
  margin-left: 24px;
  min-width: 178px;
  box-shadow: 0 4px 16px rgba(255,216,3,0.11);
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 2.2rem;
  padding: 2px 16px 0 16px;
  cursor: pointer;
  margin-left: 16px;
  box-shadow: 0 1px 10px rgba(255,216,3,0.18);
  transition: background 0.16s, color 0.12s, box-shadow 0.15s;
  z-index: 1200;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #ffe34d;
  outline: none;
}

@media (max-width: 1020px) {
  nav {
    gap: 20px;
  }
  header .container {
    flex-wrap: wrap;
    gap: 10px;
  }
}
@media (max-width: 900px) {
  nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  header .container {
    padding-top: 10px; padding-bottom: 10px;
  }
}

/* ===== MOBILE MENU STYLES ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  color: #FFF;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.55,0,.25,1);
  z-index: 1200;
  box-shadow: 2px 0 40px rgba(26,34,56,0.22);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 44px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 24px;
  top: 18px;
  background: none;
  border: none;
  color: #FFD803;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1220;
  transition: color 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #ffb700;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
  padding: 40px 30px 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: .01em;
  background: none;
  border-radius: 7px;
  padding: 18px 8px 12px 7px;
  transition: background 0.16s, color 0.14s, padding-left 0.19s;
  margin-bottom: 2px;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--accent);
  color: var(--primary);
  padding-left: 30px;
}

/* Hide mobile-menu by default on desktop */
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 38px 0 18px;
  margin-top: 30px;
}
footer .container {
  flex-direction: column;
  gap: 26px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-menu a {
  color: #FFD803;
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: .02em;
  font-size: 1rem;
  transition: color 0.14s;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: #fff;
}
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
  color: #9DAAF2;
}
.footer-info img {
  height: 45px; margin-bottom: 7px;
}

@media (max-width: 768px) {
  footer .container {
    padding-top: 18px;
    gap: 14px;
  }
  .footer-menu { gap: 12px; font-size: .97rem; }
  .footer-info img { height: 38px; }
}

/* ===== SERVICE LIST & PRICING (uslugi.html) ===== */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
  margin-top: 12px;
}
.service-item {
  background: #f9fafd;
  border-radius: var(--radius-md);
  padding: 26px 20px 20px 20px;
  box-shadow: 0 4px 16px rgba(26,34,56,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  min-width: 235px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  position: relative;
  transition: background 0.13s, box-shadow 0.13s, transform 0.11s;
}
.service-item:hover {
  background: #E6EEFF;
  box-shadow: 0 7px 20px rgba(157,170,242,0.13);
  transform: scale(1.02);
}
.service-price {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  padding: 7px 16px;
  border-radius: 22px;
  font-size: 1.11rem;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .service-list {
    flex-direction: column;
    gap: 18px;
  }
  .service-item {
    width: 100%;
    min-width: unset;
    padding: 19px 10px 16px 12px;
  }
}

/* ===== TESTIMONIAL VARIATION ===== */
.author {
  font-size: 0.99rem;
  color: var(--primary);
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-style: italic;
}

/* ===== CONTACT PAGE & ICONS ===== */
.contact-instructions {
  background: #EFF3FA;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 15px 15px 7px 18px;
  font-size: 1rem;
  margin-top: 10px;
  margin-bottom: 6px;
  color: #273056;
}
.contact-instructions p { margin-bottom: 6px; }
main p img {
  display: inline-block;
  margin-right: 9px;
  height: 1.2em;
  vertical-align: middle;
}
a[href^='mailto:'], a[href^='tel:'] {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: underline;
}
a[href^='mailto:']:hover,
a[href^='tel:']:hover { color: var(--accent); }

/* ===== THANK YOU PAGE ===== */
main .cta-btn {
  margin-top: 20px;
}

/* ===== POLICIES PAGES (RODO, Privacy, Cookies, Regulamin) ===== */
main ul {
  margin-bottom: 14px;
  padding-left: 20px;
}
main ul li, main ol li {
  font-size: 1rem;
  margin-bottom: 9px;
  color: #20214B;
}

/* ===== VIBRANT EFFECTS & DECOR ===== */
.section {
  /* Optional decorative bar for vibrance */
  border-left: 7px solid var(--accent);
}
@media (max-width: 768px) {
  .section { border-left-width: 4px; }
}

/* ===== ANIMATIONS & MICRO-INTERACTIONS ===== */
button, .cta-btn, .cookie-banner-button, .service-item, .feature {
  transition: background 0.18s, color 0.18s, box-shadow 0.16s, transform 0.13s;
}

/* ===== RESPONSIVE TYPOGRAPHY FIXES ===== */
@media (max-width: 370px) {
  h1, .section h1 {
    font-size: 1.19rem;
  }
  h2 {
    font-size: 1rem;
  }
}

/* ===== COOKIE CONSENT BANNER & MODAL ===== */
.cookie-banner {
  position: fixed;
  left: 10px; right: 10px;
  bottom: 10px;
  background: #fff;
  color: #222a44;
  z-index: 2000;
  box-shadow: 0 3px 18px rgba(26,34,56,0.17);
  border-radius: var(--radius-lg);
  padding: 18px 28px 16px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 240px;
  max-width: 98vw;
  font-size: 1.07rem;
  animation: slide-in-bottom 0.41s cubic-bezier(.64,0,.36,1);
}
@keyframes slide-in-bottom {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin-bottom: 0;
  line-height: 1.5;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-banner-button {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: .01em;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  padding: 9px 24px;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(157,170,242,0.13);
}
.cookie-banner-button.accept {
  background: var(--accent);
}
.cookie-banner-button.reject {
  background: #F05454;
  color: #fff;
}
.cookie-banner-button.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner-button:focus {
  outline: 2px solid var(--primary);
}
@media (max-width: 568px) {
  .cookie-banner {
    flex-direction: column;
    padding: 13px 10px 9px 10px;
    font-size: .98rem;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 9px;
  }
}

/* COOKIE MODAL OVERLAY - dark semi-transparent overlay */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(26,34,56,0.58);
  z-index: 4000;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in 0.25s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes modal-fade-in {
  from{ opacity:0 } to{ opacity:1 }
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  background: #fff;
  color: #1A2238;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(26,34,56,0.18);
  max-width: 500px;
  width: 98vw;
  padding: 32px 32px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: pop-in 0.23s cubic-bezier(.62,0,1,1.06);
  position: relative;
}
@keyframes pop-in {
  from { transform: scale(0.80); opacity:0.30; }
  to { transform: scale(1); opacity:1; }
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  padding: 8px 0 8px 0;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  width: 1.1em;
  height: 1.1em;
}
.cookie-category .required {
  color: var(--success);
  font-size: .94em;
  margin-left: 5px;
}
.cookie-modal-title {
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  text-transform: uppercase;
  font-size: 1.22rem;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  border: none;
  color: #FFD803;
  font-size: 2rem;
  cursor: pointer;
  z-index: 4100;
  transition: color 0.12s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #F05454;
}
@media (max-width: 768px) {
  .cookie-modal {
    padding: 17px 9px 10px 9px;
    border-radius: var(--radius-md);
  }
}

/* ===== SCROLLBAR FOR VIBRANT FEEL ===== */
::-webkit-scrollbar { width: 10px; background: var(--secondary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 7px; }

/* ===== VIBRANT/ELECTRIC COLOR DECOR ===== */
.section:after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 7px;
  height: 38%;
  background: var(--accent);
  border-radius: 7px 7px 0 0;
  box-shadow: 0 9px 14px rgba(255,216,3,0.07);
}
@media (max-width: 500px) {
  .section:after {
    width: 4px;
    height: 23%;
  }
}

/* ===== SELECTION COLOR ===== */
::selection {
  background: #FFD803;
  color: #1A2238;
}

/* ===== ENSURE NO GRID PROPERTIES OR ABSOLUTE ON CONTENT ===== */
/* All positioning is handled by flex, no grid/column properties used. No content cards use position: absolute. */