:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --text: #1d211d;
  --muted: #667069;
  --green: #1f4f3b;
  --green-dark: #15382a;
  --gold: #b89563;
  --line: #dedfd9;
  --dark: #0f1512;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(20, 29, 24, 0.12);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "DM Sans", sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; background: rgba(10, 14, 12, 0.88); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.09); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.brand-main { color: white; font-size: 17px; letter-spacing: 0.23em; font-weight: 600; }
.brand-sub { color: rgba(255, 224, 102); font-size: 10px; letter-spacing: 0.45em; margin-top: 8px; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 28px; margin-left: auto; }
.main-nav a { color: rgba(255,255,255,0.82); font-size: 14px; padding: 28px 0 23px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: white; border-color: var(--gold); }
.header-cta { margin-left: 6px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; margin-left: auto; }
.menu-toggle span { display: block; height: 2px; background: white; margin: 6px 0; transition: .25s; }

.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 23px; border-radius: 7px; border: 1px solid transparent; font-weight: 700; font-size: 14px; cursor: pointer; transition: .25s ease; }
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-secondary { color: white; border-color: rgba(255,255,255,0.55); background: rgba(0,0,0,0.18); }
.btn-secondary:hover { background: white; color: var(--dark); }
.btn-dark { background: var(--dark); color: white; }
.btn-dark:hover { background: var(--green); }
.btn-wide { width: 100%; }

.hero { min-height: 760px; position: relative; display: grid; align-items: center; background: url('images/spa-ogrodowe.webp') center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,10,8,.89) 0%, rgba(7,10,8,.63) 43%, rgba(7,10,8,.12) 72%); }
.hero-content { position: relative; z-index: 1; padding-top: 80px; }
.hero-copy { max-width: 680px; color: white; }
.eyebrow { margin: 0 0 18px; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700; color: #d7c3a7; }
.eyebrow.dark { color: var(--green); }
h1, h2 { font-family: "Playfair Display", serif; line-height: 1.08; margin: 0; font-weight: 600; }
h1 { font-size: clamp(46px, 6vw, 77px); letter-spacing: -.02em; }
h2 { font-size: clamp(36px, 4vw, 54px); }
.hero-text { font-size: 18px; max-width: 610px; color: rgba(255,255,255,.8); margin: 27px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 38px; font-size: 13px; color: rgba(255,255,255,.76); }
.hero-badges span::before { content: "✓"; color: #d7c3a7; margin-right: 8px; }

.section { padding: 80px 0; background: var(--bg); }
.section-light { background: #fbfaf7; }
.section-heading { max-width: 720px; text-align: center; margin: 0 auto 50px; }
.section-heading p:last-child { color: var(--muted); margin: 18px 0 0; }

.category-grid, .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-card, .product-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(25,37,30,.08); box-shadow: 0 10px 35px rgba(19,28,23,.06); transition: .3s ease; }
.category-card:hover, .product-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.category-image { height: 280px; position: relative; overflow: hidden; }
.category-image img, .product-card > img { height: 100%; object-fit: cover; transition: transform .45s ease; }
.category-card:hover img, .product-card:hover > img { transform: scale(1.04); }
.category-icon { position: absolute; left: 22px; bottom: 20px; width: 55px; height: 55px; border-radius: 50%; display: grid; place-items: center; color: white; background: rgba(31,79,59,.92); font-size: 23px; border: 1px solid rgba(255,255,255,.5); }
.soon-badge { position: absolute; top: 18px; right: 18px; background: #ead9c0; color: #5b452c; text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 8px 12px; border-radius: 999px; }
.category-body { padding: 27px; }
.category-body h3, .product-content h3 { margin: 0 0 9px; font-size: 24px; }
.category-body p { color: var(--muted); margin: 0 0 20px; }
.category-body a { color: var(--green); font-weight: 700; }
.category-body a span { margin-left: 5px; }

.product-card > img { height: 265px; }
.product-content { padding: 26px; }
.product-topline { display: flex; gap: 15px; justify-content: space-between; align-items: flex-start; }
.product-type { margin: 0 0 3px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.product-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; background: #e5efe9; color: var(--green); padding: 7px 10px; border-radius: 999px; }
.product-tag.muted { background: #eee8df; color: #7b6549; }
.product-content ul { list-style: none; padding: 0; margin: 22px 0 26px; color: var(--muted); }
.product-content li { padding: 7px 0; border-bottom: 1px solid #eeefeb; }
.product-content li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 9px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.price { font-size: 22px; font-weight: 700; color: var(--green); white-space: nowrap; }
.price span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

.benefits { background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 0; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.benefit { display: flex; gap: 15px; align-items: flex-start; }
.benefit > span { width: 46px; height: 46px; border: 1px solid #b9c9bf; border-radius: 50%; display: grid; place-items: center; color: var(--green); font-size: 21px; flex: 0 0 auto; }
.benefit h3 { margin: 0 0 5px; font-size: 16px; }
.benefit p { margin: 0; color: var(--muted); font-size: 13px; }

.lifestyle { padding: 100px 0; position: relative; color: white; background: linear-gradient(rgba(9,14,11,.72), rgba(9,14,11,.72)), url("images/spa-ogrodowe2.webp") center/cover no-repeat; }
.lifestyle-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; }
.lifestyle-copy { max-width: 650px; }
.lifestyle-copy p:not(.eyebrow) { color: rgba(255,255,255,.78); font-size: 18px; margin: 24px 0 30px; }
.stats { display: grid; grid-template-columns: 1fr; gap: 12px; }
.stats div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); padding: 20px; border-radius: 12px; }
.stats strong, .stats span { display: block; }
.stats strong { font-size: 21px; }
.stats span { color: rgba(255,255,255,.68); font-size: 13px; }

.contact-section { background: #f8f7f3; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; margin: 22px 0 30px; }
.contact-list { display: grid; gap: 14px; }
.contact-list a, .contact-list div { border-bottom: 1px solid var(--line); padding-bottom: 13px; font-weight: 600; }
.contact-list span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 3px; }
.contact-form { background: white; padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; margin-top: 7px; border: 1px solid #dcded9; border-radius: 8px; padding: 13px 14px; outline: none; background: #fff; color: var(--text); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,79,59,.09); }
.checkbox { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--muted); }
.checkbox input { width: auto; margin-top: 4px; }
.form-status { min-height: 24px; margin: 12px 0 0; color: var(--green); font-weight: 700; }
.form-status.success { color: var(--green); }
.form-status.error { color: #a12f2f; }
.contact-form button:disabled { opacity: .65; cursor: wait; transform: none; }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

.footer { background: var(--dark); color: rgba(255,255,255,.72); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 45px; }
.footer h3 { color: white; font-size: 14px; margin: 0 0 16px; }
.footer a { display: block; margin: 8px 0; font-size: 13px; }
.footer p { font-size: 13px; }
.footer-brand { margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; font-size: 12px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .header-cta { display: none; }
  .main-nav { gap: 18px; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid article:last-child, .category-grid article:last-child { grid-column: 1 / -1; max-width: 560px; width: 100%; justify-self: center; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-header { background: rgba(10,14,12,.96); }
  .header-inner { min-height: 68px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 68px; left: 0; right: 0; background: #0d1410; display: none; flex-direction: column; align-items: stretch; padding: 18px 20px 24px; gap: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 5px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero { min-height: 700px; background-position: 67% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(7,10,8,.92), rgba(7,10,8,.67)); }
  .lifestyle-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand-main { font-size: 14px; }
  .hero { min-height: 720px; }
  h1 { font-size: 45px; }
  .hero-text { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .hero-badges { flex-direction: column; gap: 8px; }
  .section { padding: 74px 0; }
  .category-grid, .product-grid, .benefits-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .product-grid article:last-child, .category-grid article:last-child { grid-column: auto; }
  .category-image { height: 235px; }
  .product-card > img { height: 230px; }
  .product-footer { align-items: stretch; flex-direction: column; }
  .product-footer .btn { width: 100%; }
  .benefits-grid { gap: 26px; }
  .stats { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Podstrony */
.subpage-hero { padding: 160px 0 86px; color: white; background: linear-gradient(rgba(9,14,11,.72), rgba(9,14,11,.72)), url("images/spa-ogrodowe.webp") center/cover no-repeat; }
.subpage-hero .hero-copy { max-width: 760px; }
.subpage-hero h1 { font-size: clamp(42px, 5vw, 68px); }
.breadcrumbs { margin-bottom: 18px; font-size: 13px; color: rgba(255,255,255,.72); }
.breadcrumbs a { color: white; }
.page-intro { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.page-intro p { color: var(--muted); }
.product-grid.product-grid-2 { grid-template-columns: repeat(2, 1fr); }
.single-product { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: start; }
.single-product-media > img { border-radius: var(--radius); box-shadow: var(--shadow); min-height: 520px; object-fit: cover; }
.single-product-content { background: white; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.single-product-content h2 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 18px; }
.single-product-content > p { color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 26px 0; }
.feature-list li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.feature-list li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 10px; }
.info-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: start; }
.info-card { background: white; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.info-card h3 { margin-top: 0; }
.info-card p, .info-card li { color: var(--muted); }
.info-card + .info-card { margin-top: 22px; }
.legal-content { max-width: 900px; margin-inline: auto; background: white; padding: 42px; border-radius: var(--radius); box-shadow: var(--shadow); }
.legal-content h2 { font-size: 30px; margin-top: 34px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); }
@media (max-width: 820px) { .single-product, .info-layout { grid-template-columns: 1fr; } .product-grid.product-grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .subpage-hero { padding: 130px 0 68px; } .single-product-content, .legal-content { padding: 24px; } .single-product-media > img { min-height: 320px; } }


/* Galeria produktu */
.product-gallery { display: grid; gap: 14px; }
.gallery-main { width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #ecece7; cursor: zoom-in; box-shadow: 0 10px 35px rgba(19,28,23,.08); }
.gallery-main img { width: 100%; height: 520px; object-fit: cover; transition: opacity .18s ease, transform .35s ease; }
.gallery-main:hover img { transform: scale(1.015); }
.gallery-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gallery-thumb { width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #ecece7; cursor: pointer; opacity: .72; transition: border-color .2s ease, opacity .2s ease, transform .2s ease; }
.gallery-thumb:hover { opacity: 1; transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--green); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery-lightbox { position: fixed; inset: 0; z-index: 3000; display: none; place-items: center; padding: 24px; background: rgba(4,8,6,.92); }
.gallery-lightbox.open { display: grid; }
.gallery-lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; width: auto; border-radius: 12px; box-shadow: 0 25px 80px rgba(0,0,0,.45); }
.gallery-lightbox-close { position: fixed; top: 18px; right: 22px; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(0,0,0,.35); color: white; font-size: 28px; cursor: pointer; }

@media (max-width: 820px) {
  .gallery-main img { height: 430px; }
  .gallery-thumbnails { grid-template-columns: repeat(5, 110px); overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
}

@media (max-width: 620px) {
  .gallery-main img { height: 340px; }
  .gallery-thumbnails { grid-template-columns: repeat(5, 92px); }
}

/* Katalog saun */
.sauna-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.sauna-section-heading > div { flex: 0 0 auto; }
.sauna-section-heading h2 { font-size: clamp(32px, 3.2vw, 46px); }
.sauna-section-heading > p { max-width: 520px; margin: 0 0 4px; color: var(--muted); }
.sauna-section-heading-spaced { margin-top: 86px; }
.sauna-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sauna-catalog-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid rgba(25,37,30,.08); border-radius: 15px; box-shadow: 0 10px 32px rgba(19,28,23,.06); transition: transform .3s ease, box-shadow .3s ease; }
.sauna-catalog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.sauna-catalog-card > img { height: 225px; object-fit: cover; transition: transform .4s ease; }
.sauna-catalog-card:hover > img { transform: scale(1.035); }
.sauna-card-content { display: flex; flex: 1; flex-direction: column; padding: 23px; }
.sauna-card-content h3 { margin: 0 0 17px; font-size: 23px; line-height: 1.2; }
.sauna-specs { display: grid; gap: 0; margin: 0 0 23px; }
.sauna-specs div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eceee9; font-size: 13px; }
.sauna-specs dt { color: var(--muted); }
.sauna-specs dd { margin: 0; font-weight: 600; text-align: right; }
.sauna-card-footer { display: grid; gap: 16px; margin-top: auto; }
.sauna-card-footer .btn { width: 100%; min-height: 44px; padding-inline: 14px; }
.sauna-card-footer .price { font-size: 21px; }

/* Podstrona produktu sauny */
.product-subpage-hero { background-image: linear-gradient(rgba(9,14,11,.74), rgba(9,14,11,.74)), url("images/mini_sauna_ogrodowa.webp"); }
.product-detail-layout { align-items: stretch; }
.product-detail-layout .single-product-content { height: 100%; }
.product-detail-price { margin: 28px 0 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-detail-price span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.product-detail-price strong { display: block; margin-top: 3px; color: var(--green); font-size: 31px; }
.product-note { margin: 15px 0 0 !important; font-size: 12px; }
.product-information-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.product-information-grid .info-card + .info-card { margin-top: 0; }
.product-information-grid h2 { margin-bottom: 22px; font-size: clamp(32px, 3.5vw, 46px); }
.detail-table { margin: 0; }
.detail-table div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.detail-table dt { color: var(--muted); }
.detail-table dd { margin: 0; font-weight: 600; text-align: right; }
.product-options-grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1020px) {
  .sauna-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-information-grid { grid-template-columns: 1fr; }
  .product-options-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .sauna-section-heading { display: block; }
  .sauna-section-heading > p { margin-top: 14px; }
  .sauna-catalog-grid { grid-template-columns: 1fr; }
  .sauna-catalog-card > img { height: 250px; }
}

@media (max-width: 620px) {
  .sauna-section-heading-spaced { margin-top: 65px; }
  .sauna-card-content { padding: 20px; }
  .sauna-specs div { grid-template-columns: 82px 1fr; }
  .product-options-grid { grid-template-columns: 1fr; }
  .detail-table div { grid-template-columns: 1fr; gap: 4px; }
  .detail-table dd { text-align: left; }
}

/* Bezpieczne wymiary miniaturek galerii */
.gallery-thumbnails .gallery-thumb img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

/* Balie ogrodowe – wyższe zdjęcia tylko na tej podstronie */
.balie-product-grid .product-card > img {
  height: 360px;
  object-fit: cover;
}

@media (max-width: 820px) {
  .balie-product-grid .product-card > img { height: 330px; }
}

@media (max-width: 620px) {
  .balie-product-grid .product-card > img { height: 290px; }
}


/* Podstrona Oferta */
.offer-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.offer-category-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(25,37,30,.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 35px rgba(19,28,23,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.offer-category-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.offer-category-image {
  height: 330px;
  overflow: hidden;
}

.offer-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.offer-category-card:hover .offer-category-image img {
  transform: scale(1.04);
}

.offer-category-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.offer-category-content h3 {
  margin: 0 0 12px;
  font-size: 27px;
}

.offer-category-content > p:not(.product-type) {
  color: var(--muted);
  margin: 0 0 24px;
}

.offer-category-content .btn {
  width: 100%;
  margin-top: auto;
}

@media (max-width: 1020px) {
  .offer-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-category-card:last-child {
    grid-column: 1 / -1;
    max-width: 560px;
    width: 100%;
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .offer-category-grid {
    grid-template-columns: 1fr;
  }

  .offer-category-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .offer-category-image {
    height: 280px;
  }
}

/* Poprawka kart saun na urządzeniach mobilnych */
@media (max-width: 620px) {
  .sauna-card-content {
    padding: 22px;
  }

  .sauna-card-content h3 {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .sauna-specs {
    margin-bottom: 22px;
  }

  .sauna-specs div {
    display: block;
    padding: 10px 0;
    font-size: 14px;
  }

  .sauna-specs dt {
    margin-bottom: 3px;
    font-size: 12px;
  }

  .sauna-specs dd {
    text-align: left;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .sauna-card-footer {
    gap: 14px;
  }

  .sauna-card-footer .price {
    font-size: 22px;
  }

  .sauna-card-footer .btn {
    width: 100%;
  }
}


/* Szablon podstrony produktu sauny */
.product-template-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: stretch;
}

.product-template-grid .info-card,
.heater-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-template-grid h2 {
  margin-bottom: 20px;
  font-size: clamp(32px, 3.5vw, 46px);
}

.heater-card p {
  color: var(--muted);
}

.heater-card strong {
  color: var(--text);
}

.heater-feature-list {
  margin-bottom: 16px;
}

.other-sizes-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.related-sauna-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.related-sauna-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 24px;
  border-radius: 14px;
  background: white;
  border: 1px solid rgba(25,37,30,.08);
  box-shadow: 0 8px 28px rgba(19,28,23,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}

.related-sauna-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.related-sauna-type {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.related-sauna-card strong {
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 7px;
}

.related-sauna-card > span:not(.related-sauna-type):not(.related-sauna-link) {
  color: var(--muted);
  font-size: 13px;
}

.related-sauna-link {
  margin-top: auto;
  padding-top: 20px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

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

  .related-sauna-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .product-template-grid .info-card,
  .heater-card {
    padding: 24px;
  }

  .related-sauna-grid {
    grid-template-columns: 1fr;
  }

  .related-sauna-card {
    min-height: 160px;
  }
}

/* Ulepszone warianty i kontakt na podstronie produktu */
.related-sauna-card {
  padding: 0;
  min-height: 0;
  overflow: hidden;
}

.related-sauna-card > img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-sauna-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.related-sauna-size {
  margin-top: 6px;
  color: var(--text) !important;
  font-size: 17px !important;
  font-weight: 600;
}

.product-contact-cta {
  padding: 80px 0;
  color: white;
  text-align: center;
  background: var(--green-dark);
}

.product-contact-cta-inner {
  max-width: 760px;
}

.product-contact-cta h2 {
  margin-bottom: 18px;
}

.product-contact-cta p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 auto 28px;
  color: rgba(255,255,255,.78);
}

.product-contact-phone {
  display: block;
  color: white;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.1;
}

.product-contact-email {
  display: inline-block;
  margin-top: 12px;
  color: rgba(255,255,255,.78);
  font-size: 16px;
}

.product-contact-phone:hover,
.product-contact-email:hover {
  color: #d7c3a7;
}

@media (max-width: 620px) {
  .related-sauna-card > img {
    height: 220px;
  }

  .related-sauna-size {
    font-size: 18px !important;
  }

  .product-contact-cta {
    padding: 64px 0;
  }
}


/* Dopracowanie wyłącznie podstrony produktu sauny */
.sauna-product-page .product-detail-layout {
  align-items: start;
}

.sauna-product-page .product-gallery {
  align-content: start;
  align-self: start;
}

.sauna-product-page .gallery-main {
  display: block;
  height: 520px;
  line-height: 0;
  background: transparent;
}

.sauna-product-page .gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.sauna-product-page .product-description-section {
  padding: 64px 0 34px;
}

.sauna-product-page .product-options-section {
  padding: 34px 0 64px;
}

.sauna-product-page .product-template-grid .info-card,
.sauna-product-page .product-template-grid .heater-card {
  border: 1px solid rgba(25,37,30,.07);
  box-shadow: 0 12px 34px rgba(20,29,24,.08);
}

.sauna-product-page .product-options-section .page-intro {
  margin-bottom: 32px;
}

.sauna-product-page .product-options-section .product-options-grid {
  gap: 18px;
}

.sauna-product-page .product-options-section .benefit {
  padding: 20px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(25,37,30,.07);
  border-radius: 14px;
}

.sauna-product-page .product-options-section .benefit > span {
  background: white;
}

.sauna-product-page .footer-location p {
  margin: 0;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
}

@media (max-width: 820px) {
  .sauna-product-page .gallery-main {
    height: 430px;
  }

  .sauna-product-page .product-description-section {
    padding: 54px 0 28px;
  }

  .sauna-product-page .product-options-section {
    padding: 28px 0 54px;
  }
}

@media (max-width: 620px) {
  .sauna-product-page .gallery-main {
    height: 340px;
  }

  .sauna-product-page .product-description-section {
    padding: 46px 0 22px;
  }

  .sauna-product-page .product-options-section {
    padding: 22px 0 46px;
  }

  .sauna-product-page .product-options-section .benefit {
    padding: 18px;
  }
}
