:root {
  --rd-ink: #17191f;
  --rd-muted: #626874;
  --rd-line: #dfe2e8;
  --rd-soft: #f4f5f7;
  --rd-paper: #ffffff;
  --rd-yellow: #f2d34f;
  --rd-red: #cf3f39;
  --rd-green: #176b4b;
  --rd-shadow: 0 18px 48px rgba(23, 25, 31, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--rd-ink);
  background: var(--rd-paper);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}
body::before { display: none; }
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: 72px;
  padding: 10px clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid var(--rd-line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: none;
}
.brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.brand-mark { width: 34px; height: 34px; object-fit: contain; }
.brand-name { color: var(--rd-ink); font-size: 20px; font-weight: 900; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links a, .nav-dropdown summary { color: #373b43; font-size: 14px; font-weight: 750; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--rd-red); }
.nav-dropdown { position: relative; }
.nav-dropdown summary { cursor: pointer; }
.nav-dropdown > div {
  position: absolute; right: 0; top: calc(100% + 15px); min-width: 210px;
  padding: 9px; display: grid; gap: 2px; border: 1px solid var(--rd-line);
  border-radius: 6px; background: #fff; box-shadow: var(--rd-shadow);
}
.nav-dropdown > div a { padding: 9px 10px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.social-links { display: flex; gap: 4px; }
.social-icon, .cart-icon {
  width: 38px; height: 38px; padding: 9px; display: inline-grid; place-items: center;
  border: 1px solid var(--rd-line); border-radius: 5px; background: #fff;
}
.social-icon svg, .cart-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-icon-facebook svg { fill: currentColor; stroke: none; }
.account-link, .header-cta {
  min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px; background: var(--rd-ink); color: #fff; font-size: 14px; font-weight: 800;
}

main { overflow: clip; }
.sales-hero {
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(430px, 1.02fr) minmax(420px, .98fr);
  border-bottom: 1px solid var(--rd-line);
}
.sales-hero .hero-copy {
  padding: clamp(56px, 7vw, 108px);
  display: flex; flex-direction: column; justify-content: center;
}
.eyebrow { margin: 0 0 14px; color: var(--rd-red); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.sales-hero h1 { margin: 0 0 24px; max-width: 760px; font-size: clamp(46px, 5.2vw, 74px); line-height: 1.02; letter-spacing: 0; }
.lead { color: var(--rd-muted); font-size: 19px; line-height: 1.55; }
.sales-hero .lead { max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 20px; }
.primary-button, .secondary-button, button[type="submit"], .auth-card > button:not(.password-toggle) {
  min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rd-ink); border-radius: 5px; font-weight: 850; cursor: pointer;
}
.primary-button, button[type="submit"], .auth-card > button:not(.secondary-button):not(.password-toggle) { background: var(--rd-ink); color: #fff; }
.secondary-button { background: #fff; color: var(--rd-ink); }
.primary-button:hover, button[type="submit"]:hover { background: #30333a; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--rd-green); font-size: 13px; font-weight: 800; }
.trust-row span::before { content: "✓"; margin-right: 6px; }
.price-line { margin-top: 36px; padding-top: 21px; border-top: 1px solid var(--rd-line); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-line strong { font-size: 34px; }
.price-line del { color: var(--rd-muted); }
.price-line small { width: 100%; color: var(--rd-muted); }
.hero-media { position: relative; min-height: 600px; overflow: hidden; background: #d6d5d0; }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-caption { position: absolute; right: 24px; bottom: 24px; padding: 12px 15px; display: grid; gap: 2px; border-radius: 5px; background: #fff; box-shadow: var(--rd-shadow); }
.hero-caption span { color: var(--rd-muted); font-size: 12px; }

.sales-band, .workflow, .pricing, .reviews, .gallery-section, .account, .order-layout, .generator-workspace { padding: 88px clamp(20px, 6vw, 96px); }
.sales-band { border-bottom: 1px solid var(--rd-line); }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading h2, .subpage-hero h1 { margin: 0 0 14px; color: var(--rd-ink); font-size: clamp(34px, 4vw, 54px); line-height: 1.07; letter-spacing: 0; }
.section-heading p:last-child { color: var(--rd-muted); line-height: 1.6; }
.workflow { background: var(--rd-ink); color: #fff; }
.workflow .eyebrow { color: var(--rd-yellow); }
.workflow .section-heading h2 { color: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step-card { min-height: 0; padding: 0; overflow: hidden; border: 1px solid #3b3e45; border-radius: 5px; background: #22252b; box-shadow: none; }
.step-card img { width: 100%; aspect-ratio: 4/3; display: block; object-fit: cover; }
.step-card > span, .step-card h3, .step-card p { margin-left: 18px; margin-right: 18px; }
.step-card > span { width: auto; height: auto; display: block; margin-top: 18px; margin-bottom: 0; place-items: initial; border-radius: 0; background: transparent; color: var(--rd-yellow); font-size: 26px; font-weight: 900; }
.step-card h3 { margin-top: 8px; margin-bottom: 8px; font-size: 18px; }
.step-card p { margin-bottom: 22px; color: #c7cad0; font-size: 14px; line-height: 1.55; }
.pricing { background: var(--rd-soft); }
.pricing-card { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--rd-line); border-radius: 6px; background: #fff; box-shadow: none; }
.pricing-card .price-label, .pricing-card p { color: var(--rd-muted); }
.pricing-card .primary-button { background: var(--rd-ink); color: #fff; }
.pricing > .pricing-card { max-width: 1050px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 34px; }
.price-label { font-weight: 800; }
.price-stack { display: flex; align-items: baseline; gap: 12px; }
.price { color: var(--rd-ink); font-size: 34px; }
.price-old { color: var(--rd-muted); text-decoration: line-through; }
.price-details { display: grid; gap: 11px; color: var(--rd-muted); }
.price-details > span::before { content: "✓"; margin-right: 8px; color: var(--rd-green); font-weight: 900; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; justify-items: center; gap: 22px; }
.review-card, .review-form, .auth-card, .user-panel { border: 1px solid var(--rd-line); border-radius: 6px; background: #fff; box-shadow: none; }
.review-card { width: 100%; max-width: 300px; aspect-ratio: 1; min-height: 0; padding: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; overflow: hidden; border-radius: 50%; text-align: center; }
.review-card p { margin: 0; max-width: 29em; font-size: 13px; line-height: 1.4; }
.review-rating { min-height: 22px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.review-shirt { width: 20px; height: 20px; display: inline-grid; place-items: center; }
.review-shirt svg { width: 18px; height: 18px; fill: #d8ad24; stroke: #a97800; stroke-width: .7; }
.review-author { width: 78%; margin-top: 3px; padding-top: 11px; display: grid; gap: 3px; border-top: 1px solid var(--rd-line); }
.review-author strong { color: var(--rd-ink); font-size: 13px; }
.review-author span { color: var(--rd-muted); font-size: 12px; }
.custom-order {
  padding: 44px clamp(20px, 6vw, 96px); display: flex; align-items: center; justify-content: space-between; gap: 28px;
  border-top: 1px solid var(--rd-line); background: var(--rd-yellow);
}
.custom-order h2 { margin: 0 0 7px; font-size: clamp(24px, 3vw, 36px); }
.custom-order p { margin: 0; }

.subpage-hero { padding: 76px clamp(20px, 6vw, 96px) 54px; border-bottom: 1px solid var(--rd-line); background: #fff; }
.subpage-hero .lead { max-width: 820px; margin-bottom: 0; }
.generator-workspace { padding-top: 52px; display: grid; grid-template-columns: minmax(280px,.8fr) minmax(410px,1.25fr) minmax(250px,.72fr); gap: 20px; align-items: start; background: var(--rd-soft); }
.tool-panel, .creator-card { padding: 24px; border: 1px solid var(--rd-line); border-radius: 6px; background: #fff; box-shadow: none; }
.tool-panel label, .control-label { color: var(--rd-ink); font-weight: 800; }
textarea, input, select { width: 100%; border: 1px solid #b9bec7; border-radius: 4px; background: #fff; color: var(--rd-ink); }
textarea, input { padding: 12px 13px; }
select { min-height: 44px; padding: 0 12px; }
#promptInput { min-height: 145px; margin-top: 9px; resize: vertical; }
.prompt-help { margin: 16px 0; padding: 15px; border-left: 3px solid var(--rd-yellow); background: #f8f8f5; color: var(--rd-muted); font-size: 13px; line-height: 1.5; }
.prompt-help p { margin: 7px 0; }
.generation-progress { margin-top: 16px; }
.progress-row { display: flex; justify-content: space-between; }
.progress-track { height: 8px; margin: 9px 0; overflow: hidden; border-radius: 10px; background: var(--rd-line); }
.progress-track span { display: block; height: 100%; background: var(--rd-red); }
.shirt-canvas { min-height: 520px; display: grid; place-items: center; overflow: hidden; background: #eceef0; }
.shirt-stage { width: min(100%, 590px); position: relative; }
.shirt-stage #shirtImage { width: 100%; display: block; }
.placement-panel { display: grid; gap: 18px; }
.placement-controls label { display: grid; gap: 8px; }
.control-grid { display: grid; gap: 16px; }
.swatches { display: flex; gap: 10px; margin-top: 9px; }
.swatch { width: 34px; height: 34px; border: 2px solid #aeb3bc; border-radius: 50%; background: #fff; }
.swatch-dark { background: #161616; }
.swatch.is-active { outline: 2px solid var(--rd-red); outline-offset: 2px; }
.continue-button { width: 100%; }
.continue-button.is-disabled { opacity: .45; }

.order-layout { padding-top: 50px; display: grid; grid-template-columns: minmax(360px,.9fr) minmax(480px,1.1fr); gap: 28px; align-items: start; background: var(--rd-soft); }
.order-preview { position: sticky; top: 96px; overflow: hidden; border: 1px solid var(--rd-line); border-radius: 6px; background: #fff; }
.order-meta { padding: 22px; display: grid; gap: 10px; }
.checkout-card { display: grid; align-items: stretch; gap: 18px; color: var(--rd-ink); }
.checkout-card .price-label, .checkout-card p { color: var(--rd-muted); }
.checkout-card input, .checkout-card textarea, .checkout-card select { border: 1px solid #b9bec7; border-radius: 4px; background: #fff; color: var(--rd-ink); }
.checkout-card .primary-button { background: var(--rd-ink); color: #fff; }
.checkout-card .price-details label { display: grid; gap: 7px; color: var(--rd-ink); font-weight: 750; }
.checkout-card .price-details > span { padding: 0; border: 0; background: transparent; color: var(--rd-muted); }
.checkout-card .price-details > span::before { display: none; }
.discount-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.consent-box { padding: 16px; display: grid; gap: 12px; border: 1px solid var(--rd-line); border-radius: 5px; background: #f8f8f5; }
.checkbox-row { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; color: #454a53; font-size: 14px; line-height: 1.5; }
.checkbox-row input { width: 18px; height: 18px; margin: 2px 0 0; }
.payment-assurance { padding: 16px; border-left: 3px solid var(--rd-green); background: #eef7f2; color: #294b3d; line-height: 1.5; }
.order-preview .cart-item { grid-template-columns: 1fr; }
.order-preview .cart-canvas { min-height: 410px; }
.order-preview .cart-canvas .shirt-stage { --shirt-width: min(76%, 350px); width: min(100%, 480px); }
.order-preview .cart-item-body { padding: 20px; }

.account { background: var(--rd-soft); }
.account-grid { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.auth-card { padding: 26px; display: grid; gap: 15px; }
.auth-card h3 { margin: 0; font-size: 23px; }
.auth-card label { display: grid; gap: 7px; font-weight: 750; }
.password-field { position: relative; }
.password-toggle { position: absolute; right: 7px; bottom: 7px; width: auto; min-height: 34px; border: 0; background: #fff; font-weight: 750; }
.account-dashboard { max-width: 1180px; margin: 24px auto 0; display: grid; grid-template-columns: .75fr 1.25fr; gap: 18px; }
.user-panel { padding: 26px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.gallery-section { background: var(--rd-soft); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.gallery-card { overflow: hidden; border: 1px solid var(--rd-line); border-radius: 5px; background: #fff; }
.gallery-card > div:last-child { padding: 14px 16px; display: grid; gap: 4px; }
.gallery-card > div:last-child span { color: var(--rd-muted); font-size: 13px; }
.gallery-art { aspect-ratio: 4/5; position: relative; overflow: hidden; background: #e7e8ea; }
.gallery-model { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-shirt-area { position: absolute; inset: 0; }
.gallery-print { position: absolute; left: var(--print-left); top: var(--print-top); width: var(--print-width); max-height: var(--print-height); transform: translate(-50%,-50%); object-fit: contain; }

.product-hero { min-height: 650px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; background: #f4f4f0; }
.product-copy { padding: 70px clamp(20px, 7vw, 110px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.product-copy h1 { margin: 0 0 22px; max-width: 620px; font-size: clamp(44px, 5vw, 68px); line-height: 1.04; letter-spacing: 0; }
.product-copy > p:not(.eyebrow) { max-width: 600px; color: var(--rd-muted); font-size: 19px; line-height: 1.6; }
.product-models { min-width: 0; display: grid; grid-template-columns: 1fr 1fr; }
.product-models img { width: 100%; height: 100%; min-height: 650px; display: block; object-fit: cover; object-position: center top; }
.product-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-block: 1px solid var(--rd-line); }
.product-facts article { min-width: 0; padding: 28px; display: grid; gap: 5px; border-right: 1px solid var(--rd-line); }
.product-facts article:last-child { border-right: 0; }
.product-facts strong { font-size: 24px; }
.product-facts span { color: var(--rd-muted); font-size: 14px; }
.sizes { padding: 90px clamp(20px, 7vw, 110px); }
.size-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.size-tables article { padding: 25px; border: 1px solid var(--rd-line); background: #fff; }
.size-tables h3 { margin: 0 0 17px; font-size: 22px; }
.size-tables table { width: 100%; border-collapse: collapse; }
.size-tables th, .size-tables td { padding: 13px; text-align: left; border-bottom: 1px solid var(--rd-line); }
.size-tables th { color: var(--rd-muted); font-size: 13px; }
.print-sizes { margin-top: 25px; padding: 20px 24px; border-left: 3px solid var(--rd-yellow); background: var(--rd-soft); }
.print-sizes p { margin: 7px 0 0; color: var(--rd-muted); line-height: 1.55; }
.care { padding: 70px clamp(20px, 7vw, 110px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; background: var(--rd-ink); color: #fff; }
.care h2 { margin: 0; color: #fff; font-size: clamp(34px,4vw,54px); }
.care .eyebrow { color: var(--rd-yellow); }
.care ul { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; }
.care li { padding: 17px; border: 1px solid #4c4f56; }

.faq-grid, .info-grid, .legal-copy, .size-section, .status-card, .success-card { max-width: 1080px; margin-left: auto; margin-right: auto; }
.faq-grid, .info-grid { padding: 54px 20px 84px; }
.faq-card, .info-card, .legal-copy, .status-card, .success-card { border-color: var(--rd-line); border-radius: 6px; box-shadow: none; }

.site-footer {
  padding: 34px clamp(20px, 6vw, 96px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 25px;
  border-top: 1px solid var(--rd-line); background: #fff; color: var(--rd-muted); font-size: 14px;
}
.site-footer a:hover { color: var(--rd-ink); }

@media (max-width: 1100px) {
  .nav-links { gap: 14px; }
  .social-links { display: none; }
  .generator-workspace { grid-template-columns: minmax(280px,.8fr) minmax(400px,1.2fr); }
  .placement-panel { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-hero { grid-template-columns: 1fr; }
  .product-models { height: 520px; }
  .product-models img { min-height: 0; }
}
@media (max-width: 860px) {
  .site-header { min-height: 66px; gap: 12px; }
  .nav-links { display: none; }
  .header-actions, .site-header > .cart-icon { margin-left: auto; }
  .brand-name { font-size: 18px; }
  .sales-hero { min-height: 0; grid-template-columns: 1fr; }
  .sales-hero .hero-media { order: initial; min-height: 350px; }
  .sales-hero .hero-media > img { object-position: 74% top; }
  .brand-mark { display: block !important; }
  .sales-hero .hero-copy { padding: 48px 22px; }
  .pricing > .pricing-card { grid-template-columns: 1fr; }
  .generator-workspace, .order-layout { grid-template-columns: 1fr; padding: 32px 20px 70px; }
  .placement-panel { grid-column: auto; grid-template-columns: 1fr; }
  .order-preview { position: static; }
  .gallery-grid, .reviews-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .custom-order { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .site-header { padding: 9px 13px; }
  .brand-mark { width: 30px; height: 30px; }
  .account-link { display: none; }
  .sales-hero .hero-copy { padding: 30px 18px 24px; }
  .sales-hero h1 { margin-bottom: 16px; font-size: 38px; line-height: 1.04; }
  .sales-hero .lead { margin-bottom: 0; font-size: 16px; line-height: 1.45; }
  .hero-actions { margin: 13px 0; flex-direction: column; gap: 8px; }
  .hero-actions a { width: 100%; }
  .trust-row { display: flex; gap: 6px 12px; font-size: 12px; line-height: 1.35; }
  .price-line { margin-top: 19px; padding-top: 15px; }
  .price-line strong { font-size: 28px; }
  .price-line small { font-size: 12px; }
  .sales-hero .hero-media { min-height: 315px; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; grid-template-columns: 1fr auto; gap: 7px 10px; padding: 9px 11px; }
  .cookie-banner strong { margin: 0 0 2px; font-size: 13px; }
  .cookie-banner p { max-height: 32px; overflow: hidden; font-size: 12px; line-height: 1.3; }
  .cookie-actions { gap: 7px; }
  .cookie-actions a { font-size: 0; }
  .cookie-actions a::after { content: "Więcej"; font-size: 12px; }
  .cookie-actions button { min-height: 36px; padding: 0 11px; border-radius: 5px; font-size: 12px; }
  .sales-band, .workflow, .pricing, .reviews, .gallery-section, .account { padding: 66px 18px; }
  .steps-grid, .gallery-grid, .reviews-grid, .account-grid, .account-dashboard { grid-template-columns: 1fr; }
  .shirt-canvas { min-height: 360px; }
  .tool-panel, .creator-card, .pricing-card, .auth-card, .user-panel { padding: 19px; }
  .subpage-hero { padding: 50px 18px 38px; }
  .subpage-hero h1 { font-size: 36px; }
  .discount-row { grid-template-columns: 1fr; }
  .order-preview .cart-canvas { min-height: 350px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .review-card { max-width: 290px; padding: 24px; }
  .product-copy { padding: 52px 20px; }
  .product-copy h1 { font-size: 42px; }
  .product-models { height: 340px; }
  .product-facts, .size-tables, .care, .care ul { grid-template-columns: 1fr; }
  .product-facts article { border-right: 0; border-bottom: 1px solid var(--rd-line); }
  .product-facts article:last-child { border-bottom: 0; }
  .sizes, .care { padding: 66px 18px; }
  .size-tables article { padding: 18px 14px; overflow-x: auto; }
}
