/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 18px;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #e2e8f0;
  background: #0f172a24;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.437) 0%, rgba(15, 23, 42, 0.513) 100%), url(assets/background.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --header-h: 64px;
  --container: min(100% - 2rem, 1100px);
  --container-pad: 1.25rem;
  --section-gap: 1.5rem;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --cta-bg: #ffffff;
  --cta-text: #0f172a;
  --cta-glow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 6px 28px rgba(255, 255, 255, 0.25);
  --touch-min: 48px;
  --text-sm: 0.95rem;
  --text-base: 1.05rem;
  --text-lg: 1.2rem;
  --text-xl: 1.4rem;
  --text-2xl: 1.65rem;
  --text-3xl: 2rem;
  --bg-card: rgba(30, 41, 59, 0.9);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --card-bg: var(--bg-card);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ===== LAYOUT ===== */
#main-content { flex: 1; }
body.no-scroll { overflow: hidden; }

/* ===== HEADER ===== */
.header { position: sticky; top: 0; z-index: 100; background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  gap: 1rem;
}
.nav--glass { background: transparent; }

.logo {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 700;
  font-size: var(--text-lg);
}
.logo:hover { text-decoration: none; opacity: 0.9; }
.logo img { height: 60px; width: auto; object-fit: contain; }

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--touch-min);
  height: var(--touch-min);
  padding: 10px;
  background: none;
  border: none;
  color: #fff;
  border-radius: var(--radius-sm);
}
.burger:hover { background: rgba(255, 255, 255, 0.08); }
.burger-bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger[aria-expanded="true"] .burger-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Menu desktop – widoczne tylko na dużych ekranach */
.menu-desktop {
  display: none;
}

/* Menu mobile – pełnoekranowy overlay (z-index poniżej headera, żeby burger był klikalny) */
.menu-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: calc(var(--header-h) + 1rem) 1.5rem 1.5rem;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-y: auto;
}
.menu-mobile.is-open {
  display: flex;
}

.menu-mobile .menu__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 20rem;
  padding: 1rem 1.25rem;
  min-height: var(--touch-min);
  font-size: var(--text-base);
  font-weight: 500;
  color: #fff;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.menu-mobile .menu__link:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }
.menu-mobile .menu__link--active { background: rgba(255, 255, 255, 0.12); }

.menu-desktop .menu__link {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  min-height: var(--touch-min);
  font-size: var(--text-base);
  font-weight: 500;
  color: #fff;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.menu-desktop .menu__link:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.menu__link--active { background: rgba(255, 255, 255, 0.12); font-weight: 600; }
.menu__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== MAIN – HOMEPAGE ===== */
.main {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad) var(--section-gap);
}
@media (max-width: 699px) {
  .main {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(55vh, 420px);
  padding: var(--section-gap) 0;
  text-align: center;
}
@media (max-width: 699px) {
  .hero-section { padding-left: 0; padding-right: 0; }
}
.hero-section__inner {
  max-width: 36rem;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
@media (max-width: 699px) {
  .hero-section__inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }
}
.hero__badge {
  margin: 0 0 0.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero__lead {
  margin: 0 0 1.5rem;
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hero__cta-note {
  margin: 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
}
.btn--large {
  padding: 1.2rem 2.25rem;
  font-size: 1.2rem;
}

/* CTA – maksymalny kontrast, natychmiastowe „kliknij” */
.btn--cta-hero,
.btn--cta {
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  min-height: 56px;
  padding: 0.9rem 1.75rem;
  font-size: 1.1rem;
}
.btn--cta-hero {
  box-shadow: var(--cta-glow);
  padding: 1.2rem 2.5rem;
}
.btn--cta-hero:hover,
.btn--cta:hover {
  background: #f1f5f9;
  color: var(--cta-text);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.35);
}
.hero-section .btn--cta-hero { min-height: 64px; }

.why-section .btn--cta {
  display: block;
  text-align: center;
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
}

/* Sekcja Dlaczego my */
.why-section {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-gap) var(--container-pad);
}
@media (max-width: 699px) {
  .why-section {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
}
.why-section__inner {
  padding: 1.75rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--card-shadow);
}
@media (max-width: 699px) {
  .why-section__inner {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
.why-section__title {
  margin: 0 0 0.5rem;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.why-section__lead {
  margin: 0 0 1.5rem;
  font-size: var(--text-base);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.why-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.why-list li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-primary);
}
.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Sekcja opinii (dowód społeczny) */
.testimonials {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-gap) var(--container-pad);
}
@media (max-width: 699px) {
  .testimonials {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
}
.testimonials__inner {
  padding: 1.75rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--card-shadow);
}
@media (max-width: 699px) {
  .testimonials__inner {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
.testimonials__title {
  margin: 0 0 0.5rem;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.testimonials__lead {
  margin: 0 0 1.5rem;
  font-size: var(--text-base);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.testimonials__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .testimonials__list { grid-template-columns: repeat(3, 1fr); }
}
.testimonial {
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.testimonial__quote {
  margin: 0 0 1rem;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-primary);
  font-style: italic;
}
.testimonial__author {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 500;
}

.cards-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--section-gap);
}
@media (max-width: 699px) {
  .cards-wrap { padding-left: 0; padding-right: 0; }
}
@media (min-width: 700px) {
  .cards-wrap { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
@media (max-width: 699px) {
  .card { border-radius: 0; }
}
.card__inner {
  flex: 1;
  padding: 1.5rem;
  background: var(--card-bg);
  color: var(--text-primary);
  border-radius: var(--radius);
  border: 1px solid var(--bg-card-border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (max-width: 699px) {
  .card__inner {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
.card__title {
  margin: 0 0 0.5rem;
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
}
.card__text {
  margin: 0 0 1rem;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
  flex: 1;
}
.card__contact {
  margin: 0 0 0.75rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}
.card__contact a { color: var(--accent); }
.card__contact a:hover { text-decoration: underline; }
.card__btn {
  width: 100%;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.card__btn + .card__btn { margin-top: 0.5rem; }
.card__btn:hover { background: rgba(255, 255, 255, 0.18); text-decoration: none; }
.card__inner .btn--cta.card__btn { background: var(--cta-bg); color: var(--cta-text); font-weight: 700; border: none; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3); }
.card__inner .btn--cta.card__btn:hover { background: #f1f5f9; color: var(--cta-text); box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2); }

/* ===== FOOTER ===== */
.footer {
  margin-top: auto;
  padding: 1.25rem var(--container-pad);
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 699px) {
  .footer { padding-left: 1.25rem; padding-right: 1.25rem; }
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}
.footer__copy { margin: 0 0 0.25rem; }
.footer__links { margin: 0; }
.footer__links a { color: rgba(255, 255, 255, 0.9); }
.footer__links a:hover { text-decoration: underline; }
.footer__links [aria-hidden="true"] { opacity: 0.5; margin: 0 0.35rem; }

/* ===== DESKTOP NAV ===== */
@media (min-width: 768px) {
  :root { --header-h: 72px; }
  .burger { display: none; }
  .menu-desktop {
    display: flex;
    flex-direction: row;
    background: none;
    padding: 0;
    gap: 0.25rem;
  }
  .menu-desktop .menu__link {
    padding: 0.5rem 1rem;
    min-height: auto;
  }
  .menu-mobile {
    display: none !important;
  }
}

/* ===== BUTTONS (global) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 600;
  transition: background-color var(--transition), color var(--transition);
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: #0f172a;
}
.btn--primary:hover { background: var(--accent-hover); color: #0f172a; text-decoration: none; }
.btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn--secondary:hover { background: rgba(255, 255, 255, 0.16); text-decoration: none; }
.btn--ghost { background: transparent; color: rgba(255, 255, 255, 0.9); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; }

/* ===== SUBPAGES (page layout) ===== */
.page {
  display: block;
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-gap) var(--container-pad) 2rem;
}
@media (max-width: 699px) {
  .page {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
}
.page__content { margin: 0; }
@media (max-width: 699px) {
  .page__content { padding-left: 0; padding-right: 0; }
}
.page__header { margin-bottom: 1.5rem; padding-left: var(--container-pad); padding-right: var(--container-pad); }
@media (max-width: 699px) {
  .page__header { padding-left: 1.25rem; padding-right: 1.25rem; }
}
.page__title {
  margin: 0 0 0.5rem;
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}
.page__lead {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.content-block {
  margin-bottom: var(--section-gap);
  padding: 1.5rem;
  background: var(--card-bg);
  color: var(--text-primary);
  border-radius: var(--radius);
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--card-shadow);
}
@media (max-width: 699px) {
  .content-block {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
.content-block h2 {
  margin: 0 0 0.5rem;
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
}
.content-block h3 { margin: 0 0 0.25rem; font-size: var(--text-base); font-weight: 600; color: var(--text-muted); }
.content-block p {
  margin: 0 0 0.5rem;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--text-muted);
}
.content-block p:last-child { margin-bottom: 0; }
.content-block ul { margin: 0 0 0.5rem; }
.content-block .services-list { margin-bottom: 0; }

.content-block--cta {
  text-align: center;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}
.content-block--cta h2 { color: #fff; }
.content-block--cta p { color: var(--text-muted); }
.content-block--cta .btn { margin: 0.35rem; }

.services-list { display: flex; flex-direction: column; gap: 0.4rem; }
.services-list li {
  padding-left: 1.25rem;
  position: relative;
  font-size: var(--text-base);
  color: var(--text-muted);
}
.services-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.values-list { list-style: none; padding: 0; margin: 0; }
.values-list li {
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-muted);
}
.values-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-info__grid { display: grid; gap: 1rem; margin-top: 0.75rem; }
.contact-info__item h3 { margin-bottom: 0.2rem; color: #fff; }
.contact-info__item p { margin-bottom: 0.2rem; font-size: var(--text-base); color: var(--text-muted); }
.contact-info__item a { color: var(--accent); }
.contact-info__note { font-size: var(--text-sm); color: var(--text-muted); opacity: 0.9; }
@media (min-width: 600px) { .contact-info__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .contact-info__grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== FORM ===== */
.form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.form label { display: block; font-size: var(--text-base); font-weight: 500; margin-bottom: 0.2rem; color: var(--text-primary); }
.form input,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: var(--text-base);
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form input::placeholder,
.form textarea::placeholder { color: var(--text-muted); }
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}
.form textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.form--page { max-width: 28rem; margin-left: auto; margin-right: auto; }

/* ===== PRICING TABLE ===== */
.pricing-table-wrap { overflow-x: auto; margin: 1.25rem 0; }
.pricing-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: var(--text-base);
  color: var(--text-primary);
}
.pricing-table th,
.pricing-table td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.pricing-table th {
  font-weight: 600;
  background: rgba(15, 23, 42, 0.5);
  color: var(--text-primary);
}
.pricing-table tbody tr:hover { background: rgba(15, 23, 42, 0.35); }
.pricing-table td:last-child { white-space: nowrap; color: var(--accent); font-weight: 500; }
.pricing-note { font-size: var(--text-sm); color: var(--text-muted); margin-top: 0.75rem; }

/* ===== FOCUS & REDUCED MOTION ===== */
.btn:focus-visible,
.form input:focus-visible,
.form textarea:focus-visible,
.form button:focus-visible,
.menu__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn--cta:focus-visible,
.btn--cta-hero:focus-visible {
  outline-color: var(--cta-text);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .burger-bar { transition: none; }
  .btn, .menu__link { transition: none; }
  .form input, .form textarea { transition: none; }
}
