/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-primary: #4F46E5;
  --c-primary-dark: #3730A3;
  --c-primary-light: #EEF2FF;
  --c-text: #111827;
  --c-text-muted: #6B7280;
  --c-border: #E5E7EB;
  --c-bg: #FFFFFF;
  --c-bg-gray: #F9FAFB;
  --c-success: #16A34A;
  --c-error: #DC2626;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.05);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.10);
  --max-w: 1160px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn--primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); }

.btn--outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn--outline:hover { background: var(--c-primary-light); }

.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--full { width: 100%; }

/* === HEADER === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -.4px;
}
.logo span { color: var(--c-primary); }
.logo--white { color: #fff; }
.logo--white span { color: #A5B4FC; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a:not(.btn) { font-size: 15px; font-weight: 500; color: var(--c-text-muted); transition: color .15s; }
.nav a:not(.btn):hover { color: var(--c-text); }
.nav .btn--primary { color: #fff; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all .2s;
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #F8F9FF 0%, #EEF2FF 100%);
  padding: 80px 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__label {
  display: inline-block;
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero__content h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.8px;
  margin-bottom: 20px;
}

.hero__desc {
  font-size: 17px;
  color: var(--c-text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__photo {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

/* === SECTION === */
.section { padding: 80px 0; }
.section--gray { background: var(--c-bg-gray); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* === CARDS === */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.card__icon {
  width: 52px;
  height: 52px;
  background: var(--c-primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--c-text-muted); line-height: 1.65; }

/* === ABOUT === */
.about__centered {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.about__centered h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 16px;
}

.about__centered p {
  color: var(--c-text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.check-list {
  list-style: none;
  margin-bottom: 28px;
  text-align: left;
}
.check-list li {
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: 15px;
  color: var(--c-text-muted);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  background: var(--c-primary-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%234F46E5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.check-list--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* === CITIES === */
.cities-subtitle {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--c-text);
  margin: 8px 0 20px;
}
.cities-subtitle:not(:first-of-type) { margin-top: 40px; }

.cities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.cities-grid + .cities-subtitle { margin-top: 40px; }

/* Zwijana lista miast: jeden rząd + reszta po rozwinięciu */
.cities-grid--collapsible {
  position: relative;
  max-height: 42px;
  overflow: hidden;
  transition: max-height .35s ease;
}
.cities-grid--collapsible.expanded {
  max-height: 2000px;
}
.cities-grid--collapsible:not(.expanded)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--c-bg));
  pointer-events: none;
}

.cities-toggle-wrap {
  text-align: center;
  margin-top: 20px;
}

.city-link {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  transition: all .15s;
}
.city-link:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

/* === CONTACT === */
.contact-cta {
  max-width: 440px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 18px 22px;
  text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.contact-card + .contact-card { margin-top: 12px; }
.contact-card:hover {
  border-color: var(--c-primary);
  box-shadow: 0 6px 20px rgba(79,70,229,.12);
  transform: translateY(-2px);
}

.contact-card__icon {
  width: 52px;
  height: 52px;
  background: var(--c-primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.contact-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.contact-card__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: .2px;
  word-break: break-word;
}
.contact-card:hover .contact-card__value { color: var(--c-primary-dark); }

.contact-note { margin-top: 18px; text-align: center; }
.contact-note p { font-size: 14px; color: var(--c-text-muted); margin-bottom: 4px; }

.contact-form {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
}

.form-group input,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  color: var(--c-text);
  background: #fff;
  transition: border-color .15s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--c-error);
}

.form-group textarea { resize: vertical; }

.form-group--checkbox { margin-bottom: 20px; }

.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 13px;
  color: var(--c-text-muted);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--c-primary);
}

.checkbox-label a { color: var(--c-primary); text-decoration: underline; }

.form-msg {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}
.form-msg--success { background: #DCFCE7; color: var(--c-success); }
.form-msg--error { background: #FEE2E2; color: var(--c-error); }

/* === LEGAL === */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.5px; margin-bottom: 16px; }
.legal h2 { font-size: 20px; font-weight: 600; margin: 32px 0 10px; }
.legal p { color: var(--c-text-muted); line-height: 1.75; margin-bottom: 12px; }
.legal a { color: var(--c-primary); text-decoration: underline; }
.legal__intro { font-size: 17px; }
.legal__note {
  background: var(--c-primary-light);
  border-left: 3px solid var(--c-primary);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}
.legal__back { margin-top: 32px; }
.legal__back a { text-decoration: none; }

/* === FOOTER === */
.footer {
  background: #0F172A;
  color: #94A3B8;
  padding-top: 60px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer__phone {
  display: inline-block;
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.footer__phone:hover { color: #A5B4FC; }

.footer__email {
  display: inline-block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #94A3B8;
}
.footer__email:hover { color: #fff; }

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links strong {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  margin-bottom: 4px;
}
.footer__links a { font-size: 14px; transition: color .15s; }
.footer__links a:hover { color: #fff; }

.footer__bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 9999;
  font-size: 13px;
  color: var(--c-text-muted);
  transition: opacity .3s, transform .3s;
}

.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

/* === HERO LOCAL === */
.hero--local {
  padding: 64px 0;
  background: linear-gradient(135deg, #F8F9FF 0%, #EEF2FF 100%);
}

.hero__local-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.hero__local-content h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.8px;
  margin-bottom: 20px;
  color: var(--c-text);
}

.hero__city {
  color: var(--c-primary);
}

.hero__local-content .hero__desc {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
}

.hero__local-content .hero__cta {
  justify-content: center;
}

/* === BREADCRUMB === */
.breadcrumb {
  padding: 10px 0;
  background: var(--c-bg-gray);
  border-bottom: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-text-muted);
}
.breadcrumb a { color: var(--c-text-muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb span { color: var(--c-text); }

/* === LOCAL INTRO === */
.local-intro { max-width: 760px; margin: 0 auto; }
.local-intro h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.4px; margin-bottom: 16px; }
.local-intro p { color: var(--c-text-muted); margin-bottom: 14px; line-height: 1.75; }

/* === WHY GRID === */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.why-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 24px;
}
.why-item strong { display: block; font-size: 16px; margin-bottom: 8px; }
.why-item p { font-size: 14px; color: var(--c-text-muted); line-height: 1.65; }

/* === FAQ === */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }

.faq__item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  overflow: hidden;
}

.faq__item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--c-primary);
  font-weight: 300;
  line-height: 1;
}
.faq__item[open] summary::after { content: '−'; }

.faq__item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__img { order: -1; }
  .hero__photo { min-height: 220px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav.open .btn--primary {
    width: 100%;
    margin-top: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 16px;
  }
  .burger { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .check-list--two-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 56px 0; }
  .section { padding: 56px 0; }
  .contact-form { padding: 20px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
