/* Wildhem: bazowe ustawienia i paleta interfejsu */
:root {
  --whm-ink: #14252f;
  --whm-ink-soft: #29414c;
  --whm-paper: #f8f5ee;
  --whm-surface: #ffffff;
  --whm-mist: #e8f0ee;
  --whm-primary: #2cb8a9;
  --whm-primary-deep: #178779;
  --whm-accent: #ff845c;
  --whm-accent-deep: #d95635;
  --whm-text: #1b2a31;
  --whm-muted: #65757c;
  --whm-line: rgba(20, 37, 47, 0.14);
  --whm-shadow-soft: 0 18px 50px rgba(20, 37, 47, 0.09);
  --whm-shadow-card: 0 14px 34px rgba(20, 37, 47, 0.12);
  --whm-radius-sm: 10px;
  --whm-radius-md: 18px;
  --whm-radius-lg: 30px;
  --whm-shell: 1180px;
  --whm-transition: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; }
button, input, textarea { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.whm-page {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--whm-paper);
  color: var(--whm-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

.whm-page--legal { background: #f3f6f4; }
.whm-shell { width: min(calc(100% - 40px), var(--whm-shell)); margin-inline: auto; }
.whm-skip-link { position: fixed; top: 8px; left: 8px; z-index: 2000; transform: translateY(-150%); padding: 10px 16px; border-radius: var(--whm-radius-sm); background: var(--whm-surface); color: var(--whm-ink); font-weight: 800; box-shadow: var(--whm-shadow-card); }
.whm-skip-link:focus { transform: translateY(0); }

/* Nagłówek i nawigacja */
.whm-header { position: fixed; inset: 0 0 auto; z-index: 1000; transition: background var(--whm-transition), box-shadow var(--whm-transition), backdrop-filter var(--whm-transition); }
.whm-header::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: rgba(255, 255, 255, 0.16); }
.whm-header.whm-is-sticky, .whm-header--solid { background: rgba(20, 37, 47, 0.93); box-shadow: 0 12px 30px rgba(10, 24, 30, 0.2); backdrop-filter: blur(14px); }
.whm-header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.whm-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.whm-brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.42); border-radius: 13px; background: linear-gradient(145deg, rgba(44, 184, 169, 0.95), rgba(255, 132, 92, 0.92)); font-weight: 900; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18); }
.whm-brand__name { font-size: 1.18rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.whm-nav__list { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); list-style: none; margin: 0; padding: 0; }
.whm-nav a { position: relative; color: rgba(255, 255, 255, 0.9); text-decoration: none; font-size: 0.96rem; font-weight: 700; }
.whm-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; border-radius: 2px; background: var(--whm-primary); transition: right var(--whm-transition); }
.whm-nav a:hover::after, .whm-nav a:focus-visible::after { right: 0; }
.whm-menu-button { display: none; width: 46px; height: 46px; padding: 10px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 14px; background: rgba(255, 255, 255, 0.08); cursor: pointer; }
.whm-menu-button__line { display: block; width: 100%; height: 2px; margin: 5px 0; border-radius: 2px; background: #fff; transition: transform var(--whm-transition), opacity var(--whm-transition); }
.whm-menu-button.whm-is-open .whm-menu-button__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.whm-menu-button.whm-is-open .whm-menu-button__line:nth-child(2) { opacity: 0; }
.whm-menu-button.whm-is-open .whm-menu-button__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Ekran otwierający */
.whm-hero { position: relative; min-height: 720px; display: grid; align-items: center; overflow: hidden; color: #fff; background: var(--whm-ink); }
.whm-hero__visual, .whm-hero__shade { position: absolute; inset: 0; }
.whm-hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; animation: whm-hero-drift 16s ease-in-out infinite alternate; }
.whm-hero__shade { background: linear-gradient(90deg, rgba(12, 28, 35, 0.96) 0%, rgba(12, 28, 35, 0.74) 48%, rgba(12, 28, 35, 0.22) 100%), linear-gradient(0deg, rgba(12, 28, 35, 0.32), transparent 42%); }
.whm-hero__content { position: relative; z-index: 2; padding-block: 150px 120px; }
.whm-eyebrow { margin: 0 0 14px; color: var(--whm-primary); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
.whm-hero__title { max-width: 780px; margin: 0; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 0.98; letter-spacing: -0.055em; text-wrap: balance; }
.whm-hero__lead { max-width: 680px; margin: 28px 0 34px; color: rgba(255, 255, 255, 0.82); font-size: clamp(1.04rem, 2vw, 1.26rem); }
.whm-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 13px 22px; border: 0; border-radius: 16px; text-decoration: none; font-weight: 850; cursor: pointer; transition: transform var(--whm-transition), box-shadow var(--whm-transition), background var(--whm-transition); }
.whm-button:hover { transform: translateY(-2px); }
.whm-button:focus-visible { outline: 3px solid rgba(255, 132, 92, 0.45); outline-offset: 3px; }
.whm-button--primary { background: linear-gradient(135deg, var(--whm-primary), #6fd6c9); color: #08221f; box-shadow: 0 14px 28px rgba(44, 184, 169, 0.25); }
.whm-button--primary:hover { box-shadow: 0 18px 34px rgba(44, 184, 169, 0.34); }
.whm-hero__delivery { position: absolute; right: 0; bottom: 0; z-index: 3; padding: 16px 26px; border-radius: 22px 0 0 0; background: var(--whm-accent); color: #30130c; font-weight: 850; box-shadow: -10px -10px 30px rgba(13, 29, 35, 0.18); }

/* Sekcje wspólne */
.whm-section { padding-block: clamp(76px, 9vw, 120px); }
.whm-section--tinted { background: linear-gradient(135deg, #e7f0ed, #f6efe7); }
.whm-section--deep { background: var(--whm-ink); color: #fff; }
.whm-section__heading { max-width: 720px; margin: 0 auto clamp(42px, 6vw, 66px); text-align: center; }
.whm-section__heading--light .whm-section__title { color: #fff; }
.whm-section__title { margin: 0; color: var(--whm-ink); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -0.04em; text-wrap: balance; }
.whm-section__subtitle { margin: 18px auto 0; color: var(--whm-muted); font-size: 1.05rem; }

/* Karty produktów */
.whm-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.whm-product-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--whm-line); border-radius: var(--whm-radius-md); background: var(--whm-surface); box-shadow: var(--whm-shadow-soft); transition: transform var(--whm-transition), box-shadow var(--whm-transition), border-color var(--whm-transition); }
.whm-product-card:hover { transform: translateY(-7px); border-color: rgba(44, 184, 169, 0.5); box-shadow: var(--whm-shadow-card); }
.whm-product-card__badge { position: absolute; top: 15px; left: 15px; z-index: 2; padding: 6px 11px; border-radius: 9px; background: var(--whm-primary); color: #08221f; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.whm-product-card__badge--warm { background: var(--whm-accent); color: #3a180f; }
.whm-product-card__media { aspect-ratio: 1 / 1; overflow: hidden; background: #dfe8e5; }
.whm-product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms ease, filter 420ms ease; }
.whm-product-card:hover .whm-product-card__media img { transform: scale(1.035); filter: contrast(1.03); }
.whm-product-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.whm-product-card__name { margin: 0; color: var(--whm-ink); font-size: 1.35rem; line-height: 1.2; }
.whm-product-card__text { margin: 12px 0; color: var(--whm-muted); font-size: 0.94rem; }
.whm-product-card__tags { margin: auto 0 18px; color: var(--whm-primary-deep); font-size: 0.82rem; font-weight: 800; }
.whm-product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 17px; border-top: 1px solid var(--whm-line); }
.whm-product-card__footer strong { color: var(--whm-ink); font-size: 1.24rem; }
.whm-product-card__footer a { color: var(--whm-accent-deep); font-size: 0.88rem; font-weight: 850; text-decoration: none; }
.whm-product-card__footer a:hover { text-decoration: underline; }

/* Opis marki i korzyści */
.whm-about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 8vw, 100px); align-items: start; }
.whm-about__intro { position: sticky; top: 120px; }
.whm-about__copy { padding: clamp(28px, 4vw, 46px); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: var(--whm-radius-lg); background: rgba(255, 255, 255, 0.68); box-shadow: var(--whm-shadow-soft); backdrop-filter: blur(8px); }
.whm-about__copy p { margin: 0; color: var(--whm-ink-soft); font-size: 1.05rem; }
.whm-about__copy p + p { margin-top: 20px; }
.whm-benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.whm-benefit-card { position: relative; padding: 30px; overflow: hidden; border: 1px solid var(--whm-line); border-radius: var(--whm-radius-md); background: var(--whm-surface); box-shadow: 0 8px 24px rgba(20, 37, 47, 0.06); }
.whm-benefit-card::after { content: ""; position: absolute; right: -45px; bottom: -45px; width: 110px; height: 110px; border-radius: 50%; background: rgba(44, 184, 169, 0.09); }
.whm-benefit-card__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--whm-mist); color: var(--whm-primary-deep); font-size: 0.76rem; font-weight: 900; }
.whm-benefit-card h3 { margin: 20px 0 10px; color: var(--whm-ink); font-size: 1.2rem; }
.whm-benefit-card p { margin: 0; color: var(--whm-muted); }

/* Rozmiary i pielęgnacja */
.whm-size-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: stretch; }
.whm-size-table-wrap, .whm-care-panel { padding: clamp(24px, 4vw, 40px); border: 1px solid rgba(20, 37, 47, 0.1); border-radius: var(--whm-radius-lg); background: rgba(255, 255, 255, 0.74); box-shadow: var(--whm-shadow-soft); }
.whm-size-table-wrap h3, .whm-care-panel h3 { margin: 0 0 18px; color: var(--whm-ink); font-size: 1.32rem; }
.whm-table-scroll { overflow-x: auto; border-radius: var(--whm-radius-sm); }
.whm-size-table { width: 100%; min-width: 520px; border-collapse: collapse; background: #fff; }
.whm-size-table th, .whm-size-table td { padding: 13px 15px; border-bottom: 1px solid var(--whm-line); text-align: center; }
.whm-size-table thead th { background: var(--whm-ink); color: #fff; font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase; }
.whm-size-table tbody th { color: var(--whm-primary-deep); }
.whm-care-panel p { margin: 0 0 25px; color: var(--whm-ink-soft); }
.whm-care-list { margin: 0; padding: 0; list-style: none; }
.whm-care-list li { position: relative; padding-left: 24px; color: var(--whm-ink-soft); }
.whm-care-list li + li { margin-top: 11px; }
.whm-care-list li::before { content: "✓"; position: absolute; left: 0; color: var(--whm-primary-deep); font-weight: 900; }

/* Dostawa, opinie i kontakt */
.whm-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; max-width: 960px; margin-inline: auto; }
.whm-info-card { position: relative; padding: clamp(28px, 4vw, 42px); border: 1px solid var(--whm-line); border-radius: var(--whm-radius-lg); background: var(--whm-surface); box-shadow: var(--whm-shadow-soft); }
.whm-info-card > span { position: absolute; top: 22px; right: 24px; color: var(--whm-accent); font-size: 2rem; font-weight: 900; }
.whm-info-card h3 { margin: 0 0 16px; color: var(--whm-primary-deep); font-size: 1.5rem; }
.whm-info-card p { margin: 0; color: var(--whm-muted); }
.whm-info-card p + p { margin-top: 14px; }
.whm-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.whm-review-card { padding: 28px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--whm-radius-md); background: rgba(255, 255, 255, 0.06); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12); }
.whm-review-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.whm-review-card__top h3 { margin: 0; font-size: 1.12rem; }
.whm-review-card__top span { color: rgba(255, 255, 255, 0.55); font-size: 0.86rem; }
.whm-review-card__stars { margin: 9px 0 15px; color: #ffc568; letter-spacing: 0.11em; }
.whm-review-card blockquote { margin: 0; color: rgba(255, 255, 255, 0.78); font-style: normal; }
.whm-contact-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 30px; max-width: 1000px; margin-inline: auto; }
.whm-contact-details, .whm-form-panel { border-radius: var(--whm-radius-lg); box-shadow: var(--whm-shadow-soft); }
.whm-contact-details { display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: clamp(28px, 5vw, 48px); background: var(--whm-ink); color: #fff; }
.whm-contact-details__label { display: block; margin-bottom: 6px; color: var(--whm-primary); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.whm-contact-details p { margin: 0; color: rgba(255, 255, 255, 0.78); }
.whm-contact-details a { text-decoration: none; }
.whm-contact-details a:hover { text-decoration: underline; }
.whm-form-panel { padding: clamp(28px, 5vw, 48px); border: 1px solid var(--whm-line); background: var(--whm-surface); }
.whm-form-panel h3 { margin: 0 0 24px; color: var(--whm-ink); font-size: 1.5rem; }
.whm-form { display: grid; gap: 18px; }
.whm-form__field label { display: block; margin-bottom: 7px; color: var(--whm-ink); font-size: 0.88rem; font-weight: 800; }
.whm-form__field input, .whm-form__field textarea { width: 100%; border: 1px solid var(--whm-line); border-radius: 13px; background: #fbfcfb; color: var(--whm-text); padding: 12px 14px; outline: none; transition: border-color var(--whm-transition), box-shadow var(--whm-transition), background var(--whm-transition); }
.whm-form__field textarea { resize: vertical; min-height: 130px; }
.whm-form__field input:focus, .whm-form__field textarea:focus { border-color: var(--whm-primary); background: #fff; box-shadow: 0 0 0 4px rgba(44, 184, 169, 0.14); }
.whm-form__field input[aria-invalid="true"], .whm-form__field textarea[aria-invalid="true"] { border-color: var(--whm-accent-deep); box-shadow: 0 0 0 4px rgba(217, 86, 53, 0.1); }
.whm-form__consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; color: var(--whm-muted); font-size: 0.88rem; }
.whm-form__consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--whm-primary-deep); }
.whm-form__consent a { color: var(--whm-primary-deep); font-weight: 800; }
.whm-form__status { min-height: 24px; margin: 0; color: var(--whm-primary-deep); font-size: 0.9rem; font-weight: 750; }
.whm-form__status.whm-is-error { color: var(--whm-accent-deep); }

/* Stopka */
.whm-footer { padding: 70px 0 24px; background: #0e1c23; color: rgba(255, 255, 255, 0.7); }
.whm-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; }
.whm-footer__brand p { max-width: 360px; margin: 18px 0 8px; }
.whm-footer__brand strong { color: var(--whm-primary); font-size: 0.9rem; }
.whm-footer__column h2 { margin: 0 0 16px; color: #fff; font-size: 1.05rem; }
.whm-footer__column ul { margin: 0; padding: 0; list-style: none; }
.whm-footer__column li + li { margin-top: 9px; }
.whm-footer__column a { text-decoration: none; }
.whm-footer__column a:hover { color: #fff; }
.whm-footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; font-size: 0.86rem; }
.whm-footer__bottom p { margin: 0; }

/* Strona prawna */
.whm-legal { padding: 150px 0 90px; }
.whm-legal__inner { max-width: 860px; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--whm-line); border-radius: var(--whm-radius-lg); background: #fff; box-shadow: var(--whm-shadow-soft); }
.whm-legal h1 { margin: 0; color: var(--whm-ink); font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.05em; }
.whm-legal__updated { margin: 18px 0 46px; color: var(--whm-muted); font-style: italic; }
.whm-legal section + section { margin-top: 38px; }
.whm-legal h2 { margin: 0 0 12px; padding-bottom: 9px; border-bottom: 2px solid rgba(44, 184, 169, 0.28); color: var(--whm-ink); font-size: 1.35rem; }
.whm-legal p { margin: 0; color: var(--whm-ink-soft); }
.whm-legal a { color: var(--whm-primary-deep); font-weight: 750; }

/* Układ tabletowy i mobilny */
@media (max-width: 980px) {
  .whm-product-grid, .whm-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .whm-about { grid-template-columns: 1fr; }
  .whm-about__intro { position: static; }
  .whm-size-layout, .whm-contact-layout { grid-template-columns: 1fr; }
  .whm-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  .whm-shell { width: min(calc(100% - 28px), var(--whm-shell)); }
  .whm-header__inner { min-height: 74px; }
  .whm-menu-button { display: block; }
  .whm-nav { position: absolute; inset: 74px 14px auto; display: none; padding: 16px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; background: rgba(14, 28, 35, 0.98); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26); }
  .whm-nav.whm-is-open { display: block; animation: whm-menu-in 180ms ease both; }
  .whm-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .whm-nav a { display: block; padding: 11px 10px; border-radius: 10px; }
  .whm-nav a:hover { background: rgba(255, 255, 255, 0.07); }
  .whm-nav a::after { display: none; }
  .whm-hero { min-height: 680px; }
  .whm-hero__shade { background: linear-gradient(90deg, rgba(12, 28, 35, 0.92), rgba(12, 28, 35, 0.58)), linear-gradient(0deg, rgba(12, 28, 35, 0.54), transparent 50%); }
  .whm-hero__content { padding-block: 130px 120px; }
  .whm-hero__delivery { right: 14px; bottom: 14px; left: 14px; padding: 13px 16px; border-radius: 14px; text-align: center; }
  .whm-info-grid, .whm-review-grid { grid-template-columns: 1fr; }
  .whm-footer__grid { grid-template-columns: 1fr 1fr; }
  .whm-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 580px) {
  .whm-product-grid, .whm-benefit-grid, .whm-footer__grid { grid-template-columns: 1fr; }
  .whm-footer__brand { grid-column: auto; }
  .whm-section { padding-block: 72px; }
  .whm-section__heading { margin-bottom: 38px; }
  .whm-hero__title { font-size: clamp(2.45rem, 13vw, 3.7rem); }
  .whm-hero__lead { font-size: 1rem; }
  .whm-button { width: 100%; }
  .whm-product-card__body { padding: 21px; }
  .whm-contact-details, .whm-form-panel, .whm-size-table-wrap, .whm-care-panel { border-radius: 22px; }
  .whm-review-card__top { align-items: flex-start; flex-direction: column; gap: 3px; }
  .whm-legal { padding-top: 120px; }
  .whm-legal__inner { width: calc(100% - 20px); padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@keyframes whm-hero-drift { from { transform: scale(1.01); } to { transform: scale(1.055); } }
@keyframes whm-menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Ochrona układu przed rozszerzaniem przez przewijaną tabelę. */
.whm-size-table-wrap,
.whm-care-panel,
.whm-table-scroll {
  min-width: 0;
  max-width: 100%;
}
