/* ===================================================
   AutoEkspert24 CSS | creative_artistic style
   Brand: Nowoczesna, zaufana, kreatywna, czytelna
   Fonts: Montserrat (display), Open Sans (body)
   Main Colors: #163C56 (primary), #E3A112 (secondary), #F6F8FA (accent)
   =================================================== */

/* === CSS RESET === */
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.5;
  background: #F6F8FA;
  color: #163C56;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  transition: background 0.3s;
}
img,svg { max-width:100%; display:block; }
a { text-decoration: none; color: inherit; transition: color .2s; }
ul,ol { list-style-position: inside; }


/* === BRAND FONTS (fallbacks included) === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  color: #163C56;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1.2rem; margin-bottom: 10px; }
p, ul, ol, dl {font-family: 'Open Sans', Arial, Helvetica, sans-serif; font-size: 1rem; margin-bottom: 16px;}


/* === CONTAINER & WRAPPER === */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* === HEADER & NAVIGATION === */
header {
  background: #F6F8FA;
  box-shadow: 0 4px 24px -10px rgba(22,60,86,0.07);
  position: relative;
  z-index: 100;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 74px;
  padding: 10px 0;
}
.header-bar > a img {
  max-height: 48px;
}
.main-nav {
  display: flex;
  gap: 24px;
}
.main-nav a {
  color: #163C56;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E3A112;
  color: #fff;
}
.cta-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  background: #E3A112;
  color: #fff;
  border: none;
  padding: 13px 32px;
  border-radius: 32px;
  font-size: 1.1rem;
  box-shadow: 0 4px 24px -8px rgba(227,161,18,0.13);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background .18s, transform .16s;
  outline: none;
  margin-left: 24px;
  text-shadow: 0 2px 12px rgba(22,60,86,0.05);
}
.cta-btn:hover, .cta-btn:focus {
  background: #163C56;
  color: #E3A112;
  transform: translateY(-2px) scale(1.03);
  box-shadow:0 8px 32px -6px rgba(22,60,86,0.09);
}

@media (max-width: 992px) {
  .main-nav { gap: 14px; }
  .cta-btn {margin-left: 12px; padding:12px 24px; font-size: 1rem;}
}

/* === MOBILE HEADER MENU === */
.mobile-menu-toggle {
  display: none;
  background: #E3A112;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  margin-left: 14px;
  box-shadow:0 2px 16px -2px rgba(227,161,18,0.09);
  cursor: pointer;
  position: absolute;
  right: 28px; top: 20px;
  z-index: 210;
  transition: background .12s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #163C56;
  color: #E3A112;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: #F6F8FA;
  z-index: 500;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.76,-0.13,.26,1.15);
  box-shadow: -6px 0 40px -12px rgba(22,60,86,0.18);
}
.mobile-menu.active { display: flex; transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.3rem;
  color: #163C56;
  border: none;
  margin: 24px 20px 8px 0;
  cursor: pointer;
  transition: color .15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover{
  color: #E3A112;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 32px 0 0 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #163C56;
  font-size: 1.3rem;
  padding: 14px 0 9px 2px;
  border-radius: 8px;
  width: 100%;
  transition: background .2s, color .2s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #E3A112;
  color: #fff;
}
@media (max-width: 1020px) {
  .main-nav, .cta-btn { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1021px) {
  .mobile-menu { display: none !important; }
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(140deg, #E3A112 0%, #F6F8FA 80%);
  min-height: 260px;
  padding-top: 50px;
  border-radius: 0 0 36px 36px;
  box-shadow: 0px 18px 50px -20px rgba(22,60,86,0.13);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 32px;
}
.hero h1 {
  color: #163C56;
  text-shadow: 0 4px 32px rgba(22,60,86,0.07);
  font-size: 2.6rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.25rem;
  color: #333;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  margin-bottom: 16px;
}

/* === SECTION SPACING & CONTAINERS === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 6px 32px -12px rgba(22,60,86,0.10);
}

.features, .process {
  margin-bottom: 60px;
  padding: 40px 0;
  background: #163C56;
  border-radius: 24px;
  color: #fff;
  box-shadow: 0 8px 36px -8px rgba(22,60,86,0.09);
}
.features h2, .process h2, .features strong, .process strong {
  color: #E3A112;
}
.features ul, .process ol {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 20px;
  padding-left: 0;
}
.features ul li, .process ol li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.08rem;
  line-height: 1.7;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: rgba(246,248,250,0.09);
  border-radius: 16px;
  padding: 16px 20px;
}
.features ul li img, .process ol li img, .about ul li img {
  flex-shrink: 0; width: 32px; height: 32px;
  margin-right: 10px;
}

.cta {
  margin-bottom: 60px;
  padding: 40px 0;
  background: #E3A112;
  color: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 36px -10px rgba(227,161,18,0.13);
  text-align: center;
}
.cta .content-wrapper {
  align-items: center;
  gap: 16px;
}
.cta h2 {
  color: #fff;
  font-size: 2rem;
  text-shadow: 0 2px 16px rgba(22,60,86,0.03);
}
.cta-btn {
  margin-left: 0;
  margin-top: 8px;
}

/* === CARDS & FLEX CONTAINERS (MANDATORY PATTERNS) === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 16px -8px rgba(22,60,86,0.12);
  padding: 28px 22px;
  transition: box-shadow .19s, transform .18s;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  flex: 1 1 290px;
}
.card:hover {
  box-shadow: 0 8px 28px -6px rgba(22,60,86,0.18);
  transform: translateY(-3px) scale(1.013);
}
.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;
  margin-bottom: 36px;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
}

/* --- Testimonials --- */
.testimonials {
  padding: 40px 16px;
  background: #fff;
  margin-bottom: 60px;
}
.testimonials h2 { color: #163C56; margin-bottom: 30px; }
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F6F8FA;
  border-radius: 20px;
  box-shadow: 0 2px 12px -8px rgba(22,60,86,0.08);
  margin-bottom: 20px;
  position: relative;
  color: #163C56;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.testimonial-card p {
  margin-bottom: 0;
  font-size: 1.13rem;
  font-style: italic;
}
.testimonial-card span {
  color: #E3A112;
  font-weight: 600;
  margin-left: 8px;
}
.testimonial-card:before {
  content: '\201C';
  font-size: 3.3rem;
  color: #E3A112;
  opacity: .13;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  position: absolute; left: 12px;top: 5px;
  z-index: 1;
}
.testimonial-card p, .testimonial-card span { position: relative; z-index: 2; }

/* === ARTICLE TILES === */
.article-tile {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px -10px #AABFD1;
  padding: 18px 20px 14px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap:10px;
  border-left: 7px solid #E3A112;
  transition: box-shadow .14s;
}
.article-tile:hover {
  box-shadow: 0 6px 32px -8px #E3A11266;
}
.article-tile h3 {
  color: #163C56;
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.article-tile span {
  color: #E3A112;
  font-size: 0.98rem;
  font-weight: 700;
}

/* === PRICING TABLE === */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px -8px #AABFD1;
}
.pricing-table th, .pricing-table td {
  padding: 18px 14px;
  text-align: left;
  font-size: 1.05rem;
  border-bottom: 1px solid #F6F8FA;
}
.pricing-table thead th {
  background: #163C56;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
}
.pricing-table tbody td:last-child {
  color: #E3A112;
  font-weight: 700;
}

/* === FOOTER === */
footer {
  background: #163C56;
  color: #fff;
  padding: 50px 0 15px 0;
  border-radius: 36px 36px 0 0;
  margin-top: 70px;
}
.footer-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-bar > a img {
  max-height: 50px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 5px 0px;
  transition: color .19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #E3A112;
}
.footer-contact {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #fff;
  opacity: 0.93;
  text-align: right;
}
.footer-contact p {margin-bottom: 7px;}
@media (max-width: 900px) {
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-contact { text-align: left; }
}

/* === MISC FLEX LAYOUTS (MANDATORY CLASSNAMES) === */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
}

/* === TEXT SECTIONS === */
.text-section {
  background: #fff;
  padding: 32px 28px 20px 28px;
  border-radius: 28px;
  box-shadow: 0 2px 18px -10px #AABFD1;
  margin-bottom: 32px;
  font-size: 1.1rem;
  color: #163C56;
}
.text-section h2 { margin-top: 18px; color: #E3A112;}
.text-section ul, .text-section ol { margin-left: 18px;margin-bottom: 16px;}
.text-section ul li { margin-bottom: 8px; font-size: 1rem; }
.text-section ul li strong { color: #163C56; }

/* === CALL TO ACTION BUTTON ANIMATION === */
.cta-btn {
  position: relative;
  overflow: hidden;
  transition: background 0.2s, color 0.2s, transform .18s;
}
.cta-btn:after {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(246,248,250,0.32);
  z-index: 1;
  opacity: 0;
  transition: opacity .25s;
}
.cta-btn:active:after {
  opacity: 1;
}

/* === PRICE BADGE FOR SERVICES LISTS === */
.price {
  background: #E3A112;
  color: #fff !important;
  padding: 4px 14px;
  border-radius: 12px;
  margin-left: 20px;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

/* === DL, DT, DD STYLES (FAQ) === */
dt {
  font-weight: 700;
  margin-top: 19px;
  color: #E3A112;
}
dd {
  margin-left: 18px;
  margin-bottom: 12px;
}

/* === DO AND DON'T TIPS BOX === */
.do-and-dont {
  background: #E3A11222;
  color: #163C56;
  border-left: 6px solid #E3A112;
  padding: 16px 22px;
  margin-top: 16px;
  border-radius: 16px;
  font-style: italic;
  font-size: 1.04rem;
}

/* === CONTACT SUMMARY === */
.contact-info-summary {
  background: #163C56;
  color: #fff;
  border-radius: 18px;
  padding: 18px 22px 10px 22px;
  margin-top: 19px;
  opacity: .99;
  font-size: 1.08rem;
}
.contact-info-summary strong { color: #E3A112; }

/* === SERVICE DETAIL === */
.service-detail {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px -10px #AABFD1;
  padding: 20px 20px 14px 20px;
  margin-bottom: 20px;
  border-left: 4px solid #163C56;
}
.service-detail h3 {
  color: #E3A112;
  font-size: 1.12rem;
  margin-bottom: 7px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
}

/* === MODALS (COOKIE SETTINGS) === */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left:0; right:0; top:0; bottom:0;
  background: rgba(22,60,86,0.42);
  z-index: 1800;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active { display: flex; animation: fade-in .22s cubic-bezier(.65,0,.18,1) both; }
@keyframes fade-in {from{opacity:0;} to{opacity:1;}}
.cookie-modal {
  background: #fff;
  color: #163C56;
  padding: 34px 28px;
  border-radius: 26px;
  max-width: 420px;
  width: 95%;
  box-shadow: 0 6px 48px -6px rgba(22,60,86,0.15);
  z-index: 1810;
  position: relative;
}
.cookie-modal h3 {
  color: #E3A112;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 16px;
  font-size: 1.35rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 11px 0 11px 0;
}
.cookie-toggle {
  appearance: none;
  width: 34px; height: 18px;
  background: #AABFD1;
  border-radius: 10px;
  outline: none;
  position: relative;
  transition: background .18s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #E3A112;
}
.cookie-toggle::after {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute; left: 2px; top: 1px;
  box-shadow: 0 2px 4px -2px #E3A11233;
  transition: left .20s;
}
.cookie-toggle:checked::after { left: 16px; }

/* === COOKIE CONSENT BANNER === */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1500;
  width: 100vw;
  background: #F6F8FA;
  color: #163C56;
  box-shadow: 0 -2px 16px -6px #AABFD199;
  padding: 24px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  transition: transform .32s cubic-bezier(.6,0,.18,1);
}
#cookie-banner.hide {
  transform: translateY(120%);
}
#cookie-banner p {
  font-size: 1 rem; 
  margin-bottom: 4px;
  text-align: center;
}
#cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 6px;
  justify-content: center;
  align-items: center;
}
.cookie-btn, .cookie-settings-btn {
  background: #E3A112;
  color: #fff;
  padding: 12px 28px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  transition: background .19s, color .19s;
  box-shadow:0 2px 12px -4px #E3A11290;
}
.cookie-btn.reject {
  background: #163C56;
  color: #fff;
}
.cookie-btn:hover, .cookie-settings-btn:hover {
  background: #fff;
  color: #E3A112;
  border: 2px solid #E3A112;
}
.cookie-settings-btn {
  background: #fff;
  color: #E3A112;
  padding: 12px 18px;
  border: 2px solid #E3A112;
}

/* === THANK YOU SECTION === */
.text-section a.cta-btn {
  display: inline-block;
  margin-top: 24px;
}

/* === MOBILE/RESPONSIVE === */
@media (max-width: 840px) {
  .container { max-width: 98vw;}
  .header-bar {flex-direction: column; align-items: flex-start; gap: 18px;}
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-contact { text-align: left;}
}
@media (max-width: 680px) {
  body { font-size: 15px;}
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .hero h1 { font-size:2.1rem; }
  .content-wrapper, .footer-bar, .main-nav, .mobile-nav, .features ul, .process ol, .card-container, .content-grid, .testimonial-card {
    gap: 12px; flex-direction: column;
  }
  .footer-contact { font-size: 0.99rem; }
  .pricing-table td, .pricing-table th {font-size: 0.94rem; padding: 12px 8px;}
  .hero, .features, .cta, .process, .testimonials, .section, .text-section {padding: 20px 6px;}
}

/* === Artistic and Creative Details === */
h1, h2, .cta-btn, .section, .features, .process, .cta, .testimonial-card, .price, .cookie-btn, .cookie-settings-btn, .mobile-menu-toggle {
  box-shadow: 0 2px 12px -6px #E3A11244, 0 4px 20px -12px #163C5614;
}
blockquote {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #E3A112;
  font-size: 1.2rem;
  border-left: 6px solid #E3A112;
  margin: 22px 0; padding: 12px 0 12px 20px;
}

/* --- Unique Artistic Hover for nav links & others --- */
.main-nav a, .footer-nav a, .mobile-nav a, .cta-btn, .cookie-btn, .cookie-settings-btn {
  position: relative;
}
.main-nav a:after, .footer-nav a:after, .mobile-nav a:after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: #E3A112;
  position: absolute;
  left: 0; bottom: 0;
  transition: width .26s cubic-bezier(.32,.75,.21,1);
}
.main-nav a:hover:after, .footer-nav a:hover:after, .mobile-nav a:hover:after {
  width: 100%;
}

/* === Animations, Micro-interactions === */
.cta-btn, .cookie-btn, .cookie-settings-btn {
  transition: background .18s, color .18s, transform .16s;
}
.cta-btn:hover, .cookie-btn:hover, .cookie-settings-btn:hover {
  transform: scale(1.05) translateY(-2px);
}

/* === Scrollbar Styling === */
html::-webkit-scrollbar { width: 10px; background: #F6F8FA; }
html::-webkit-scrollbar-thumb { background: #E3A112; border-radius: 6px; }

/* === Accessibility === */
a:focus, button:focus, .cta-btn:focus, .main-nav a:focus, .footer-nav a:focus {
  outline: 3px solid #E3A112;
  outline-offset: 2px;
  border-radius: 4px;
}

/* === Prevent Overlapping (Gaps & Margins) === */
.card, .content-wrapper > *, .text-section, .section, .testimonial-card, .article-tile, .service-detail {
  margin-bottom: 20px !important;
}

/* === Artistic Decorative SVG/Wave (Optional background) === */
/* Put a subtle paint stroke SVG pattern on .hero or .cta background (if desired) */

