/* ============================================================
   DESIGN SYSTEM — Poduszka Ortopedyczna PL (PREMIUM MINIMALIST BENTO)
   Palette: Soft Linen, Warm Slate, Elegant Sage, Charcoal
   Font: 'Inter' & 'Playfair Display'
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,600&display=swap');

:root {
  --clr-bg: #F9F8F6;
  /* Soft Linen */
  --clr-black: #1A1A1A;
  /* Charcoal */
  --clr-white: #FFFFFF;

  --clr-primary: #2C362A;
  /* Elegant Sage / Deep Forest */
  --clr-secondary: #E3DCD2;
  /* Warm Slate / Greige */
  --clr-tertiary: #D4AF37;
  /* Muted Gold (Accent) */
  --clr-accent: #F0EBE1;
  /* Light Greige */

  --border-light: 1px solid rgba(0, 0, 0, 0.04);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.08);

  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--clr-bg);
  color: var(--clr-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3,
h4,
.logo {
  font-family: 'Playfair Display', serif;
  color: var(--clr-black);
}

/* ── LAYOUT ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 248, 246, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: var(--border-light);
  padding: 18px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo span {
  font-style: italic;
  color: #7a7a7a;
  font-weight: 400;
}

nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

nav a:hover {
  color: var(--clr-black);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: 0 8px 24px rgba(44, 54, 42, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(44, 54, 42, 0.3);
  background: #1f261e;
}

.btn-secondary {
  background: var(--clr-white);
  color: var(--clr-black);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-black {
  background: var(--clr-black);
  color: var(--clr-white);
}

.btn-black:hover {
  background: #333;
  transform: translateY(-2px);
}

/* ── BENTO GRID (HERO & HOMEPAGE) ── */
.bento-section {
  padding: 80px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 24px;
}

.bento-box {
  background: var(--clr-white);
  border: var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.bento-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Grid Spans */
.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.row-span-2 {
  grid-row: span 2;
}

/* Bento Specifics */
.box-hero {
  background: var(--clr-secondary);
  justify-content: center;
  align-items: flex-start;
}

.box-hero h1 {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.box-hero p {
  font-size: 1.15rem;
  color: #444;
  margin-bottom: 40px;
  max-width: 90%;
  line-height: 1.7;
}

.box-image {
  padding: 0;
  background: var(--clr-accent);
}

.box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

.box-cta {
  background: var(--clr-primary);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.box-cta h2 {
  font-size: 2.2rem;
  color: var(--clr-white);
  margin-bottom: 30px;
  font-weight: 400;
}

.box-stats {
  background: var(--clr-white);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.stat-mega {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--clr-tertiary);
  margin-bottom: 12px;
}

.stat-sub {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
}

.box-feature {
  justify-content: space-between;
  background: var(--clr-white);
}

.box-feature .icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--clr-primary);
}

.box-feature h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.box-feature p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

.box-marquee {
  background: var(--clr-secondary);
  color: var(--clr-primary);
  padding: 24px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: flex;
  gap: 60px;
  animation: scroll 20s linear infinite;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ── REVIEWS ── */
.box-review {
  background: var(--clr-accent);
}

.review-stars {
  font-size: 1.2rem;
  letter-spacing: 4px;
  color: var(--clr-tertiary);
  margin-bottom: 20px;
}

.box-review p {
  font-size: 1.15rem;
  color: #333;
  margin-bottom: 24px;
  font-style: italic;
  line-height: 1.7;
}

.reviewer {
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── FAQ ── */
.box-faq {
  background: var(--clr-white);
  grid-column: span 4;
  border: none;
  box-shadow: var(--shadow-soft);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.faq-col {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 24px;
}

.faq-col h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.faq-col p {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.7;
}

/* ── FOOTER ── */
footer {
  border-top: var(--border-light);
  background: var(--clr-white);
  padding: 80px 0 40px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 1rem;
  color: #666;
  margin-top: 20px;
  max-width: 400px;
  line-height: 1.7;
}

.footer-links h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  color: #999;
}

.footer-links a {
  display: block;
  color: var(--clr-black);
  text-decoration: none;
  font-weight: 400;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--clr-tertiary);
}

.footer-bottom {
  border-top: var(--border-light);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 400;
  font-size: 0.9rem;
  color: #777;
}

/* ── INNER PAGES ── */
.page-bento {
  padding: 80px 0;
}

.page-header-box {
  background: var(--clr-secondary);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  margin-bottom: 40px;
}

.page-header-box h1 {
  font-size: 3.5rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.page-header-box p {
  color: #555;
}

.page-content-box {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 80px;
  box-shadow: var(--shadow-soft);
}

.page-content-box h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
  font-weight: 600;
}

.page-content-box h3 {
  font-size: 1.4rem;
  margin: 24px 0 12px;
  font-weight: 600;
}

.page-content-box p {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-content-box ul {
  padding-left: 20px;
  margin-bottom: 24px;
  color: #444;
  line-height: 1.8;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
  color: #555;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: 'Inter';
  font-size: 1rem;
  margin-bottom: 24px;
  background: var(--clr-bg);
  transition: all var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: var(--clr-white);
  border-color: var(--clr-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  background: var(--clr-secondary);
  border-radius: var(--radius-md);
  padding: 32px;
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.contact-card p {
  color: #444;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .span-4,
  .span-3 {
    grid-column: span 2;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .page-content-box {
    padding: 40px;
  }

  .box-hero h1 {
    font-size: 2.8rem;
  }

  .stat-mega {
    font-size: 3.5rem;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .navbar .container {
    flex-direction: column;
    gap: 16px;
  }

  .box-image.row-span-2 {
    grid-row: span 1;
    height: 350px;
  }
}