:root {
  --bg: #f8f2eb;
  --bg-alt: #ffffffcc;
  --primary: #3a2b23;
  --accent: #b98c68;
  --accent-soft: #f3d4b8;
  --text: #2b211b;
  --radius-large: 28px;
  --radius-card: 20px;

  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 24px 70px rgba(0, 0, 0, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #fdf7f0 0%, #f8f2eb 40%, #f3e2d1 100%);
  color: var(--text);
  display: flex;
    flex-direction: column;
}



/* Helpers */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* NAV */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 242, 235, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(58, 43, 35, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  border: none;
  background: none;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  position: relative;
}

.logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 22%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

/* MOBILE NAV */

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px 16px 12px;
  border-top: 1px solid rgba(58, 43, 35, 0.08);
  background: rgba(248, 242, 235, 0.97);
}

.nav-mobile a {
  text-decoration: none;
  text-align: left;
  padding: 4px 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text);
  border: none;
  background: none;
}

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

/* HERO */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(58, 43, 35, 0.08);
}

/* animowane tło w HERO */
.hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 0% 0%, rgba(185, 140, 104, 0.55), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(58, 43, 35, 0.35), transparent 60%);
  mix-blend-mode: multiply;
  opacity: 0.75;
  filter: blur(8px);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -80%;
  background: conic-gradient(
    from 220deg,
    rgba(248, 242, 235, 0.2),
    rgba(185, 140, 104, 0.15),
    rgba(248, 242, 235, 0.2),
    rgba(58, 43, 35, 0.12),
    rgba(248, 242, 235, 0.2)
  );
  opacity: 0.55;
  filter: blur(40px);
  animation: heroGlow 16s linear infinite;
  z-index: -3;
}

@keyframes heroGlow {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 68px 0 80px;
}

.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  margin: 0 0 18px;
}

.hero p {
  max-width: 520px;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 26px;
}

.accent {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(185, 140, 104, 0.35);
}

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

/* BUTTONS */

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease,
    color 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #221712);
  color: #fdfbf8;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fdfbf8, var(--accent));
  color: var(--primary);
  box-shadow: var(--shadow-strong);
  transform: translateY(-1px) scale(1.02);
  border-color: transparent;
}

.btn-outline {
  background: rgba(248, 242, 235, 0.3);
  color: var(--primary);
  border-color: rgba(58, 43, 35, 0.45);
}

.btn-outline:hover {
  background: rgba(58, 43, 35, 0.05);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

/* HERO IMAGE */

.hero-image {
  display: flex;
  justify-content: flex-end;
}

.hero-image-inner {
  width: 260px;
  height: 260px;
  border-radius: 32px;
  background: linear-gradient(
    145deg,
    rgba(249, 244, 238, 0.96),
    rgba(185, 140, 104, 0.7)
  );
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
}

.hero-image-inner::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(253, 251, 248, 0.7);
  background: radial-gradient(
    circle at top left,
    rgba(253, 251, 248, 0.85),
    transparent 60%
  );
  mix-blend-mode: screen;
}

/* SEKCJE */

.section {
  padding: 60px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-block: 1px solid rgba(58, 43, 35, 0.06);
}

.section h1,
.section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  margin: 0 0 14px;
}

.section-intro {
  font-size: 14px;
  max-width: 540px;
  margin: 0 0 24px;
  line-height: 1.7;
}

/* O MARCE */

.about-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.about-card {
  background: linear-gradient(
      145deg,
      rgba(253, 251, 248, 0.96),
      rgba(248, 242, 235, 0.9)
    );
  border-radius: var(--radius-large);
  padding: 20px 22px;
  border: 1px solid rgba(58, 43, 35, 0.1);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(185, 140, 104, 0.18),
    transparent 55%
  );
  opacity: 0.6;
  pointer-events: none;
}

.about-card h3 {
  margin-top: 0;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.about-card ul {
  padding-left: 18px;
  margin: 8px 0 0;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

/* KARTY PRODUKTÓW */

.cards-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.9),
      rgba(248, 242, 235, 0.9)
    );
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(58, 43, 35, 0.1);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transform: translateY(0) translateZ(0);
  transition: transform 200ms ease, box-shadow 200ms ease,
    border-color 200ms ease;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(185, 140, 104, 0.2),
    rgba(255, 255, 255, 0.1),
    rgba(58, 43, 35, 0.25)
  );
  opacity: 0;
  mix-blend-mode: soft-light;
  transition: opacity 200ms ease;
}

.card:hover {
  transform: translateY(-6px) rotate3d(1, -0.6, 0, 6deg);
  box-shadow: var(--shadow-strong);
  border-color: rgba(185, 140, 104, 0.6);
}

.card:hover::before {
  opacity: 0.5;
}

.card-image {
  height: 140px;
}

.card-placeholder {
  background: radial-gradient(
    circle at top left,
    rgba(249, 244, 238, 0.96),
    rgba(185, 140, 104, 0.7)
  );
}

.card-body {
  padding: 16px 18px 18px;
  font-size: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-family: "Playfair Display", Georgia, serif;
}

.card-body p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(58, 43, 35, 0.55);
  background: rgba(248, 242, 235, 0.8);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease,
    box-shadow 150ms ease;
  text-decoration: none;
}

.card-btn::after {
  content: "›";
  font-size: 13px;
}

.card-btn:hover {
  background: var(--primary);
  color: #fdfbf8;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

/* GALERIA */

.gallery-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-item {
  height: 160px;
  border-radius: var(--radius-card);
  background: radial-gradient(
    circle at 0% 0%,
    rgba(248, 242, 235, 0.9),
    rgba(185, 140, 104, 0.6)
  );
  border: 1px solid rgba(58, 43, 35, 0.12);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 255, 255, 0.7),
    transparent 60%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 200ms ease;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-strong);
  border-color: rgba(185, 140, 104, 0.7);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* OPINIE */

.testimonials {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonial {
  margin: 0;
  background: radial-gradient(
    circle at top left,
    rgba(253, 251, 248, 0.96),
    rgba(248, 242, 235, 0.9)
  );
  border-radius: var(--radius-card);
  padding: 16px 18px;
  border: 1px solid rgba(58, 43, 35, 0.1);
  font-size: 14px;
  box-shadow: var(--shadow-soft);
}

.testimonial p {
  margin: 0 0 10px;
}

.testimonial figcaption {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(58, 43, 35, 0.7);
}

/* FAQ */

.faq {
  max-width: 720px;
}

.faq-item {
  background: #fdfbf8;
  border-radius: var(--radius-card);
  border: 1px solid rgba(58, 43, 35, 0.1);
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 8px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
}

.faq-item summary::marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* KONTAKT */

.section-dark {
  background: radial-gradient(circle at top left, #3a2b23, #1e1510);
  color: #fdfbf8;
}

.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.contact-text p {
  font-size: 14px;
  line-height: 1.7;
}

.contact-text a {
  color: #fdfbf8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  background: radial-gradient(
    circle at top left,
    #ffffff,
    #f8f2eb
  );
  color: var(--text);
  border-radius: var(--radius-large);
  padding: 20px 18px;
  border: 1px solid rgba(58, 43, 35, 0.12);
  box-shadow: var(--shadow-strong);
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(243, 212, 184, 0.35),
    transparent 65%
  );
  opacity: 0.9;
  pointer-events: none;
}

.contact-form label {
  display: block;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(58, 43, 35, 0.22);
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.96);
}

.contact-form textarea {
  resize: vertical;
}

.required {
  color: var(--accent);
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  margin: 8px 0 10px;
  position: relative;
  z-index: 1;
}

.consent-label input[type="checkbox"] {
  margin-top: 4px;
}

.form-success,
.form-error {
  font-size: 12px;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.form-success {
  background: #e8f7ec;
  color: #146534;
  border: 1px solid #b7e5c8;
}

.form-error {
  background: #fdeaea;
  color: #a02020;
  border: 1px solid #f3c3c3;
}

/* STOPKA */

.footer {
  border-top: 1px solid rgba(58, 43, 35, 0.12);
  padding: 16px 0 22px;
  background: rgba(248, 242, 235, 0.96);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}

.footer-copy {
  color: rgba(58, 43, 35, 0.7);
  margin-top: 4px;
}

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

.footer-links a {
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text);
}

/* PROSTE ANIMACJE WJAZDU */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease forwards;
}

.fade-up.delay-1 {
  animation-delay: 0.12s;
}
.fade-up.delay-2 {
  animation-delay: 0.24s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSYWNOŚĆ */

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 46px 0 60px;
  }

  .hero-image {
    justify-content: flex-start;
  }

  .hero-image-inner {
    width: 220px;
    height: 220px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* HERO SLIDER */

.hero-slider-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.hero-slider {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
  background: radial-gradient(
    circle at top left,
    rgba(249, 244, 238, 0.96),
    rgba(185, 140, 104, 0.7)
  );
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(248, 242, 235, 0.9);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-slider-arrow--prev {
  left: 10px;
}

.hero-slider-arrow--next {
  right: 10px;
}

.hero-slider-arrow:hover {
  background: var(--primary);
  color: #fdfbf8;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.hero-slider-dots {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(58, 43, 35, 0.25);
  padding: 0;
  cursor: pointer;
  transition: width 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.hero-dot.is-active {
  width: 18px;
  background: var(--accent);
  transform: translateY(-1px);
}

@media (max-width: 880px) {
  .hero-slider-wrapper {
    align-items: flex-start;
  }
  .hero-slider {
    width: 220px;
    height: 220px;
  }
}


/* OFFER SUBNAV & FORM */
.offer-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 20px;
}

.offer-subnav-item {
  border-radius: 999px;
  border: 1px solid rgba(58, 43, 35, 0.2);
  background: rgba(248, 242, 235, 0.7);
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.offer-subnav-item.is-active {
  background: var(--primary);
  color: #fdfbf8;
  border-color: transparent;
  transform: translateY(-1px);
}

.offer-section {
  display: none;
  margin-top: 18px;
}

.offer-section.is-active {
  display: block;
}

.offer-form-section {
  padding: 40px 0 10px;
}

.offer-form-inner {
  background: radial-gradient(
    circle at top left,
    rgba(253, 251, 248, 0.96),
    rgba(248, 242, 235, 0.9)
  );
  border-radius: var(--radius-large);
  padding: 20px 18px 24px;
  border: 1px solid rgba(58, 43, 35, 0.12);
  box-shadow: var(--shadow-soft);
}

.offer-contact-form label {
  display: block;
  margin-bottom: 10px;
}

.offer-contact-form input,
.offer-contact-form select,
.offer-contact-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(58, 43, 35, 0.22);
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.96);
}

/* HERO SLIDER – consolidate & fix mobile */
.hero-slider-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.hero-slider {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 360px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
  background: radial-gradient(
    circle at top left,
    rgba(249, 244, 238, 0.96),
    rgba(185, 140, 104, 0.7)
  );
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(248, 242, 235, 0.9);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-slider-arrow--prev {
  left: 10px;
}

.hero-slider-arrow--next {
  right: 10px;
}

.hero-slider-arrow:hover {
  background: var(--primary);
  color: #fdfbf8;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.hero-slider-dots {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(58, 43, 35, 0.25);
  padding: 0;
  cursor: pointer;
  transition: width 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.hero-dot.is-active {
  width: 18px;
  background: var(--accent);
  transform: translateY(-1px);
}

@media (max-width: 880px) {
  .hero-slider-wrapper {
    align-items: flex-start;
    margin-top: 20px;
    max-width: 100%;
  }
  .hero-slider {
    max-width: 340px;
    height: 320px;
  }
}

@media (max-width: 600px) {
  .hero-slider-wrapper {
    padding-right: 0;
  }
  .hero-slider {
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
  }
}

/* LOGO IMAGE */
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .logo-img {
    height: 28px;
  }
}

/* UPDATED LOGO ONE-LINE */
.logo-img {
  height: auto;
  max-height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 600px) {
  .logo-img {
    max-height: 50px;
  }
}



}

@media (max-width: 360px) {
  .logo-img {
    max-height: 30px;
  }
}


/* =========================================
   GLOBAL RESPONSIVE TUNING
   ========================================= */

/* Ensure main hero content has breathing room on small screens */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 0 50px;
    row-gap: 24px;
  }

  .hero-text {
    padding: 0 18px;
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  .hero-text {
    padding: 0 16px;
  }
}

/* Slider wrapper padding on very small screens */
@media (max-width: 600px) {
  .hero-slider-wrapper {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    align-items: stretch;
  }
}

/* Logo sizing tuned for popular breakpoints */
.logo-img {
  height: auto;
  max-height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .logo-img {
    max-height: 60px;
  }
}

@media (max-width: 768px) {
  .logo-img {
    max-height: 48px;
  }
}

@media (max-width: 600px) {
  .logo-img {
    max-height: 36px;
  }
}

@media (max-width: 360px) {
  .logo-img {
    max-height: 30px;
  }
}

/* Nav inner spacing for narrow widths to avoid wrapping */
@media (max-width: 480px) {
  .nav-inner {
    gap: 8px;
  }
}

/* Offer subnav wrapping nicely on all devices */
.offer-subnav {
  row-gap: 8px;
}

@media (max-width: 600px) {
  .offer-subnav {
    justify-content: flex-start;
  }
}

/* Prevent horizontal overflow in cards and gallery on very small screens */
@media (max-width: 360px) {
  .cards-grid,
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Contact form padding on smaller screens for breathing room */
@media (max-width: 768px) {
  .contact-form {
    margin-top: 10px;
  }

  .section-dark .container {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
}

/* Footer stack on mid-size devices gracefully */
@media (max-width: 768px) {
  .footer-inner {
    align-items: flex-start;
    gap: 12px;
  }
}

/* Ensure no accidental horizontal scroll on ultra small devices */
@media (max-width: 360px) {
  body {
    overflow-x: hidden;
  }
}


/* CARD LAYOUT: image on top, text below */
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-large);
  background: #faf5ef;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.12);
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-large) var(--radius-large) 0 0;
}

/* Keep support for placeholder gradient if brak zdjęcia */
.card-placeholder {
  background: radial-gradient(circle at top left, #f9efe4, #e1c1a5);
}

/* Actual image styling */
.card-image img,
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.card:hover .card-image img,
.card:hover .card-img {
  transform: scale(1.05);
}

.card-body {
  position: static;
  margin-top: 0;
  padding: 18px 20px 20px;
  background: #faf5ef;
}

/* On small screens stack cards in one column nicely */
@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}


/* BODY STATE WHEN MODAL OPEN */
.no-scroll {
  overflow: hidden;
}

/* OFFER MODAL */
.offer-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 16px 8px;
  box-sizing: border-box;
}

.offer-modal-backdrop.is-open {
  display: flex;
}

.offer-modal {
  background: #fdfbf8;
  border-radius: 24px;
  max-width: 600px;
  width: 90vw;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  padding: 16px 16px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-height: 100vh;
  overflow-y: visible;
}

.offer-modal-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.offer-modal-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  width: 100%;
  height: 420px;
  margin-bottom: 1rem;
}

.offer-modal-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.offer-modal-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.offer-modal-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.offer-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(248, 242, 235, 0.9);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.offer-modal-arrow--prev {
  left: 10px;
}

.offer-modal-arrow--next {
  right: 10px;
}

.offer-modal-arrow:hover {
  background: var(--primary);
  color: #fdfbf8;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.offer-modal-aside {
   max-height: 50vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-modal-aside h3 {
  margin: 0;
}

.offer-modal-aside p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.offer-modal-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.offer-modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(58, 43, 35, 0.25);
  padding: 0;
  cursor: pointer;
  transition: width 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.offer-modal-dot.is-active {
  width: 18px;
  background: var(--accent);
  transform: translateY(-1px);
}

.offer-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: rgba(248, 242, 235, 0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

/* RESPONSYWNOŚĆ MODALA */
@media (max-width: 900px) {
  .offer-modal {
    max-width: 96vw;
  }
}

@media (max-width: 768px) {
  .offer-modal-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .offer-modal {
    padding: 14px 10px 18px;
    border-radius: 18px;
  }

  .offer-modal-slider {
    border-radius: 14px;
    height: 240px;
  }
}


/* Upewnij się, że przyciski w kartach łapią kliknięcia */
.card-btn {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

/* Większe okno modala na dużych ekranach */
@media (min-width: 1200px) {
  .offer-modal {
    max-width: 1100px;
    width: 80vw;
  }
}

@media (min-width: 1440px) {
  .offer-modal {
    max-width: 1200px;
    width: 70vw;
  }
}

/* Na bardzo małych ekranach modal zajmuje prawie całą szerokość */
@media (max-width: 520px) {
  .offer-modal-backdrop.is-open {
    align-items: center;
    justify-content: center;
  }

  .offer-modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
  }
}

@media (max-width: 768px) {
  .offer-modal-backdrop.is-open {
    align-items: flex-start;
    justify-content: center;
  }

  .offer-modal {
    width: 100vw;
    max-width: 100vw;
    max-height: calc(100vh - 24px);
    border-radius: 18px;
  }
}

/* === Animations and enhancements (added) === */
/* Page fade in/out */
body {
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.page-loaded {
  opacity: 1;
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.in-view {
  opacity: 1;
  transform: none;
}

/* Hover effects for navigation links */
.nav-links a:hover {
  color: var(--accent);
}

/* Hover effects for primary buttons */
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

/* Hover effects for cards */
.cards-grid .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cards-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

/* Typewriter effect for hero heading */
#hero h1 {
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.15em solid var(--accent);
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent);
  }
}

/* Loading spinner and overlay */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#loading.hidden {
  opacity: 0;
  visibility: hidden;
}
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
