:root {
  --paper: #fffdfa; --warm-white: #fbf8f3; --cream: #f5efe6;
  --beige-dark: #bd9870; --accent-text: #80603f; --wine: #711d21; --wine-dark: #581518;
  --ink: #201e1b; --muted: #66615b; --line: #e7e0d8;
  --serif: "Playfair Display", Georgia, serif; --sans: "DM Sans", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #f1f1f1; }
body { margin: 0; color: var(--ink); background: #f1f1f1; font-family: var(--sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-150%); padding: 10px 15px; background: var(--wine); color: white; }
.skip-link:focus { transform: translateY(0); }
.page-shell { width: min(1320px, calc(100% - 48px)); margin: 42px auto 36px; overflow: hidden; border-radius: 0 0 22px 22px; background: var(--paper); box-shadow: 0 8px 32px rgba(47,37,28,.035); }

.site-header { height: 112px; display: grid; grid-template-columns: 240px 1fr 70px; align-items: center; padding: 0 36px; background: var(--paper); }
.logo { display: inline-flex; align-items: center; gap: 12px; justify-self: start; color: var(--wine); }
.logo-emblem { width: 58px; height: 58px; flex: 0 0 auto; object-fit: contain; }
.logo-copy { display: grid; line-height: 1; }
.logo-copy strong { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: .04em; }
.logo-copy small { margin-top: 8px; font-family: var(--serif); font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 18px; height: 100%; }
.main-nav a { white-space: nowrap; position: relative; display: flex; align-items: center; gap: 7px; padding: 46px 0 41px; font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.main-nav a::after { content: ""; position: absolute; right: 100%; bottom: 32px; left: 0; height: 1px; background: var(--wine); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a.is-active::after { right: 0; }
.main-nav a.is-active { color: var(--wine); }
.chevron { margin-top: -4px; font-size: 16px; }
.header-actions { display: flex; justify-self: end; gap: 19px; }
.header-actions button { width: 25px; height: 25px; padding: 2px; border: 0; background: transparent; cursor: pointer; }
.header-actions svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle { display: none; }

.hero { position: relative; height: auto; min-height: 740px; overflow: hidden; background: #efe7dc; }
.hero .hero-photo { position: absolute; inset: 0 0 0 47%; overflow: hidden; background: linear-gradient(135deg,#eadfce,#cdb092); }
.hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 53% 40%; }
.image-placeholder { position: relative; isolation: isolate; overflow: hidden; background-color: #d5c3ae; background-image: radial-gradient(circle at 25% 18%,rgba(255,255,255,.65),transparent 28%),linear-gradient(145deg,#e5d9ca,#bea182); }
.image-placeholder::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .11; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }
.hero-wash { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg,#fbf8f2 0%,rgba(251,248,242,.98) 31%,rgba(251,248,242,.82) 47%,rgba(251,248,242,.08) 69%,rgba(251,248,242,0) 100%),linear-gradient(0deg,#fbf8f2 0%,rgba(251,248,242,.06) 18%); }
.placeholder-tag { position: absolute; z-index: 3; right: 22px; top: 20px; padding: 7px 9px; border: 1px solid rgba(76,57,40,.25); color: rgba(76,57,40,.6); background: rgba(255,255,255,.25); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero-content { position: relative; z-index: 2; width: 52%; padding: 72px 0 190px 56px; }
.eyebrow { margin: 0 0 20px; color: var(--accent-text); font-size: 14px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 { margin: 0; font-size: clamp(49px,4.35vw,64px); line-height: 1.22; letter-spacing: -.035em; }
h1 em { color: var(--wine); font-style: normal; }
.hero-text { max-width: 475px; margin: 28px 0 0; color: var(--muted); font-size: 16px; line-height: 1.95; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.button { min-height: 51px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 13px 27px; border: 1px solid transparent; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: background .18s ease,color .18s ease,transform .18s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--wine); color: white; }
.button-primary:hover, .button-primary:focus-visible { background: var(--wine-dark); }
.button-outline { min-width: 173px; border-color: rgba(113,29,33,.65); color: var(--wine); background: rgba(255,255,255,.18); }
.button-outline:hover, .button-outline:focus-visible { background: var(--wine); color: white; }
.benefits { position: absolute; z-index: 2; right: 70px; bottom: 42px; left: 70px; display: grid; grid-template-columns: repeat(4,1fr); }
.benefit { min-width: 0; min-height: 82px; display: grid; grid-template-columns: 45px 1fr; gap: 16px; align-items: center; padding: 3px 18px; border-right: 1px solid rgba(81,65,51,.18); }
.benefit:first-child { padding-left: 0; }
.benefit:last-child { padding-right: 0; border-right: 0; }
.benefit svg { width: 38px; height: 38px; fill: none; stroke: var(--beige-dark); stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.benefit div { display: grid; }
.benefit strong { color: #27231f; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.benefit span { color: #79726a; font-size: 12px; }

.products { padding: 48px 66px 54px; background: var(--paper); }
.section-title { text-align: center; }
.section-title .eyebrow { margin-bottom: 12px; }
.section-title h2 { margin: 0; font-size: clamp(33px,3.1vw,43px); line-height: 1.2; letter-spacing: -.025em; }
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 42px; }
.product-card { overflow: hidden; background: white; box-shadow: 0 7px 22px rgba(51,40,29,.07); transition: transform .2s ease,box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(51,40,29,.11); }
.product-image { position: relative; height: 190px; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quality-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.product-image--canvas { background-image: linear-gradient(145deg,#eee9df,#c5b6a3); }
.mock-canvas { position: absolute; left: 18%; top: 15%; width: 70%; height: 60%; border-top: 18px solid rgba(247,244,236,.86); border-left: 18px solid rgba(247,244,236,.86); box-shadow: -5px -5px 0 rgba(121,88,54,.38),20px 24px 35px rgba(62,42,24,.12); transform: rotate(2deg); }
.product-image--frame { background-image: linear-gradient(145deg,#e3d5c2,#baa07e); }
.mock-frame { position: absolute; left: 23%; top: 18%; width: 60%; height: 62%; border-top: 24px solid rgba(147,98,53,.58); border-left: 24px solid rgba(147,98,53,.58); box-shadow: 18px 20px 30px rgba(61,40,21,.13); transform: rotate(-3deg); }
.product-image--linen { background-image: linear-gradient(145deg,#e6ded2,#c7bba9); }
.mock-linen { position: absolute; inset: 18% 8% 7% 12%; border-radius: 55% 6% 4% 12%; opacity: .55; background-image: repeating-linear-gradient(7deg,transparent 0 4px,#907f69 5px 6px),repeating-linear-gradient(96deg,transparent 0 4px,#faf5ec 5px 6px); transform: rotate(-8deg); }
.product-image--tools { background-image: linear-gradient(145deg,#d8cbb9,#bca585); }
.mock-tool { position: absolute; left: 47%; top: 12%; width: 42px; height: 124px; border-radius: 8px; border: 9px solid rgba(71,67,62,.62); transform: rotate(17deg); box-shadow: 44px 23px 0 -16px rgba(113,75,39,.55); }
.product-body { min-height: 232px; display: flex; flex-direction: column; padding: 22px 24px 21px; }
.product-body h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.product-body p { margin: 8px 0 18px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.product-body a { min-height: 44px; display: flex; align-items: center; margin-top: auto; color: var(--wine); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.product-body a span { margin-left: 8px; }

.quality { display: grid; grid-template-columns: 1fr 1.08fr; min-height: 500px; }
.quality-image { position: relative; min-height: 500px; background-image: linear-gradient(145deg,#c6b6a0,#997754); }
.quality-canvas { position: absolute; z-index: 1; left: -5%; top: -10%; width: 67%; height: 112%; background: #c9bba7; opacity: .82; border-radius: 0 15px 26px 0; background-image: repeating-linear-gradient(9deg,transparent 0 5px,rgba(102,80,60,.28) 6px 7px),repeating-linear-gradient(98deg,transparent 0 5px,rgba(251,247,238,.55) 6px 7px); transform: rotate(-8deg); }
.quality-wood { position: absolute; z-index: 2; right: -2%; width: 58%; height: 86px; border-radius: 3px; background: linear-gradient(0deg,#a97949,#d6b27e 45%,#ebce9b); box-shadow: 0 20px 30px rgba(54,35,18,.18); transform: rotate(-5deg); }
.quality-wood::after { content: ""; position: absolute; inset: 14px 0 auto; height: 2px; background: rgba(117,72,34,.22); box-shadow: 0 28px 0 rgba(117,72,34,.16); }
.quality-wood--one { top: 38%; }
.quality-wood--two { top: 54%; right: 8%; }
.placeholder-tag--light { z-index: 4; color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.42); }
.quality-content { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 48px 44px; background: var(--warm-white); }
.quality-content .eyebrow { margin-bottom: 15px; }
.quality-content h2 { margin: 0; font-size: clamp(31px,3vw,43px); line-height: 1.24; letter-spacing: -.025em; }
.short-rule { width: 28px; height: 1px; margin: 19px 0 16px; background: var(--beige-dark); }
.quality-list { display: grid; gap: 17px; }
.quality-list article { display: grid; grid-template-columns: 51px 1fr; gap: 15px; align-items: center; }
.quality-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-text); background: #f3ede5; font-family: var(--serif); font-size: 28px; }
.quality-icon--grid { font-family: Arial,sans-serif; font-size: 21px; }
.quality-list h3 { margin: 0; font-family: var(--sans); font-size: 16px; font-weight: 700; }
.quality-list p { max-width: 460px; margin: 3px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.quality-button { max-width: 100%; align-self: flex-start; min-width: 276px; margin: 28px 0 0; min-height: 43px; }

.brand-strip { min-height: 104px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 50px; align-items: center; padding: 20px 13%; background: var(--cream); }
.brand-strip > p { margin: 0; color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-align: center; text-transform: uppercase; }
.logo--footer .logo-emblem { width: 48px; height: 48px; }
.logo--footer .logo-copy strong { font-size: 25px; }
.logo--footer .logo-copy small { font-size: 12px; margin-top: 5px; }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.formats { padding: 54px 66px 58px; background: var(--warm-white); border-top: 1px solid var(--line); }
.formats-intro { max-width: 730px; margin: 22px auto 0; color: var(--muted); font-size: 16px; line-height: 1.95; text-align: center; }
.format-types { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 38px; }
.format-type { display: flex; flex-direction: column; align-items: center; padding: 28px 26px 26px; text-align: center; background: var(--paper); box-shadow: 0 7px 22px rgba(51,40,29,.06); }
.format-figure { height: 88px; display: flex; align-items: flex-end; margin-bottom: 18px; }
.format-shape { display: grid; place-items: center; width: 108px; border: 1px solid var(--beige-dark); background: rgba(189,152,112,.13); }
.format-shape b { color: var(--accent-text); font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.format-shape--f { height: 88px; }
.format-shape--p { height: 80px; }
.format-shape--m { height: 72px; }
.format-type h3 { margin: 0; font-size: 19px; }
.format-type p { max-width: 270px; margin: 9px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.format-type p.format-example { margin: 8px 0 0; color: var(--accent-text); font-size: 14px; font-weight: 700; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.format-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.format-table-wrap { overflow-x: auto; background: var(--paper); box-shadow: 0 7px 22px rgba(51,40,29,.06); }
.format-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.format-table th, .format-table td { padding: 9px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.format-table thead th { background: var(--cream); border-bottom-color: rgba(189,152,112,.45); color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.format-table tbody th { width: 58px; color: var(--wine); font-family: var(--serif); font-size: 15px; font-weight: 600; }
.format-table td { color: var(--muted); font-variant-numeric: tabular-nums; }
.format-table tbody tr:last-child th, .format-table tbody tr:last-child td { border-bottom: 0; }
.format-table tbody tr:hover th, .format-table tbody tr:hover td { background: rgba(245,239,230,.55); }
.formats-footer { display: flex; align-items: center; justify-content: space-between; gap: 34px; margin-top: 26px; }
.formats-note { max-width: 630px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.formats-footer .button { flex: 0 0 auto; }

@media (max-width: 1100px) {
  .page-shell { width: min(100% - 28px,1000px); margin-top: 20px; }
  .site-header { grid-template-columns: 240px 1fr 70px; padding: 0 30px; }
  .logo-copy strong { font-size: 23px; } .logo-emblem { width: 50px; height: 50px; }
  .main-nav { gap: 18px; } .main-nav a { font-size: 12px; }
  .hero-content { padding-left: 48px; } .benefits { right: 48px; left: 48px; }
  .benefit { padding-inline: 18px; } .products { padding-inline: 42px; }
  .quality-content { padding-inline: 46px; } .quality-button { margin-left: 0; }
}
@media (max-width: 840px) {
  .page-shell { width: 100%; margin: 0; border-radius: 0; }
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; padding-bottom: 0; }
  .hero .hero-photo { position: relative; inset: auto; order: 2; height: 430px; margin-top: 0; }
  .hero-photo img { object-position: 50% 40%; }
  .hero-wash { top: 0; bottom: auto; height: 410px; background: linear-gradient(180deg,#fbf8f2 0%,#fbf8f2 62%,rgba(251,248,242,.94) 77%,rgba(251,248,242,0) 100%); }
  .hero-content { order: 1; width: 100%; min-height: 410px; padding: 62px 28px 38px; }
  h1 { font-size: clamp(42px,8.3vw,59px); } .hero-text { max-width: 580px; }
  .benefits { position: relative; right: auto; bottom: auto; left: auto; order: 3; grid-template-columns: 1fr 1fr; padding: 17px 28px 22px; background: var(--warm-white); }
  .benefit { min-height: 74px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .benefit:nth-child(2) { border-right: 0; } .benefit:nth-child(n+3) { border-bottom: 0; }
  .products { padding: 58px 28px; } .product-grid { grid-template-columns: 1fr 1fr; }
  .product-image { height: 230px; } .quality { grid-template-columns: 1fr; }
  .quality-image { min-height: 540px; } .quality-content { padding: 65px 48px; }
  .brand-strip { grid-template-columns: 1fr; gap: 22px; padding: 35px 20px; }
}
@media (max-width: 520px) {
  .site-header { height: 78px; padding-inline: 17px; }
  .logo-emblem { width: 44px; height: 44px; } .logo-copy strong { font-size: 21px; }
  .logo-copy small { margin-top: 5px; font-size: 12px; }
  .hero-content { min-height: 450px; padding: 54px 18px 34px; }
  .eyebrow { font-size: 12px; } h1 { font-size: clamp(39px,11.6vw,52px); line-height: 1.15; }
  .hero-text { margin-top: 22px; font-size: 15px; line-height: 1.8; }
  .hero-buttons { flex-direction: column; align-items: flex-start; gap: 11px; margin-top: 26px; }
  .hero-buttons .button { width: 190px; } .hero .hero-photo { height: 340px; }
  .hero-wash { height: 455px; }
  .benefits { grid-template-columns: 1fr; padding: 14px 18px; }
  .benefit, .benefit:first-child, .benefit:last-child { padding: 13px 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .benefit:last-child { border-bottom: 0; }
  .products { padding: 50px 18px; } .section-title h2 { font-size: 34px; }
  .product-grid { grid-template-columns: 1fr; gap: 26px; margin-top: 34px; }
  .product-image { height: 245px; } .quality-image { min-height: 400px; }
  .quality-content { padding: 50px 20px 55px; } .quality-content h2 { font-size: 33px; }
  .quality-list article { grid-template-columns: 45px 1fr; } .quality-icon { width: 41px; height: 41px; }
  .quality-button { width: 100%; min-width: 0; padding-inline: 14px; }
}
@media (max-width: 1100px) {
  .formats { padding-inline: 42px; }
}
@media (max-width: 840px) {
  .format-types { grid-template-columns: 1fr; gap: 14px; }
  .format-tables { grid-template-columns: 1fr; }
  .formats-footer { flex-direction: column; align-items: flex-start; gap: 20px; }
  .formats-footer .button { width: 100%; }
}
@media (max-width: 560px) {
  .formats { padding: 50px 18px 54px; }
  .formats-intro { font-size: 15px; text-align: left; }
  .format-table th, .format-table td { padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* --- Podstrona: krosna i wymiary --- */
.page-hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; background: var(--warm-white); border-top: 1px solid var(--line); }
.page-hero-content { padding: 58px 66px 62px; }
.page-hero h1 { font-size: clamp(38px,3.6vw,52px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 26px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--wine); }
.breadcrumb span[aria-hidden] { color: var(--accent-text); }
.page-hero-text { max-width: 520px; margin: 26px 0 0; color: var(--muted); font-size: 16px; line-height: 1.95; }
.page-hero .hero-buttons { margin-top: 30px; }
.page-hero-photo { position: relative; min-height: 380px; background: linear-gradient(145deg,#e5d9ca,#bea182); }
.page-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.specs { padding: 54px 66px 58px; background: var(--paper); }
.spec-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 36px; }
.spec-card { display: flex; flex-direction: column; padding: 26px 26px 28px; background: var(--warm-white); box-shadow: 0 7px 22px rgba(51,40,29,.06); }
.spec-card h3 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.spec-card p { margin: 9px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.spec-card--text { justify-content: flex-start; }
.spec-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.spec-list li { position: relative; padding-left: 18px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.spec-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; border: 1px solid var(--beige-dark); }

.sizes { padding: 54px 66px 58px; background: var(--cream); border-top: 1px solid var(--line); }
.size-groups { display: grid; grid-template-columns: repeat(3,1fr); align-items: start; gap: 20px; margin-top: 36px; }
.size-group { padding: 26px 24px 28px; background: var(--paper); box-shadow: 0 7px 22px rgba(51,40,29,.06); }
.size-group h3 { margin: 0; font-size: 20px; }
.size-meta { margin: 5px 0 0; color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.size-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.size-list li { padding: 8px 6px; background: var(--warm-white); border: 1px solid var(--line); color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; text-align: center; }
.sizes .formats-footer { margin-top: 28px; }

.badge { display: inline-block; padding: 5px 11px; border: 1px solid rgba(189,152,112,.6); border-radius: 999px; color: var(--wine); background: rgba(255,255,255,.6); font-size: 12px; font-weight: 700; letter-spacing: .13em; }

@media (max-width: 1100px) {
  .page-hero-content { padding: 48px 42px 52px; }
  .specs, .sizes { padding-inline: 42px; }
}
@media (max-width: 840px) {
  .page-hero { grid-template-columns: 1fr; }
  .page-hero-content { padding: 44px 28px 40px; }
  .page-hero-photo { min-height: 300px; order: 2; }
  .specs, .sizes { padding: 50px 28px 54px; }
  .spec-grid, .size-groups { grid-template-columns: 1fr; gap: 14px; }
  .size-list { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 560px) {
  .page-hero-content { padding: 38px 18px 36px; }
  .page-hero h1 { font-size: clamp(34px,9vw,44px); }
  .page-hero-text { font-size: 15px; }
  .page-hero .hero-buttons { flex-direction: column; align-items: flex-start; gap: 11px; }
  .page-hero .hero-buttons .button { width: 100%; }
  .specs, .sizes { padding: 46px 18px 50px; }
  .size-list { grid-template-columns: repeat(2,1fr); }
}

/* Larger navigation text switches to the compact menu before it crowds the logo. */
@media (max-width: 1200px) {
  .site-header { position: relative; height: 88px; grid-template-columns: 1fr auto; padding: 0 24px; }
  .header-actions { display: none; }
  .menu-toggle { position: relative; z-index: 11; width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { width: 25px; height: 1px; display: block; background: var(--ink); transition: transform .18s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 90px 10vw; visibility: hidden; opacity: 0; background: var(--paper); transform: translateY(-12px); transition: opacity .18s ease,transform .18s ease,visibility .18s; }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav a { padding: 10px 0; font-family: var(--serif); font-size: 29px; font-weight: 500; text-transform: none; }
  .main-nav a::after { bottom: 7px; }
}

@media (min-width: 841px) and (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-content { width: 60%; }
  .benefit { grid-template-columns: 1fr; gap: 8px; }
  .quality { grid-template-columns: 1fr 1fr; }
  .quality-content { padding-inline: 28px; }
}
@media (max-width: 840px) {
  .hero-content { padding-bottom: 38px; }
  .hero { min-height: 0; }
  .main-nav { overflow-y: auto; }
}
@media (max-width: 520px) {
  .site-header { height: 78px; padding-inline: 17px; }
  .hero-content { padding-bottom: 34px; }
  .hero-buttons .button { width: auto; min-width: 210px; max-width: 100%; }
  .product-body { min-height: 0; padding: 24px; }
  .product-body h3 { font-size: 24px; }
  .format-table th, .format-table td { padding-inline: 8px; }
  .breadcrumb { flex-wrap: wrap; }
  .format-table thead th { letter-spacing: .02em; }
}

/* Technical dimensions use clear labels and the same scale in both diagrams. */
.section-diagram { margin: 0 0 24px; }
.section-diagram svg { display: block; width: 100%; height: auto; }
.section-diagram text { font-family: var(--sans); font-size: 16px; font-weight: 600; fill: var(--ink); }
.section-diagram .diagram-axis { font-size: 14px; font-weight: 400; fill: var(--muted); }
.section-diagram .diagram-note { font-size: 13px; font-weight: 500; fill: #8a6a45; }
.section-diagram figcaption { color: var(--muted); font-size: 12px; line-height: 1.5; }
.spec-card .spec-size { font-family: var(--sans); font-size: 28px; font-weight: 600; letter-spacing: 0; font-variant-numeric: lining-nums tabular-nums; }
.spec-size span { font-size: 18px; font-weight: 400; color: var(--muted); }
.spec-dimensions { margin: 18px 0; display: grid; gap: 8px; font-size: 15px; }
.spec-dimensions div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.spec-dimensions dt { color: var(--muted); }
.spec-dimensions dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
#o-firmie { scroll-margin-top: 24px; }
