/* --- CSS RESET & NORMALIZATION --- */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: #23263a;
  color: #f5f6fa;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
*:focus {
  outline: 2px solid #a58643;
  outline-offset: 1px;
}

/* --- VARIABLES --- */
:root {
  --primary: #313752;
  --secondary: #a58643;
  --accent: #f5f6fa;
  --background-dark: #23263a;
  --background-section: #303349;
  --neon-blue: #6ae0ff;
  --neon-purple: #aa95f8;
  --neon-pink: #ff53a7;
  --neutral-950: #151726;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --radius: 14px;
  --shadow-card: 0 2px 16px 0 rgba(34, 39, 75, 0.18), 0 1.5px 18px 0 rgba(106,224,255,0.07);
  --shadow-card-hover: 0 6px 28px 0 rgba(106,224,255,0.14), 0 1.5px 18px 0 rgba(170,149,248,0.12);
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}


/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #f5f6fa;
  letter-spacing: 0.01em;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height:1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
h4 {
  font-size: 1.06rem;
  margin-bottom: 6px;
}
p, li, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: #e6e9f5;
}
.subheadline {
  color: var(--neon-blue);
  font-size: 1.18rem;
  font-weight: 500;
  margin-bottom: 24px;
}

/* --- BUTTONS ---*/
.cta-primary, .cta-secondary, .cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  outline: none;
  cursor: pointer;
  padding: 12px 34px;
  text-align: center;
  font-size: 1.07rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
  margin-top: 22px;
  box-shadow: 0 1.5px 8px 0 rgba(106,224,255,0.11);
}
.cta-primary {
  background: linear-gradient(90deg, var(--neon-blue) 0%, var(--neon-pink) 80%);
  color: var(--primary);
  box-shadow: 0 2px 20px 0 rgba(106,224,255, 0.18);
  border: 2px solid #292d45;
}
.cta-primary:hover,
.cta-primary:focus {
  background: linear-gradient(90deg, #37e5ff 10%, #ff53a7 90%);
  color: #252942;
  box-shadow: 0 4px 36px 0 rgba(255,83,167,0.19);
}
.cta-secondary {
  background: none;
  color: var(--neon-blue);
  border: 2px solid var(--neon-blue);
  box-shadow: none;
}
.cta-secondary:hover,
.cta-secondary:focus {
  background: var(--neon-blue);
  color: var(--primary);
  box-shadow: 0 2px 20px 0 rgba(106,224,255, 0.09);
}

button.cookie-btn {
  background: var(--primary);
  color: var(--accent);
  border: 2px solid var(--neon-blue);
  margin-right: 16px;
  padding: 8px 28px;
}
button.cookie-btn:hover,
button.cookie-btn:focus {
  color: var(--primary);
  background: var(--neon-blue);
  border-color: var(--neon-pink);
}


/* --- HEADER/NAV ---*/
header {
  width: 100%;
  background: #17182e;
  border-bottom: 1.5px solid #292d45;
  box-shadow: 0 2px 16px 0 rgba(41,45,69,0.03);
  z-index: 100;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
header a img {
  height: 46px;
  width: auto;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
header nav a {
  color: #c5caf7;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.18s, background 0.2s;
}
header nav a:hover,
header nav a:focus {
  color: var(--neon-blue);
  background: #232951;
}
header .cta-primary {
  margin-left: 26px;
}


/* --- MAIN LAYOUT & SECTION SPACING ---*/
main {
  width: 100%;
  z-index: 1;
}
.section,
.hero, .about, .features, .testimonials, .services, .contact {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--background-section);
  box-shadow: var(--shadow-card);
}
.section:last-child,
.about:last-child, .features:last-child, .services:last-child {
  margin-bottom: 0;
}
.container .content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}


/* --- HERO ---*/
.hero {
  background: linear-gradient(120deg, #171a30 22%, #343890 100%);
  box-shadow: 0 3px 22px 3px rgba(106,224,255,0.09);
  border-radius: var(--radius);
  padding: 52px 20px 64px 20px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 38px;
}
.hero:before {
  content: '';
  position: absolute;
  right: -90px;
  top: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 60%, var(--neon-blue) 0%, rgba(106,224,255,0) 75%);
  opacity: 0.45;
  z-index: 0;
}
.hero .container, .hero .content-wrapper {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 2.7rem;
  background: linear-gradient(93deg, var(--neon-blue) 0%, var(--neon-pink) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: #e2ecff;
  font-size: 1.15rem;
}


/* --- FLEX LAYOUT PATTERNS & SPACING --- */
.feature-grid, .features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 14px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 260px;
  background: #20223c;
  border: 1.5px solid #2d3170;
  border-radius: var(--radius);
  padding: 22px 24px 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), border-color .16s, background .16s;
  position: relative;
}
.feature-item img {
  height: 44px;
  margin-bottom: 3px;
  filter: drop-shadow(0 0 8px var(--neon-blue));
}
.feature-item h3 {
  color: var(--neon-blue);
}
.feature-item:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--neon-blue);
  background: #24265e;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 22px;
  background: #22254d;
  transition: box-shadow var(--transition), background .18s;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  background: #283073;
}
.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: center;
  gap: 20px;
  padding: 20px 30px;
  margin: 24px 0 0 0;
  border-radius: var(--radius);
  background: #f5f6fa;
  color: #23263a;
  box-shadow: 0 2px 12px 0 rgba(106,224,255,0.08);
  border-left: 5px solid var(--neon-blue);
}
.testimonial-card p {
  color: #23263a;
  font-size: 1.12rem;
  line-height: 1.7;
  margin-bottom: 4px;
}
.testimonial-card span {
  color: var(--primary);
  font-size: 1rem;
  font-family: var(--font-body);
  opacity: 0.83;
}

.feature-item:not(:last-child), .card:not(:last-child), .testimonial-card:not(:last-child) {
  margin-right: 0;
  margin-bottom: 20px;
}

.services ul,
.features ul,
.about ul,
.contact ul {
  margin-left: 0;
  padding-left: 20px;
}
.services ul li,
.features ul li,
.about ul li,
.contact ul li,
.features ol li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 0;
}
.features ol {
  margin-bottom: 18px;
}


/* --- ABOUT SECTIONS --- */
.about {
  background: linear-gradient(110deg, #24285a 70%, #222450 120%);
}
.about h2, .about h3, .about h1 {
  color: var(--neon-purple);
}
.about a.cta-secondary {
  margin-top: 10px;
  font-size: 1rem;
}

/* --- SERVICES/BLOG/INSPIRACJE --- */
.services, .contact {
  background: linear-gradient(107deg, #1e2145 78%, #252c54 110%);
}
.services .cta-primary,
.services .cta-secondary {
  margin-top: 24px;
}
.contact ul li, .about ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #d6d7ed;
}
.contact ul img, .about ul img {
  width: 28px;
  height: 28px;
  filter: brightness(1.3) drop-shadow(0 0 6px var(--neon-blue));
}
.map-location {
  background: #2f335c;
  border-radius: 10px;
  margin: 13px 0;
  padding: 14px 16px 13px 16px;
  font-size: 0.98rem;
  color: var(--neon-blue);
  box-shadow: 0 2px 12px 0 rgba(106,224,255,0.09);
}

/* --- FOOTER --- */
footer {
  background: #151726;
  color: #e6e9f5;
  padding: 44px 0 18px 0;
  width: 100%;
  margin-top: 60px;
  border-top: 1.5px solid #232651;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-brand {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-brand img {
  height: 35px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--neon-blue);
  font-size: 0.98rem;
  transition: color .2s;
}
.footer-links a:hover,
.footer-links a:focus {
  color: var(--neon-pink);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.96rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 11px;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  filter: brightness(1.1) drop-shadow(0 0 4px var(--neon-blue));
}


/* --- MOBILE MENU & BURGER --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 24px;
  right: 26px;
  z-index: 220;
  border: none;
  background: linear-gradient(90deg, var(--neon-pink) 18%, var(--neon-blue) 90%);
  color: #23263a;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  font-size: 2.1rem;
  line-height: 54px;
  box-shadow: 0 2px 12px 1.5px rgba(255,83,167,0.18), 0 1.5px 12px 0 rgba(106,224,255,0.14);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .17s, color .16s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: linear-gradient(88deg, var(--neon-blue) 10%, var(--neon-pink) 87%);
  color: #23263a;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,40,90,0.92);
  z-index: 300;
  transform: translateX(-100vw);
  transition: transform .36s cubic-bezier(.87,-0.38,.53,1.31);
  box-shadow: 0 8px 36px 0 rgba(106,224,255, 0.13);
  padding: 0;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .32s cubic-bezier(.57,-0.24,.54,1.18);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 36px 14px 0;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--neon-blue);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .14s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(170,149,248, 0.13);
  color: var(--neon-pink);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 13px;
  padding-left: 34px;
  margin-top: 12px;
}
.mobile-nav a {
  color: #e2ecff;
  padding: 11px 5px 12px 0;
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 8px;
  transition: color .2s, background .14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--neon-blue);
  background: rgba(16,19,53,0.14);
}

/* --- COOKIE BANNER --- */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 500;
  background: linear-gradient(89deg, #2a2b4b 35%, #1e2244 100%);
  color: #f5f6fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 24px 34px 20px 34px;
  box-shadow: 0 -2px 32px 0 rgba(106,224,255,0.19);
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
  transition: opacity .33s cubic-bezier(.54,1.38,.48,1), transform .33s;
}
#cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
#cookie-banner p {
  font-size: 1.07rem;
  flex: 1 1 250px;
  max-width: 540px;
  margin-right: 18px;
  color: #e4e7f2;
}
#cookie-banner .cookie-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- COOKIE MODAL --- */
#cookie-modal {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(28, 31, 62, 0.94);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity .28s cubic-bezier(.54,1.38,.48,1);
}
#cookie-modal.show {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}
#cookie-modal .cookie-modal-content {
  background: #23263a;
  color: #eeeef6;
  border-radius: 16px;
  padding: 42px 36px 30px 36px;
  min-width: 320px;
  max-width: 98vw;
  box-shadow: 0 8px 42px 0 rgba(106,224,255,0.22);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
  position: relative;
  border: 2.5px solid var(--neon-blue);
}
#cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 24px;
  background: none;
  border: none;
  color: var(--neon-pink);
  font-size: 2rem;
  border-radius: 30px;
  transition: background .14s;
}
#cookie-modal .cookie-modal-close:hover,
#cookie-modal .cookie-modal-close:focus {
  background: rgba(255,244,250, 0.1);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.08rem;
  margin: 11px 0 0 0;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--neon-blue);
  width: 21px;
  height: 21px;
}
.cookie-category .locked {
  color: var(--neon-blue);
  font-size: 1rem;
  margin-left: 10px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1050px) {
  .container {
    max-width: 900px;
  }
  header .container {
    height: auto;
    flex-wrap: wrap;
    gap: 16px;
  }
  .hero h1 {
    font-size: 2.05rem;
  }
  h2 { font-size: 1.5rem; }
}
@media (max-width: 900px) {
  .container {
    max-width: 96vw;
  }
  .footer-links {
    gap: 10px;
    flex-wrap: wrap;
  }
  .card-container, .feature-grid {
    flex-direction: column;
    gap: 24px;
  }
  .feature-item {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .section, .hero, .about, .features, .testimonials, .services,.contact {
    padding: 24px 8px;
    border-radius: 12px;
  }
  .hero {
    padding: 35px 8px 38px 8px;
    margin-top: 22px;
  }
  .container {
    padding: 0 7px;
  }
  header .container,
  footer .container {
    flex-direction: column;
    gap: 14px !important;
    align-items: flex-start !important;
    height: auto;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .section, .about, .features, .testimonials, .services, .contact {
    margin-bottom: 43px;
  }
  .content-grid,
  .feature-grid,
  .card-container,
  .footer-links {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card {
    padding: 17px 7px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item, .card {
    min-width: 0;
    padding: 16px 9px 14px 14px;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.46rem;
    padding-right: 6px;
  }
  h2 {
    font-size: 1.1rem;
  }
  .cta-primary, .cta-secondary, .cookie-btn {
    font-size: 0.95rem;
    padding: 7px 16px;
  }
  .footer-brand img {
    height: 26px;
  }
  .mobile-nav a {
    font-size: 1.07rem;
  }
  #cookie-banner {
    flex-direction: column;
    padding: 11px 8px;
    gap: 14px;
  }
  #cookie-banner p {
    max-width: 100vw;
    font-size: 0.99rem;
    margin-right: 0;
  }
  #cookie-banner .cookie-btns {
    gap: 8px;
  }
  #cookie-modal .cookie-modal-content {
    min-width: 92vw;
    padding: 23px 9px 28px 9px;
  }
}

/* ---- Animations/Microinteractions ---- */
.cta-primary, .cta-secondary, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background .19s, color .17s, box-shadow .19s;
}
.cta-primary:active, .cta-secondary:active, .cookie-btn:active {
  transform: scale(0.96);
}
.feature-item, .card, .testimonial-card {
  will-change: box-shadow, border-color, background;
}
.feature-item, .card {
  transition: box-shadow .18s, background .17s, border-color .14s;
}

/* ---- Avoid Overlap ---- */
.section + .section, .about + .features, .features + .about, .features + .testimonials, .about + .testimonials {
  margin-top: 24px;
}
.testimonials .testimonial-card:not(:last-child) {
  margin-bottom: 16px;
}
.feature-grid .feature-item:not(:last-child) {
  margin-bottom: 24px;
}

/* --- END --- */
