/* ── BASE.CSS — wspólne style dla Sylabki i Bajkowej Chatki ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, .logo-text, .nav-link, .btn, .chip,
.section-label, .section-title, .hero-badge,
.value-item, .offer-card h3, .contact-card h3 {
  font-family: 'Nunito', sans-serif;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 10px 10px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  z-index: 9999;
  transition: top .15s;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ── FOCUS STYLES ── */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}


/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  padding: 0 40px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px var(--nav-shadow);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  margin-right: 36px;
  text-decoration: none;
}

.logo-block {
  border-radius: 9px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 9px;
  transition: transform .2s;
}

.nav-logo:hover .logo-block { transform: translateY(-2px); }

.nav-links {
  display: flex;
  gap: 0;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  padding: 18px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ── HERO ── */
.hero {
  background: var(--primary);
  color: var(--white);
  padding: 64px 40px 56px;
  display: flex;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--hero-bubble1);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 30%;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: var(--hero-bubble2);
}

.hero-content {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.hero-badge {
  background: var(--highlight);
  color: var(--highlight-text);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero h1 span { color: var(--accent); }

.hero-subtitle {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 28px;
  max-width: 480px;
  line-height: 1.7;
  min-height: 3.4em;
}

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 28px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: #fff; }

.hero-card {
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 24px 28px;
  text-align: center;
  min-width: 180px;
  position: relative;
  z-index: 1;
}

.hero-card-label {
  font-size: 11px;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  font-weight: 600;
}

.hero-card-value {
  font-size: 26px;
  font-weight: 900;
  color: var(--highlight);
  line-height: 1.1;
}

.hero-card-sub {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
}

/* ── CHIPS BAR ── */
.chips-bar {
  background: var(--accent);
  padding: 14px 40px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.chip {
  background: rgba(255,255,255,0.20);
  color: #fff;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 12.5px;
  font-weight: 700;
}

/* ── SECTIONS ── */
section { padding: 56px 40px; }
section:nth-child(even) { background: var(--white); }

.section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--highlight), transparent);
  border-radius: 2px;
}

/* ── OFFER CARDS ── */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.offer-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 24px;
  border: 1.5px solid var(--card-border);
  transition: transform .2s, box-shadow .2s;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--card-shadow);
}

.offer-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 22px;
}

.ic-primary  { background: var(--ic-primary); }
.ic-accent   { background: var(--ic-accent); }
.ic-highlight{ background: var(--ic-highlight); }

.offer-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.offer-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.about-text p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.8;
}

.about-text p strong { color: var(--primary); font-weight: 700; }

.values-list { display: flex; flex-direction: column; gap: 10px; }

.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--primary-light);
  border-radius: 10px;
  border-left: 4px solid var(--primary);
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}

.value-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── STATUTE ── */
.statute-box {
  background: var(--primary-light);
  border: 2px dashed var(--card-border);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.statute-icon { font-size: 48px; margin-bottom: 16px; }

.statute-box h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.statute-box p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-card {
  background: var(--primary);
  color: var(--white);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--highlight);
  text-align: center;
}

.contact-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 22px;
  width: 100%;
}

.contact-row:last-child { margin-bottom: 0; }

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-info-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.80;
  margin-bottom: 2px;
  font-weight: 700;
  text-align: center;
}

.contact-info-value {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.contact-info-value a { color: #fff; text-decoration: none; }
.contact-info-value a:hover { text-decoration: underline; }

.map-placeholder {
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  border: 1.5px solid var(--card-border);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.map-placeholder .map-icon { font-size: 36px; }
.map-placeholder strong { color: var(--primary); font-weight: 800; font-size: 15px; }

/* ── FOOTER ── */
footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.80);
  text-align: center;
  padding: 20px 40px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

footer a { color: rgba(255,255,255,0.90); text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--accent); }

.footer-logo { display: flex; align-items: center; gap: 4px; }
.footer-logo .logo-block { width: 22px; height: 22px; border-radius: 6px; font-size: 7px; }

/* ── HAMBURGER ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--card-border);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}

.nav-toggle:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .25s, opacity .25s, width .25s;
}

.nav-toggle.open { background: var(--primary-light); border-color: var(--primary); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── TABLET 720px ── */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  nav {
    padding: 0 16px;
    position: sticky;
    top: 0;
    flex-wrap: nowrap;
    height: 58px;
  }

  .nav-logo { margin-right: auto; }

  .nav-links {
    display: none;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 2px solid var(--accent);
    border-bottom: 3px solid var(--primary);
    flex-direction: column;
    padding: 4px 16px 12px;
    gap: 0;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  }

  .nav-links.open { display: flex; }

  .nav-links li { list-style: none; }

  .nav-link {
    display: block;
    padding: 13px 12px;
    border-bottom: 1px solid var(--card-border);
    border-left: none;
    margin-bottom: 0;
    font-size: 14px;
    border-radius: 8px;
    margin: 2px 0;
  }

  .nav-links li:last-child .nav-link { border-bottom: none; }

  .nav-link:hover, .nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
    border-bottom-color: var(--card-border);
    border-left: none;
    padding-left: 12px;
  }

  .hero {
    flex-direction: column;
    padding: 40px 20px;
    gap: 28px;
  }

  .hero h1 { font-size: 30px; }

  .hero-card { width: 100%; min-width: unset; }

  section { padding: 40px 20px; }

  .chips-bar {
    padding: 12px 16px;
    gap: 8px;
  }

  .chip { font-size: 12px; padding: 4px 12px; }

  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .offer-grid[style*="repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  .section-title { font-size: 22px; }

  footer {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
    gap: 6px;
  }
}

/* ── MOBILE 480px ── */
@media (max-width: 480px) {

  .hero { padding: 32px 16px; gap: 24px; }
  .hero h1 { font-size: 26px; }
  .hero-subtitle { font-size: 14px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { text-align: center; }

  section { padding: 32px 16px; }
  .chips-bar { padding: 10px 16px; }

  .offer-grid {
    grid-template-columns: 1fr !important;
  }

  .section-title { font-size: 20px; gap: 8px; }
  .statute-box { padding: 24px 16px; }
  .contact-card { padding: 24px 16px; }
}

/* ── MOBILE 360px ── */
@media (max-width: 380px) {
  .nav-logo { margin-right: 12px; }
  .logo-block { width: 28px; height: 28px; font-size: 8px; }

  .hero { padding: 28px 14px; }
  .hero h1 { font-size: 24px; }
  .hero-card-value { font-size: 22px; }

  .btn { padding: 10px 20px; font-size: 13px; }

  section { padding: 28px 14px; }
  .chips-bar { padding: 8px 14px; }
  .chip { font-size: 11px; padding: 4px 10px; }

  .section-title { font-size: 18px; }
  .section-title::after { display: none; }

  .offer-card { padding: 18px; }
  .statute-box { padding: 20px 14px; }

  .contact-card { padding: 20px 14px; }
  .contact-info-value { font-size: 13px; }

  footer { padding: 14px; font-size: 11px; }
  .footer-logo .logo-block { width: 20px; height: 20px; }
}
