/*
Theme Name: KariArt
Theme URI: https://kariart.pl/
Author: KariArt
Description: Dedykowany motyw KariArt odtworzony z finalnego prototypu.
Version: 0.1.13
Text Domain: kariart
*/

:root {
  --navy: #1e3448;
  --steel: #5f7f99;
  --bg: #f7f8fa;
  --text: #20262d;
  --blue: #1665a8;
  --blue-hover: #0f4e82;
  --card: #ffffff;
  --border: #d9e1e8;
  --muted: #677481;
  --soft-blue: #eaf2f8;
  --success: #287455;
  --shadow: 0 16px 44px rgba(30, 52, 72, 0.09);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
/* AC anchors use one combined offset for the site header and sticky section navigation. */
html:has(.ac-product-information),
html:has(.pipe-product-information),
html:has(.bin-product-information) { scroll-padding-top: 0; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(22, 101, 168, 0.28); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); letter-spacing: -0.03em; line-height: 1.12; }
h1 { font-size: clamp(2.55rem, 5vw, 5.15rem); }
h2 { font-size: clamp(2rem, 3.2vw, 3.35rem); }
h3 { font-size: 1.32rem; }
p { color: var(--muted); }

.section-pad { padding-left: max(24px, calc((100vw - var(--max)) / 2)); padding-right: max(24px, calc((100vw - var(--max)) / 2)); }
.section { padding-top: 112px; padding-bottom: 112px; }
.page-top { padding-top: 142px; }
.shop-page,
.ac-product-page { padding-top: 88px; }
.eyebrow { margin-bottom: 16px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-light { color: #b8d5ea; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 21px; border: 1px solid transparent; border-radius: 8px; font-weight: 750; line-height: 1.2; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease; }
.button:not(:disabled):hover { transform: translateY(-1px); }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-hover); }
.button-secondary { border-color: var(--border); background: #fff; color: var(--navy); }
.button-secondary:hover { border-color: var(--steel); background: var(--soft-blue); }
.button-white { background: #fff; color: var(--navy); }
.button-white:hover { background: #eaf2f8; }
.button-large { min-height: 56px; padding: 15px 27px; }
.button-full { width: 100%; }
.button:disabled { cursor: not-allowed; opacity: .45; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 750; }
.text-link span { transition: transform .18s ease; }
.text-link:hover span { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; height: 78px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--border); box-shadow: 0 4px 18px rgba(30, 52, 72, .045); backdrop-filter: blur(16px); }
.header-inner { width: min(calc(100% - 40px), 1540px); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.brand { width: 126px; height: 50px; flex: 0 0 auto; overflow: hidden; border-radius: 5px; background: #000; }
.brand img { width: 100%; height: 100%; object-fit: cover; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(10px, 1.3vw, 24px); }
.main-nav a { position: relative; padding: 28px 0 25px; color: #485561; font-size: .88rem; font-weight: 670; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 20px; height: 2px; background: var(--blue); transition: right .18s ease; }
.main-nav a:hover, .main-nav a.is-active { color: var(--navy); }
.main-nav a:hover::after, .main-nav a.is-active::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.icon-link { width: 42px; height: 42px; position: relative; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.icon-link:hover { background: var(--soft-blue); border-color: #bdcedc; }
.account-icon { width: 20px; height: 20px; position: relative; }
.account-icon::before { content: ""; position: absolute; width: 7px; height: 7px; left: 5px; top: 0; border: 1.8px solid var(--navy); border-radius: 50%; background: #fff; }
.account-icon::after { content: ""; position: absolute; width: 16px; height: 8px; left: 1px; bottom: 0; border: 1.8px solid var(--navy); border-bottom: 0; border-radius: 10px 10px 2px 2px; }
.cart-icon { width: 20px; height: 18px; position: relative; }
.cart-icon::before { content: ""; position: absolute; width: 15px; height: 9px; left: 3px; top: 3px; border: 1.8px solid var(--navy); border-radius: 2px 2px 4px 4px; transform: skew(-5deg); }
.cart-icon::after { content: ""; position: absolute; width: 15px; height: 4px; left: 3px; bottom: 0; background: radial-gradient(circle at 2px 2px, var(--navy) 0 2px, transparent 2.2px), radial-gradient(circle at 13px 2px, var(--navy) 0 2px, transparent 2.2px); }
.cart-count { position: absolute; min-width: 19px; height: 19px; right: -7px; top: -7px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; border-radius: 10px; background: var(--blue); color: #fff; font-size: .68rem; font-weight: 800; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--border); border-radius: 9px; background: #fff; padding: 11px; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--navy); }

/* Hero */
.hero { min-height: calc(75vh - 58px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, .9fr); align-items: center; gap: clamp(40px, 6vw, 88px); padding-top: 44px; padding-bottom: 44px; background: radial-gradient(circle at 85% 20%, rgba(95, 127, 153, .13), transparent 35%), linear-gradient(130deg, #f9fafb 0%, #f3f6f8 100%); overflow: hidden; }
.hero-copy { max-width: 740px; }
.hero h1 { max-width: 780px; margin-bottom: 24px; font-size: clamp(2.45rem, 4.35vw, 4.45rem); }
.hero-lead { max-width: 650px; margin-bottom: 34px; font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 42px; }
.hero-proof span { padding: 8px 12px; border: 1px solid var(--border); border-radius: 99px; background: rgba(255, 255, 255, .75); color: #52606d; font-size: .82rem; font-weight: 700; }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; width: 65%; height: 80%; right: -12%; top: -10%; border: 1px solid rgba(95, 127, 153, .22); border-radius: 50%; }
.hero-image-wrap { position: relative; aspect-ratio: 1 / 1; max-height: 500px; overflow: hidden; border-radius: 28px 4px 28px 4px; background: #dfe6eb; box-shadow: var(--shadow); }
.hero-image-wrap > img { width: 100%; height: 100%; object-fit: cover; }
.hero-label { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 15px; padding: 15px 18px; border-radius: 10px; background: rgba(30, 52, 72, .92); backdrop-filter: blur(10px); color: #fff; }
.hero-label > span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; font-size: .75rem; font-weight: 800; }
.hero-label p { margin: 0; color: #fff; font-size: .9rem; line-height: 1.3; }

/* Marketing */
.section-heading { max-width: 800px; margin-bottom: 48px; }
.section-heading h2 { margin-bottom: 15px; }
.section-heading p:last-child { margin-bottom: 0; }
.home-products { padding-top: 24px; padding-bottom: 76px; }
.home-products .section-heading { margin-bottom: 20px; }
.split-heading { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 50px; }
.split-heading > div { max-width: 820px; }
.split-heading > p { max-width: 380px; }
.centered-heading { margin-left: auto; margin-right: auto; text-align: center; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 24px 56px rgba(30, 52, 72, .13); }
.product-card-image { aspect-ratio: 1.22 / 1; overflow: hidden; background: #eef2f5; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-card-image img { transform: scale(1.025); }
.product-card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 28px; }
.product-card-body h3 { margin-bottom: 12px; font-size: 1.55rem; }
.product-card-body > p:not(.eyebrow) { margin-bottom: 28px; }
.product-card-body .button { margin-top: auto; }
.benefits-section { padding-top: 100px; padding-bottom: 105px; background: var(--navy); color: #fff; }
.benefits-section h2 { color: #fff; }
.benefit-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.benefit { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 20px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; text-align: center; }
.benefit-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #d8e9f5; font-weight: 800; }
.benefit-symbol { position: relative; display: block; color: currentColor; }
.icon-ruler { width: 27px; height: 10px; border: 2px solid currentColor; border-radius: 2px; transform: rotate(-35deg); }
.icon-ruler::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 4px, currentColor 4px 5px); opacity: .9; }
.icon-calculator { width: 21px; height: 27px; border: 2px solid currentColor; border-radius: 3px; }
.icon-calculator::before { content: ""; position: absolute; left: 3px; right: 3px; top: 3px; height: 5px; border: 1px solid currentColor; border-radius: 1px; }
.icon-calculator::after { content: ""; position: absolute; width: 3px; height: 3px; left: 4px; top: 13px; border-radius: 1px; background: currentColor; box-shadow: 5px 0 currentColor, 10px 0 currentColor, 0 5px currentColor, 5px 5px currentColor, 10px 5px currentColor, 0 10px currentColor, 5px 10px currentColor, 10px 10px currentColor; }
.icon-swatch { width: 25px; height: 25px; border: 2px solid currentColor; border-radius: 56% 48% 55% 45%; transform: rotate(-22deg); }
.icon-swatch::before { content: ""; position: absolute; width: 4px; height: 4px; left: 5px; top: 5px; border-radius: 50%; background: currentColor; box-shadow: 8px -1px currentColor, -1px 8px currentColor; }
.icon-swatch::after { content: ""; position: absolute; width: 7px; height: 7px; right: -3px; bottom: 1px; border-radius: 50%; background: var(--navy); }
.icon-poland { width: 27px; height: 18px; overflow: hidden; border: 2px solid currentColor; border-radius: 2px; background: linear-gradient(to bottom, #fff 0 50%, #dc2848 50% 100%); }
.icon-metal { width: 27px; height: 27px; background: currentColor; clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%); }
.icon-metal::after { content: ""; position: absolute; width: 10px; height: 10px; left: 50%; top: 50%; border-radius: 50%; background: var(--navy); transform: translate(-50%, -50%); }
.icon-spray { width: 17px; height: 24px; border: 2px solid currentColor; border-radius: 3px 3px 6px 6px; transform: rotate(12deg); }
.icon-spray::before { content: ""; position: absolute; width: 10px; height: 5px; left: 1px; top: -7px; border: 2px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }
.icon-spray::after { content: ""; position: absolute; width: 3px; height: 3px; right: -8px; top: -6px; border-radius: 50%; background: currentColor; box-shadow: 6px -3px currentColor, 7px 3px currentColor; }
.benefit strong { font-size: .9rem; }
.process-section { padding-bottom: 68px; background: #fff; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.process-step { position: relative; padding: 34px 36px 0 0; }
.process-step + .process-step { padding-left: 36px; border-left: 1px solid var(--border); }
.process-step > span { display: block; margin-bottom: 46px; color: var(--steel); font-size: .76rem; font-weight: 800; letter-spacing: .14em; }
.process-step h3 { margin-bottom: 12px; }
.showcase-section { padding-top: 68px; background: var(--bg); }
.showcase-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.showcase-grid figure { position: relative; min-height: 430px; margin: 0; overflow: hidden; border-radius: 13px; background: #e9eef2; }
.showcase-grid img { width: 100%; height: 100%; object-fit: cover; }
.showcase-grid figcaption, .realization-grid figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; border-radius: 7px; background: rgba(30, 52, 72, .9); color: #fff; font-size: .82rem; font-weight: 700; }
.source-note { margin: 16px 0 0; font-size: .82rem; }
.cta-section { min-height: 300px; display: flex; align-items: center; justify-content: space-between; gap: 50px; padding-top: 66px; padding-bottom: 66px; background: linear-gradient(110deg, #1665a8, #1e4f77); }
.cta-section h2 { max-width: 900px; margin: 0; color: #fff; }

/* Footer */
.site-footer { background: #15293a; color: #fff; }
.footer-grid { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; padding: 76px 0 58px; }
.site-footer h3 { margin-bottom: 22px; color: #fff; font-size: .92rem; letter-spacing: .02em; }
.site-footer a, .site-footer p { display: block; margin: 0 0 10px; color: #bfcbd5; font-size: .86rem; }
.site-footer a:hover { color: #fff; }
.footer-prototype-note { padding: 13px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.05); }
.footer-prototype-note strong { display: inline-block; margin-bottom: 7px; color: #fff; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-prototype-note p { margin: 0; }
.footer-brand img { width: 185px; height: 100px; object-fit: contain; object-position: left center; margin-bottom: 22px; }
.footer-brand p { max-width: 320px; }
.footer-bottom { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; display: flex; justify-content: space-between; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .12); color: #91a4b4; font-size: .78rem; }

/* Intro and catalog pages */
.page-intro { max-width: 930px; margin-bottom: 70px; }
.page-intro h1 { margin-bottom: 24px; font-size: clamp(2.55rem, 4.7vw, 4.8rem); }
.page-intro > p:last-child { max-width: 740px; font-size: 1.1rem; }
.shop-grid { margin-bottom: 20px; }
.catalog-section { padding: 58px 0; border-top: 1px solid var(--border); }
.catalog-section .section-heading { margin-bottom: 30px; }
.catalog-section .section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.patterns-page { padding-top: 118px; }
.patterns-page .page-intro { max-width: 980px; margin-bottom: 30px; }
.patterns-page .page-intro h1 { margin-bottom: 18px; font-size: clamp(2.35rem, 4.1vw, 4.15rem); }
.patterns-page .page-intro > p:last-child { max-width: 800px; }
.pattern-jump-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.pattern-jump-nav a { padding: 11px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--navy); font-size: .86rem; font-weight: 750; transition: .2s ease; }
.pattern-jump-nav a:hover { border-color: #9bb9cf; background: var(--soft-blue); color: var(--blue); }
.pattern-catalog-section { scroll-margin-top: 98px; }
.catalog-pattern-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.pattern-gallery { align-items: stretch; }
.pattern-tile { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(30, 52, 72, .055); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.pattern-tile:hover { border-color: #a9bfd0; box-shadow: 0 12px 28px rgba(30, 52, 72, .1); transform: translateY(-2px); }
.pattern-tile.is-selected { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(22, 101, 168, .17), 0 12px 28px rgba(22, 101, 168, .12); background: #f2f8fc; }
.pattern-tile-primary { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 10px; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: center; }
.pattern-sample { width: 100%; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: var(--bg); }
.pattern-gallery.is-horizontal .pattern-sample { aspect-ratio: 4 / 3; }
.pattern-gallery.is-vertical .pattern-sample { aspect-ratio: 3 / 4; }
.pattern-sample img { width: 100%; height: 100%; display: block; object-fit: contain; }
.pattern-tile-label { display: block; margin-top: auto; padding: 3px 2px 2px; color: var(--navy); font-size: .86rem; font-weight: 800; }
.pattern-check { position: absolute; z-index: 2; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--blue); color: #fff; font-size: .82rem; font-weight: 900; box-shadow: 0 4px 12px rgba(15, 78, 130, .28); }
.pattern-zoom { position: absolute; z-index: 3; top: 8px; left: 8px; width: 31px; height: 31px; border: 1px solid rgba(30, 52, 72, .16); border-radius: 50%; background: rgba(255,255,255,.94); cursor: pointer; box-shadow: 0 4px 12px rgba(30, 52, 72, .14); }
.pattern-zoom::before { content: ""; position: absolute; left: 8px; top: 7px; width: 9px; height: 9px; border: 2px solid var(--navy); border-radius: 50%; }
.pattern-zoom::after { content: ""; position: absolute; left: 18px; top: 18px; width: 7px; height: 2px; border-radius: 2px; background: var(--navy); transform: rotate(45deg); transform-origin: left center; }
.pattern-modal-open { overflow: hidden; }
.pattern-modal-backdrop { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(18, 35, 49, .7); backdrop-filter: blur(5px); }
.pattern-modal { position: relative; width: min(920px, 96vw); max-height: 92vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); overflow: auto; border: 1px solid rgba(255,255,255,.45); border-radius: 18px; background: #fff; box-shadow: 0 26px 70px rgba(10, 28, 42, .32); }
.pattern-modal-image { min-height: 520px; display: grid; place-items: center; padding: 28px; background: var(--bg); }
.pattern-modal-image img { width: 100%; height: min(68vh, 650px); object-fit: contain; }
.pattern-modal-copy { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: 42px 34px; }
.pattern-modal-copy h2 { margin: 8px 0 28px; font-size: clamp(2.1rem, 4vw, 3.5rem); }
.pattern-modal-close { position: absolute; z-index: 4; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; font-size: 1.55rem; line-height: 1; box-shadow: 0 5px 16px rgba(30,52,72,.12); }
.catalog-color-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.catalog-color-grid > div { padding: 10px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.catalog-color-grid span { display: block; height: 86px; margin-bottom: 9px; border: 1px solid rgba(0,0,0,.1); border-radius: 5px; }
.catalog-color-grid strong { font-size: .78rem; }
.oak-sample-card { width: 250px; display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.oak-sample-card .oak-swatch { width: 70px; height: 70px; }
.oak-sample-card small { display: block; color: var(--muted); }
.oak-swatch { display: block; border-radius: 6px; background: repeating-linear-gradient(98deg, #a65f27 0, #b97132 9px, #8e4f22 11px, #c4823f 19px); }
.measure-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.measure-grid article { overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; min-height: 350px; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.measure-grid article > img { width: 100%; height: 100%; object-fit: contain; padding: 16px; background: #fff; }
.measure-grid article > div { padding: 38px 30px; background: #f0f4f7; }
.measure-grid article > div > span { color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .14em; }
.measure-grid h2 { margin: 15px 0; font-size: 1.7rem; }
.realization-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 360px; gap: 16px; }
.realization-grid figure { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: #e7edf1; }
.realization-grid figure.is-wide { grid-column: span 2; }
.realization-grid img { width: 100%; height: 100%; object-fit: cover; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-image { overflow: hidden; border-radius: 15px; background: #e8edf1; }
.about-image img { width: 100%; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy h3 { margin: 38px 0 15px; }
.about-company-layout { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 52px; align-items: stretch; }
.about-production-panel { position: relative; overflow: hidden; min-height: 560px; padding: 42px; border-radius: 16px; background: linear-gradient(145deg, #1e3448 0%, #294b65 100%); color: #fff; box-shadow: var(--shadow); }
.about-production-panel::before { content: ""; position: absolute; inset: 0; opacity: .12; background: repeating-linear-gradient(135deg, transparent 0 34px, rgba(255,255,255,.32) 34px 35px); pointer-events: none; }
.about-production-panel > * { position: relative; z-index: 1; }
.about-production-intro { max-width: 620px; }
.about-production-intro .eyebrow { color: #9fc8e7; }
.about-production-intro h2 { max-width: 570px; margin: 12px 0 18px; color: #fff; font-size: clamp(2rem, 3vw, 3rem); }
.about-production-intro > p:last-child { max-width: 560px; color: #d9e5ed; }
.about-production-stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 42px; }
.about-production-stages article { min-height: 148px; padding: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: rgba(255,255,255,.08); backdrop-filter: blur(2px); }
.about-production-stages span { display: block; margin-bottom: 22px; color: #8cc4ed; font-size: .74rem; font-weight: 850; letter-spacing: .14em; }
.about-production-stages strong, .about-production-stages small { display: block; }
.about-production-stages strong { margin-bottom: 8px; color: #fff; font-size: 1rem; }
.about-production-stages small { color: #c8d8e3; font-size: .78rem; line-height: 1.5; }
.about-company-copy { align-self: center; padding: 24px 0; }
.about-company-copy h2 { margin: 12px 0 22px; font-size: clamp(2rem, 3.1vw, 3.25rem); }
.about-company-copy > p:not(.eyebrow) { color: var(--muted); }
.about-values-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; margin-top: 38px; }
.about-values-grid article { padding-top: 17px; border-top: 2px solid var(--border); }
.about-values-grid strong, .about-values-grid span { display: block; }
.about-values-grid strong { margin-bottom: 8px; color: var(--navy); font-size: .95rem; }
.about-values-grid span { color: var(--muted); font-size: .78rem; line-height: 1.55; }
.muted-list li::before { color: var(--steel) !important; }
.contact-layout { display: grid; grid-template-columns: 1.45fr .75fr; gap: 30px; align-items: start; }
.contact-form { padding: 35px; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.contact-card { padding: 36px; border-radius: 13px; background: var(--navy); color: #fff; }
.contact-card h2 { color: #fff; }
.contact-card > div { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-card span, .contact-card strong { display: block; }
.contact-card span { margin-bottom: 5px; color: #a9bdcc; font-size: .8rem; }
.contact-card p { margin-top: 25px; color: #a9bdcc; }
.placeholder-page { min-height: 700px; }
.placeholder-card { max-width: 760px; padding: 38px; border: 1px solid var(--border); border-radius: 13px; background: #fff; }
.placeholder-card > span { display: inline-block; margin-bottom: 12px; padding: 6px 10px; border-radius: 99px; background: #fff0db; color: #8f5600; font-size: .76rem; font-weight: 800; }
.placeholder-card p { margin-bottom: 25px; }

/* Product detail */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 32px; color: #778490; font-size: .82rem; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs strong { color: var(--navy); }
.product-page { padding-bottom: 100px; }
.product-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(500px, 1.05fr); gap: clamp(35px, 5vw, 82px); align-items: start; }
.product-gallery-column { position: sticky; top: 108px; }
.main-product-image { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; border-radius: 15px; background: #edf1f4; }
.main-product-image > img { width: 100%; height: 100%; object-fit: contain; }
.ac-main-product-image > img { object-fit: cover; object-position: center; transform: scale(1.08); }
.image-source-badge { position: absolute; right: 14px; top: 14px; padding: 7px 10px; border-radius: 6px; background: rgba(255,255,255,.9); color: var(--navy); font-size: .7rem; font-weight: 800; }
.missing-image-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px; text-align: center; }
.missing-image-placeholder > span { color: var(--blue); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.missing-image-placeholder strong { color: var(--navy); font-size: 1.3rem; }
.missing-image-placeholder p { margin: 0; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 12px; }
.gallery-thumbs button { aspect-ratio: 1 / 1; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 8px; background: #e9eef2; cursor: pointer; }
.gallery-thumbs button.is-selected { border-color: var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.product-facts > div { padding: 13px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.product-facts span, .product-facts strong { display: block; }
.product-facts span { margin-bottom: 3px; color: var(--muted); font-size: .7rem; }
.product-facts strong { color: var(--navy); font-size: .8rem; }
.product-heading { margin-bottom: 26px; }
.product-heading h1 { margin-bottom: 18px; font-size: clamp(2.2rem, 4.1vw, 4.15rem); }
.product-heading > p:last-child { max-width: 720px; font-size: 1.04rem; }

/* Configurator */
.configurator { border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 16px 38px rgba(30,52,72,.07); }
.config-progress-wrap { padding: 21px 24px 16px; border-bottom: 1px solid var(--border); }
.config-progress-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; color: var(--muted); font-size: .78rem; }
.config-progress-meta strong { color: var(--navy); }
.config-progress { height: 5px; overflow: hidden; border-radius: 99px; background: #e7edf2; }
.config-progress span { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width .25s ease; }
.price-panel { position: sticky; top: 78px; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 24px; border-bottom: 1px solid var(--border); background: #eef5fa; }
.price-panel span, .price-panel strong { display: block; }
.price-panel span { color: #627383; font-size: .72rem; }
.price-panel strong { color: var(--navy); font-size: 1.15rem; }
.demo-badge { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #a9c3d6; border-radius: 99px; color: var(--blue) !important; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.config-step { min-height: 455px; padding: 27px 24px 12px; }
.config-step-title { display: flex; gap: 15px; margin-bottom: 24px; }
.config-step-title > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 800; }
.config-step-title h2 { margin: 0 0 6px; font-size: 1.5rem; }
.config-step-title p { margin: 0; font-size: .88rem; }
.field-grid { display: grid; gap: 14px; }
.three-fields { grid-template-columns: repeat(3, 1fr); }
.two-fields { grid-template-columns: repeat(2, 1fr); }
.field-grid label, .full-field, .compact-field { display: block; }
.field-grid label > span, .full-field > span, .compact-field > span, .file-field > span { display: block; margin-bottom: 7px; color: var(--navy); font-size: .82rem; font-weight: 720; }
label small { color: var(--muted); font-weight: 500; }
input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); }
input, select { height: 52px; padding: 0 13px; }
textarea { min-height: 110px; padding: 13px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #b8c7d3; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
.dimension-comparison { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 20px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: #fafbfc; }
.dimension-comparison span, .dimension-comparison strong { display: block; }
.dimension-comparison span { color: var(--muted); font-size: .72rem; }
.dimension-comparison strong { margin-top: 3px; color: var(--navy); }
.dimension-result { padding: 11px 13px; border-radius: 7px; background: var(--soft-blue); }
.dimension-arrow { color: var(--blue) !important; font-size: 1.1rem !important; }
.field-note { margin: 11px 0 0; color: #73818d; font-size: .76rem; }
.pipe-no-tabs-warning { margin: 16px 0 0; padding: 13px 15px; border-left: 3px solid var(--blue); border-radius: 7px; background: var(--soft-blue); color: var(--navy); font-size: .82rem; font-weight: 680; }
.guide-inline { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: center; margin-top: 20px; padding: 12px; border-radius: 10px; background: #f3f6f8; }
.guide-inline img { width: 100%; max-height: 130px; object-fit: contain; border-radius: 6px; background: #fff; }
.guide-inline p { margin: 0; font-size: .82rem; }
.color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.color-choice { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 7px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; text-align: left; }
.color-choice > span { width: 33px; height: 33px; flex: 0 0 auto; border: 1px solid rgba(0,0,0,.13); border-radius: 5px; }
.color-choice strong { color: var(--navy); font-size: .72rem; }
.color-choice.is-selected { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #f7fbff; }
.pattern-grid { max-height: 680px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; overflow-y: auto; padding: 3px 7px 3px 3px; }
.step-navigation { display: flex; justify-content: space-between; gap: 16px; padding: 18px 24px 22px; border-top: 1px solid var(--border); }
.step-navigation .button:last-child { margin-left: auto; }
.summary-list { margin: 0 0 22px; border-top: 1px solid var(--border); }
.summary-list > div { display: grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.summary-list dt { color: var(--muted); font-size: .78rem; }
.summary-list dd { margin: 0; color: var(--navy); font-size: .82rem; font-weight: 720; }
.selected-pattern-preview { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.selected-pattern-preview img { width: 78px; height: 78px; flex: 0 0 auto; object-fit: contain; border-radius: 7px; background: #fff; }
.selected-pattern-preview span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .74rem; }
.selected-pattern-preview strong { color: var(--navy); font-size: .9rem; }
.full-field { margin: 18px 0; }
.compact-field { max-width: 270px; margin-top: 16px; }
.config-success { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; padding: 13px 15px; border: 1px solid #afd3c2; border-radius: 8px; background: #eff9f4; color: var(--success); }
.config-success strong { font-size: .82rem; }
.config-success span { font-size: .75rem; }
.visual-choice-grid { display: grid; gap: 10px; }
.two-choices { grid-template-columns: repeat(2, 1fr); }
.visual-choice { overflow: hidden; padding: 7px; border: 1px solid var(--border); border-radius: 9px; background: #fff; cursor: pointer; text-align: left; }
.visual-choice img { width: 100%; height: 140px; object-fit: contain; border-radius: 6px; background: #f1f3f4; }
.visual-choice strong { display: block; padding: 9px 4px 3px; color: var(--navy); }
.visual-choice.is-selected { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.option-stack { display: grid; gap: 9px; }
.option-row { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 9px; background: #fff; cursor: pointer; text-align: left; }
.radio-dot { width: 18px; height: 18px; flex: 0 0 auto; border: 2px solid #a6b4c0; border-radius: 50%; }
.option-row strong, .option-row small { display: block; }
.option-row strong { color: var(--navy); }
.option-row small { margin-top: 2px; color: var(--muted); }
.option-row.is-selected { border-color: var(--blue); background: #f2f8fc; }
.option-row.is-selected .radio-dot { border: 5px solid var(--blue); }
.field-subtitle { margin: 26px 0 12px; font-size: .95rem; }
.button-fieldset { margin: 0 0 22px; padding: 0; border: 0; }
.button-fieldset legend { margin-bottom: 9px; color: var(--navy); font-size: .82rem; font-weight: 720; }
.segment-control { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; padding: 5px; border: 1px solid var(--border); border-radius: 9px; background: #f3f5f7; }
.segment-control button { min-height: 46px; border: 0; border-radius: 6px; background: transparent; color: #5e6b76; cursor: pointer; font-weight: 750; }
.segment-control button.is-selected { background: #fff; color: var(--navy); box-shadow: 0 3px 12px rgba(30,52,72,.09); }
.modules-control { grid-template-columns: repeat(5, 1fr); }
.variant-data { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; border: 1px solid #bfd3e2; border-radius: 9px; background: #eff6fb; }
.variant-data span, .variant-data strong { display: block; }
.variant-data span { margin-bottom: 4px; color: var(--muted); font-size: .72rem; }
.variant-data strong { color: var(--navy); font-size: .86rem; }
.variant-data.is-missing { border-color: #e4c98f; background: #fff8e8; }
.missing-note { margin: 10px 0 0; color: #825e17; font-size: .76rem; }
.unavailable-variant { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; padding: 14px; border: 1px solid #e4c98f; border-radius: 9px; background: #fff8e8; }
.unavailable-variant p { margin: 0; color: #6f5319; font-size: .8rem; }
.unavailable-variant .button { flex: 0 0 auto; }
.panel-color-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.panel-choice { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 11px; padding: 8px; border: 1px solid var(--border); border-radius: 9px; background: #fff; cursor: pointer; text-align: left; }
.panel-choice > span { width: 52px; height: 52px; grid-row: span 2; }
.panel-choice strong, .panel-choice small { display: block; }
.panel-choice strong { color: var(--navy); }
.panel-choice small { color: var(--muted); }
.panel-choice.is-selected { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.unknown-swatch { display: grid; place-items: center; border-radius: 6px; background: #edf0f2; color: #87939d; font-weight: 800; }
.own-pattern-card { width: 100%; display: flex; align-items: center; gap: 13px; margin-top: 12px; padding: 15px; border: 1px dashed #a9b9c5; border-radius: 9px; background: #f8fafb; cursor: pointer; text-align: left; }
.own-pattern-card > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--soft-blue); color: var(--blue); font-size: 1.4rem; }
.own-pattern-card strong, .own-pattern-card small { display: block; }
.own-pattern-card strong { color: var(--navy); }
.own-pattern-card small { color: var(--muted); }
.own-pattern-card.is-selected { border-style: solid; border-color: var(--blue); background: #f1f8fd; }
.own-pattern-fields { margin-top: 16px; }
.pattern-mode-options { margin-bottom: 16px; }
.custom-panel-fields { margin-top: 16px; }
.validation-note { margin: 10px 0 0; padding: 10px 12px; border: 1px solid #e5c27c; border-radius: 7px; background: #fff8e8; color: #795817; font-size: .78rem; font-weight: 700; }
.file-field { display: block; padding: 14px; border: 1px dashed #a9b9c5; border-radius: 8px; }
.file-field input { height: auto; padding: 8px; }
.file-field small { display: block; margin-top: 8px; color: var(--muted); }
.bin-summary-visuals { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 22px; }
.bin-summary-visuals > div { min-width: 190px; display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; align-items: center; gap: 2px 10px; padding: 10px; border: 1px solid var(--border); border-radius: 9px; background: #f8fafb; }
.bin-summary-visuals span { grid-column: 2; color: var(--muted); font-size: .7rem; }
.bin-summary-visuals i, .bin-summary-visuals img { width: 46px; height: 46px; grid-row: 1 / 3; border: 1px solid rgba(0,0,0,.12); border-radius: 6px; object-fit: cover; }
.bin-summary-visuals strong { color: var(--navy); font-size: .78rem; }

/* Product info */
.product-information { padding-top: 80px; padding-bottom: 110px; background: #fff; }
.info-nav { position: sticky; top: 78px; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 72px; padding: 13px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 8px 22px rgba(30,52,72,.07); }
.info-nav a { padding: 8px 12px; border-radius: 6px; color: #53616d; font-size: .82rem; font-weight: 720; }
.info-nav a:hover { background: var(--soft-blue); color: var(--blue); }
.info-content { max-width: 1050px; margin: 0 auto; }
.info-content > article { padding: 70px 0; border-bottom: 1px solid var(--border); }
.ac-product-information .info-content > article { scroll-margin-top: 168px; }
.pipe-product-information .info-content > article { scroll-margin-top: 168px; }
.bin-product-information .info-content > article { scroll-margin-top: 168px; }
.info-content > article:first-child { padding-top: 0; }
.info-content h2 { max-width: 820px; margin-bottom: 20px; font-size: clamp(1.8rem, 3.2vw, 3rem); }
.info-content > article > p:not(.eyebrow) { max-width: 760px; }
.check-list { margin: 25px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 10px 0; padding-left: 27px; color: #4d5a66; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 900; }
.instruction-article > img { width: 100%; max-width: 620px; margin: 30px 0; border: 1px solid var(--border); border-radius: 10px; }
.instruction-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.instruction-pair img { border: 1px solid var(--border); border-radius: 10px; }
.mini-color-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; max-width: 700px; }
.mini-color-row span { display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; color: var(--navy); font-size: .75rem; font-weight: 700; }
.mini-color-row i { width: 34px; height: 34px; border: 1px solid rgba(0,0,0,.12); border-radius: 5px; }
.delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { padding: 20px 5px; color: var(--navy); font-weight: 750; cursor: pointer; }
.faq-list details p { padding: 0 5px 20px; margin: 0; }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1.5fr .65fr; gap: 28px; align-items: start; }
.cart-items { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 30px; padding: 28px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.cart-item h2 { font-size: 1.45rem; }
.cart-item ul { margin: 18px 0 0; padding-left: 18px; color: var(--muted); font-size: .82rem; }
.cart-item-side { display: flex; flex-direction: column; align-items: end; gap: 18px; }
.cart-item-side strong { color: var(--navy); }
.cart-item-side button { border: 0; background: transparent; color: #9d3f3f; cursor: pointer; font-size: .78rem; }
.cart-summary { position: sticky; top: 106px; padding: 28px; border-radius: 12px; background: var(--navy); color: #fff; }
.cart-summary h2 { color: #fff; }
.cart-summary > div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.14); }
.cart-summary .button { margin-top: 20px; }
.cart-summary p { margin: 12px 0 0; color: #adbecb; font-size: .75rem; text-align: center; }
.cart-pattern-thumbnail { width: fit-content; display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 9px 12px 9px 9px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); }
.cart-pattern-thumbnail img { width: 66px; height: 66px; flex: 0 0 auto; object-fit: contain; border-radius: 6px; background: #fff; }
.cart-pattern-thumbnail span { color: var(--navy); font-size: .75rem; font-weight: 740; }
.empty-cart { max-width: 620px; margin: 0 auto; padding: 55px 30px; border: 1px solid var(--border); border-radius: 14px; background: #fff; text-align: center; }
.empty-cart > span { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: var(--soft-blue); color: var(--blue); font-weight: 900; }

@media (max-width: 1240px) {
  .header-inner { width: min(calc(100% - 28px), 1540px); }
  .main-nav { gap: 12px; }
  .main-nav a { font-size: .79rem; }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .footer-grid > div:nth-child(4), .footer-grid > div:nth-child(5) { margin-top: 12px; }
  .catalog-pattern-grid { grid-template-columns: repeat(4, 1fr); }
  .catalog-color-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; left: 14px; right: 14px; top: 70px; display: none; align-items: stretch; flex-direction: column; gap: 0; max-height: calc(100vh - 90px); overflow-y: auto; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; border-radius: 7px; font-size: .92rem; }
  .main-nav a::after { display: none; }
  .main-nav a:hover, .main-nav a.is-active { background: var(--soft-blue); }
  .header-actions { margin-left: 0; }
  .hero { grid-template-columns: 1fr 1fr; gap: 42px; }
  .hero h1 { font-size: clamp(2.8rem, 5vw, 4rem); }
  .product-layout { grid-template-columns: minmax(0, .85fr) minmax(480px, 1.15fr); gap: 30px; }
  .color-grid { grid-template-columns: repeat(3, 1fr); }
  .pattern-grid { grid-template-columns: repeat(3, 1fr); }
  .measure-grid article { grid-template-columns: 1fr; }
  .measure-grid article > img { height: 270px; }
}

@media (max-width: 900px) {
  .section { padding-top: 82px; padding-bottom: 82px; }
  .page-top { padding-top: 110px; }
  .shop-page,
  .ac-product-page { padding-top: 68px; }
  .ac-product-information .info-content > article { scroll-margin-top: 168px; }
  .pipe-product-information .info-content > article { scroll-margin-top: 168px; }
  .bin-product-information .info-content > article { scroll-margin-top: 168px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 70px; padding-bottom: 70px; }
  .home-products { padding-top: 64px; padding-bottom: 48px; }
  .hero-copy { max-width: 800px; }
  .hero-visual { max-width: 680px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: .95fr 1.05fr; }
  .product-card-image { height: 100%; aspect-ratio: auto; min-height: 330px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step { padding-bottom: 40px; }
  .process-step:nth-child(3) { border-left: 0; padding-left: 0; }
  .showcase-grid { grid-template-columns: 1.35fr 1fr; }
  .showcase-grid figure:last-child { grid-column: span 2; min-height: 390px; }
  .cta-section { align-items: flex-start; flex-direction: column; }
  .product-layout { grid-template-columns: 1fr; }
  .product-gallery-column { position: static; }
  .main-product-image { max-height: 690px; }
  .price-panel { top: 78px; }
  .catalog-pattern-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-color-grid { grid-template-columns: repeat(4, 1fr); }
  .measure-grid { grid-template-columns: 1fr; }
  .contact-layout, .about-layout, .about-company-layout, .cart-layout { grid-template-columns: 1fr; }
  .about-production-panel { min-height: 0; }
  .about-company-copy { padding: 0; }
  .cart-summary { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  /* Mobile: the header scrolls with the page so it never covers section headings. */
  .site-header { position: relative; top: auto !important; height: 70px; }

  /* Sticky product/info bars no longer need to reserve space for the site header. */
  .price-panel,
  .info-nav { top: 0; }

  /* Mobile footer logo: compact, fully visible and not cropped. */
  .footer-brand { overflow: hidden; }
  .footer-brand img {
    width: 132px;
    height: 68px;
    max-width: 100%;
    margin-bottom: 16px;
    object-fit: contain;
    object-position: left center;
  }
  body { font-size: 15px; }
  .section-pad { padding-left: 18px; padding-right: 18px; }
  .site-header { height: 70px; }
  .shop-page,
  .product-page.ac-product-page { padding-top: 58px; }
  .ac-product-information .info-content > article { scroll-margin-top: 166px; }
  .pipe-product-information .info-content > article { scroll-margin-top: 166px; }
  .bin-product-information .info-content > article { scroll-margin-top: 166px; }
  .header-inner { width: calc(100% - 24px); gap: 9px; }
  .about-company-layout { gap: 32px; }
  .about-production-panel { padding: 26px 22px; }
  .about-production-stages { grid-template-columns: 1fr; margin-top: 30px; }
  .about-production-stages article { min-height: 0; }
  .about-values-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
  .brand { width: 105px; height: 42px; }
  .icon-link { width: 40px; height: 40px; }
  .menu-toggle { width: 40px; height: 40px; }
  .main-nav { top: 64px; }
  .hero { padding-top: 50px; }
  .home-products { padding-top: 54px; }
  .hero h1 { font-size: 2.65rem; }
  .hero-lead { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-image-wrap { border-radius: 20px 3px 20px 3px; }
  .hero-label { left: 12px; right: 12px; bottom: 12px; }
  .split-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .product-card { display: flex; }
  .product-card-image { min-height: 0; aspect-ratio: 1.2 / 1; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit { min-height: 130px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step + .process-step { padding-left: 0; border-left: 0; }
  .process-step > span { margin-bottom: 20px; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-grid figure, .showcase-grid figure:last-child { grid-column: auto; min-height: 340px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 7px; }
  .product-page { padding-top: 95px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .product-facts { grid-template-columns: 1fr; }
  .product-heading h1 { font-size: 2.45rem; }
  .configurator { margin-left: -6px; margin-right: -6px; }
  .config-progress-wrap, .config-step, .step-navigation, .price-panel { padding-left: 16px; padding-right: 16px; }
  .price-panel { top: 70px; }
  .price-panel strong { font-size: .98rem; }
  .three-fields, .two-fields { grid-template-columns: 1fr; }
  input, select { height: 56px; }
  .dimension-comparison { grid-template-columns: 1fr; }
  .dimension-arrow { transform: rotate(90deg); justify-self: center; }
  .guide-inline { grid-template-columns: 1fr; }
  .guide-inline img { max-height: 250px; }
  .color-grid { grid-template-columns: repeat(2, 1fr); }
  .pattern-grid { grid-template-columns: repeat(2, 1fr); max-height: 520px; }
  .summary-list > div { grid-template-columns: 1fr; gap: 4px; }
  .step-navigation .button { min-height: 52px; flex: 1; }
  .visual-choice img { height: 120px; }
  .variant-data, .panel-color-grid { grid-template-columns: 1fr; }
  .unavailable-variant { align-items: stretch; flex-direction: column; }
  .unavailable-variant .button { width: 100%; }
  .info-nav { top: 70px; overflow-x: auto; flex-wrap: nowrap; }
  .info-nav a { white-space: nowrap; }
  .info-content > article { padding: 55px 0; }
  .instruction-pair, .delivery-grid { grid-template-columns: 1fr; gap: 18px; }
  .mini-color-row { grid-template-columns: repeat(2, 1fr); }
  .catalog-pattern-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .patterns-page { padding-top: 96px; }
  .patterns-page .page-intro { margin-bottom: 24px; }
  .pattern-jump-nav { margin-bottom: 22px; }
  .pattern-modal-backdrop { padding: 12px; }
  .pattern-modal { width: min(520px, 100%); grid-template-columns: 1fr; }
  .pattern-modal-image { min-height: 300px; padding: 20px; }
  .pattern-modal-image img { height: min(55vh, 460px); }
  .pattern-modal-copy { padding: 24px 22px 28px; }
  .pattern-modal-copy h2 { margin: 6px 0 18px; }
  .catalog-color-grid { grid-template-columns: repeat(2, 1fr); }
  .realization-grid { grid-template-columns: 1fr; grid-auto-rows: 320px; }
  .realization-grid figure.is-wide { grid-column: auto; }
  .measure-grid article { min-height: 0; }
  .contact-form, .contact-card { padding: 24px 18px; }
  .cart-item { grid-template-columns: 1fr; }
  .cart-item-side { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* WordPress/WooCommerce integration */
body.admin-bar .site-header{top:32px}
.kariart-wp-content{min-height:50vh}
.woocommerce .woocommerce-breadcrumb{display:none}
.woocommerce-notices-wrapper{width:min(calc(100% - 48px),var(--max));margin:22px auto 0}
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-radius:10px;border-top-color:var(--blue)}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{background:var(--blue);color:#fff;border-radius:8px;padding:12px 20px;font-weight:750}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:var(--blue-hover);color:#fff}
.wp-page-content{width:min(calc(100% - 48px),var(--max));margin:0 auto;padding:120px 0}
@media (max-width:782px){body.admin-bar .site-header{top:46px}}
.kariart-pattern-open{appearance:none;width:100%;font:inherit;color:inherit;text-align:center;cursor:pointer}
.pattern-grid button{border:1px solid var(--border);background:#fff}
.pattern-modal{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:30px;background:rgba(15,30,45,.72)}
.pattern-modal.is-open{display:flex}.pattern-modal-content{max-width:min(760px,90vw);max-height:85vh;padding:24px;border-radius:14px;background:#fff;text-align:center}.pattern-modal-content img{max-height:72vh;margin:auto}.pattern-modal-content strong{display:block;margin-top:12px}.pattern-modal-close{position:fixed;right:28px;top:24px;width:44px;height:44px;border:0;border-radius:50%;background:#fff;font-size:30px;cursor:pointer}


/* Contact form status and anti-spam field */
.contact-notice { margin: 0 0 24px; padding: 14px 16px; border-radius: 10px; font-weight: 700; }
.contact-notice.is-success { background: #eaf7f0; color: #1f6847; border: 1px solid #bfe4d1; }
.contact-notice.is-error { background: #fff0f0; color: #8a2d2d; border: 1px solid #efc7c7; }
.kariart-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }


/* KariArt 0.1.13 — final mobile header fix */
@media (max-width: 640px) {
  .site-header,
  body.admin-bar .site-header {
    position: relative !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  .price-panel,
  .info-nav {
    top: 0 !important;
  }
}
