/* Persian Foam — design system. One stylesheet for LTR + RTL via logical properties. */
:root {
  --brand: #004b76;
  --brand-700: #013a5c;
  --brand-900: #012233;
  --cyan: #00b3f0;
  --cyan-600: #0d9fd4;
  --cyan-050: #e4f6fd;
  --accent: #f5a623;
  --accent-600: #e0920f;
  --ink: #1b2b36;
  --muted: #5b6b78;
  --line: #e1e9ef;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --bg-tint: #e9f4fa;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(8, 45, 80, .08);
  --shadow-lg: 0 24px 60px rgba(8, 45, 80, .16);
  --maxw: 1180px;
  --font: "Inter", "Vazirmatn", system-ui, sans-serif;
  --space: clamp(3.5rem, 7vw, 6rem);
}
html[lang="fa"], html[lang="ar"], html[lang="ku"] { --font: "Vazirmatn", "Inter", system-ui, sans-serif; }

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; color: var(--brand-900); text-wrap: balance; }
::selection { background: rgba(245, 166, 35, .3); color: var(--brand-900); }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[id] { scroll-margin-block-start: 88px; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container.narrow { max-width: 820px; }
.section { padding-block: var(--space); }
.section-tint { background: var(--bg-tint); }
.section-dark { background: linear-gradient(130deg, var(--brand-900) 0%, var(--brand) 58%, #0a6fa0 100%); color: #d4ebf6; }
.section-dark h2 { color: #fff; }

.icon { width: 22px; height: 22px; flex: none; }
.eyebrow { display: inline-block; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; color: var(--cyan-600); margin-block-end: .6rem; }

.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-block-end: 2.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section-head p { color: var(--muted); margin-block-start: .7rem; font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  cursor: pointer; border: 1.5px solid transparent; transition: .2s ease; font-family: inherit;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #241502; }
.btn-primary:hover { background: var(--accent-600); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-sm { padding: .55rem 1.05rem; font-size: .88rem; }
.btn-block { width: 100%; }
html[dir="rtl"] .btn .icon:last-child { transform: scaleX(-1); }

.skip-link { position: absolute; inset-block-start: -60px; inset-inline-start: 1rem; background: var(--brand); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 200; transition: .2s; }
.skip-link:focus { inset-block-start: 1rem; }

/* Top utility bar */
.topbar { background: linear-gradient(90deg, var(--cyan), var(--cyan-600)); color: #fff; font-size: .84rem; font-weight: 600; }
.topbar .container { display: flex; align-items: center; gap: 1.2rem; min-height: 40px; flex-wrap: wrap; }
.topbar-contact { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar-contact a { display: inline-flex; align-items: center; gap: .4rem; color: #fff; opacity: .95; transition: opacity .2s; }
.topbar-contact a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.topbar-contact .icon { width: 16px; height: 16px; }
.topbar-tag { margin-inline-start: auto; display: inline-flex; align-items: center; gap: .45rem; letter-spacing: .02em; }
.topbar-tag .icon { width: 16px; height: 16px; }
@media (max-width: 720px) { .topbar-tag { display: none; } .topbar .container { justify-content: center; } }

/* Header */
.site-header { position: sticky; inset-block-start: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-block-end: 1px solid var(--line); transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(8, 45, 80, .07); }
.header-inner { display: flex; align-items: center; gap: 1.2rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand-text strong { color: var(--brand-900); font-size: 1.05rem; }
.brand-text em { font-style: normal; font-size: .7rem; color: var(--muted); }
.main-nav { display: flex; gap: 1.4rem; margin-inline-start: auto; font-weight: 600; }
.main-nav a { color: var(--ink); padding-block: .4rem; border-block-end: 2px solid transparent; transition: .2s; white-space: nowrap; }
.main-nav a:hover { color: var(--brand); border-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: .7rem; }
.header-actions > .btn { flex: 0 0 auto; white-space: nowrap; }

/* ── Language switcher ─────────────────────────────────────── */
.lang-switch { position: relative; }

.lang-toggle {
  display: flex; align-items: center; gap: .3rem;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: .38rem .65rem .38rem .5rem;
  font-weight: 600; font-size: .82rem; cursor: pointer;
  font-family: inherit; color: var(--ink);
  transition: background .15s, border-color .2s, box-shadow .2s;
}
.lang-toggle:hover {
  background: #fff; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}
.lang-globe { width: 15px; height: 15px; flex-shrink: 0; color: var(--brand); }
.lang-cur-flag { font-size: 1.05em; line-height: 1; }
.lang-cur-name { max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-chev { width: 13px; height: 13px; flex-shrink: 0; color: var(--ink-soft); transition: transform .22s cubic-bezier(.16,1,.3,1); }
.lang-switch.open .lang-chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute; inset-block-start: calc(100% + .6rem); inset-inline-end: 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .4rem;
  box-shadow: 0 10px 36px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.06);
  display: grid; grid-template-columns: 1fr 1fr; gap: .2rem; min-width: 200px;
  /* animated open/close */
  opacity: 0; transform: translateY(-8px) scale(.96);
  pointer-events: none;
  transition: opacity .18s ease, transform .22s cubic-bezier(.16,1,.3,1);
}
.lang-switch.open .lang-menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.lang-opt {
  display: flex; align-items: center; gap: .4rem;
  padding: .5rem .6rem; border-radius: 8px;
  font-weight: 600; font-size: .82rem; color: var(--ink);
  text-decoration: none; transition: background .12s;
  white-space: nowrap;
}
.lang-opt:hover { background: var(--bg-soft); }
.lang-opt.is-active { color: var(--brand); background: var(--bg-tint); }
.lang-flag { font-size: 1.15em; line-height: 1; }
.lang-name { flex: 1; }
.lang-check { margin-inline-start: auto; display: flex; }
.lang-check .icon { width: 13px; height: 13px; stroke-width: 2.5; color: var(--brand); }

.cart-btn { position: relative; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; color: var(--brand-900); transition: .2s; }
.cart-btn:hover { border-color: var(--brand); color: var(--brand); }
.cart-btn .icon { width: 20px; height: 20px; }
.cart-count { position: absolute; inset-block-start: -6px; inset-inline-end: -6px; background: var(--accent); color: #241502; font-size: .7rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }
.cart-btn.pulse { animation: cartPulse .5s ease; }
@keyframes cartPulse { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--brand-900); border-radius: 2px; transition: .3s; }
.mobile-nav { display: none; flex-direction: column; padding: .5rem clamp(1rem, 4vw, 2rem) 1rem; border-block-start: 1px solid var(--line); }
.mobile-nav a { padding: .7rem 0; border-block-end: 1px solid var(--line); font-weight: 600; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(90deg, #f5f8f6 0 53%, #e8f1ef 53% 100%); padding-block: clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
.hero .lead { font-size: 1.15rem; color: var(--muted); margin-block: 1rem 1.4rem; max-width: 46ch; }
.hero-badges { display: grid; gap: .6rem; margin-block-end: 1.8rem; }
.hero-badges li { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.hero-badges .icon { color: var(--cyan-600); background: var(--cyan-050); border-radius: 50%; padding: 4px; width: 26px; height: 26px; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-cta .btn-ghost { color: var(--brand); border-color: var(--brand); background: transparent; }
.hero-cta .btn-ghost:hover { background: var(--brand); color: #fff; }
/* Hero art + carousel */
.hero-art { position: relative; min-height: clamp(340px, 43vw, 560px); isolation: isolate; }

.hero-carousel { position: relative; width: 100%; min-height: inherit; }
.hero-slides { position: relative; width: 100%; min-height: inherit; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease-in-out; pointer-events: none; will-change: opacity; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-slide-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 2px 2px 2px 72px; display: block; }

/* Video play/pause toggle */
.hero-vid-toggle { position: absolute; z-index: 3; inset-block-start: 1rem; inset-inline-start: 1rem; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: rgba(1, 34, 51, .86); border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; cursor: pointer; }
.hero-vid-toggle:hover { background: var(--brand); }
.hero-vid-toggle .icon { width: 18px; height: 18px; }
.hero-vid-toggle:active { transform: scale(.94); }

/* Prev / next arrows */
.hero-nav { position: absolute; z-index: 4; inset-block-start: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: rgba(1, 34, 51, .7); border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; cursor: pointer; transition: background .2s, opacity .2s; }
.hero-nav:hover { background: var(--brand); }
.hero-nav:active { transform: translateY(-50%) scale(.94); }
.hero-nav .icon { width: 18px; height: 18px; }
.hero-prev { inset-inline-start: .6rem; }
.hero-prev .icon { transform: scaleX(-1); }
.hero-next { inset-inline-end: .6rem; }
[dir="rtl"] .hero-prev .icon { transform: scaleX(1); }
[dir="rtl"] .hero-next .icon { transform: scaleX(-1); }

/* Sound toggle */
.hero-sound-toggle { position: absolute; z-index: 4; inset-block-end: 1rem; inset-inline-start: 1rem; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: rgba(1, 34, 51, .86); border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; cursor: pointer; transition: background .2s; }
.hero-sound-toggle:hover { background: var(--brand); }
.hero-sound-toggle:active { transform: scale(.94); }
.hero-sound-toggle .icon { width: 18px; height: 18px; }

/* Dot indicators */
.hero-dots { position: absolute; z-index: 4; inset-block-end: .7rem; inset-inline: 0; display: flex; justify-content: center; align-items: center; gap: 6px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .5); border: none; padding: 0; cursor: pointer; transition: background .2s, transform .2s; }
.hero-dot.is-active, .hero-dot[aria-selected="true"] { background: #fff; transform: scale(1.35); }
.hero-dot:hover { background: rgba(255, 255, 255, .8); }

/* Slide counter badge */
.hero-photo-index { position: absolute; z-index: 4; inset-block-start: 1rem; inset-inline-end: 1rem; padding: .35rem .6rem; color: #fff; background: rgba(1, 34, 51, .82); font-size: .76rem; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 3px; }

/* Stats */
.stats { margin-block-start: -2.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; }
.stat { text-align: center; padding: .6rem; }
.stat-num, .stat-suffix { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--cyan-600); }
.stat p { color: var(--muted); font-size: .92rem; margin-block-start: .3rem; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: .25s; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-media { aspect-ratio: 16 / 11; background: var(--bg-tint); overflow: hidden; cursor: zoom-in; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-body h3 { font-size: 1.2rem; }
.product-tag { color: var(--accent-600); font-weight: 700; font-size: .9rem; }
.product-desc { color: var(--muted); font-size: .94rem; flex: 1; }
.product-specs summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: .5rem 0; font-size: .9rem; }
.product-specs table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.product-specs th, .product-specs td { text-align: start; padding: .4rem .2rem; border-block-end: 1px solid var(--line); vertical-align: top; }
.product-specs th { color: var(--muted); font-weight: 600; width: 38%; }
.product-body h3 a { color: inherit; }
.product-body h3 a:hover { color: var(--brand); }
.product-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-block-start: .6rem; }
.product-actions .btn { flex: 1 1 auto; }

/* Breadcrumb */
.breadcrumb { background: var(--bg-soft); border-block-end: 1px solid var(--line); font-size: .9rem; }
.breadcrumb .container { display: flex; gap: .5rem; align-items: center; padding-block: .9rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--brand); }
.breadcrumb span[aria-current] { color: var(--muted); }

/* Product detail */
.product-detail { padding-block-start: 2.2rem; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: start; }
.pd-main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-tint); aspect-ratio: 4 / 3; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.pd-thumbs { display: flex; gap: .6rem; margin-block-start: .7rem; flex-wrap: wrap; }
.pd-thumb { width: 76px; height: 60px; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer; background: none; }
.pd-thumb.is-active { border-color: var(--brand); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.pd-info .product-tag { font-size: 1rem; margin-block: .3rem .9rem; }
.pd-detail { color: var(--muted); font-size: 1.02rem; }
.pd-detail h3 { font-size: 1.05rem; color: var(--brand-900); margin-block: 1.1rem .35rem; font-weight: 700; }
.pd-detail h3:first-child { margin-block-start: 0; }
.pd-detail p { margin-block: .4rem; }
.pd-detail ul { list-style: disc; padding-inline-start: 1.4rem; margin-block: .35rem .8rem; }
.pd-detail ul li { margin-block: .2rem; }
.pd-apps { margin-block: 1rem; }
.pd-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-block: 1.2rem; }
.pd-why { display: grid; gap: .7rem; margin-block-start: 1rem; }
.pd-why li { display: flex; gap: .6rem; align-items: flex-start; }
.pd-why .icon { color: var(--brand); background: var(--bg-tint); border-radius: 50%; padding: 4px; width: 26px; height: 26px; flex: none; }
.pd-why strong { display: block; }
.pd-why span { color: var(--muted); font-size: .9rem; }
.pd-specs-wrap { margin-block-start: 2.6rem; }
.pd-specs-wrap h2, .pd-related h2 { font-size: 1.4rem; margin-block-end: 1rem; }
.pd-specs { width: 100%; border-collapse: collapse; max-width: 640px; }
.pd-specs th, .pd-specs td { text-align: start; padding: .75rem .6rem; border-block-end: 1px solid var(--line); }
.pd-specs th { color: var(--muted); font-weight: 600; width: 40%; }
.pd-related { margin-block-start: 2.6rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.related-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: .2s; }
.related-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.related-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.related-card span { display: block; padding: .7rem .8rem; font-weight: 600; }
.pd-back { display: inline-block; margin-block-start: 1.4rem; font-weight: 700; color: var(--brand); }

.add-to-order { margin-block-start: 0; }

/* Applications */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: .25s; }
.app-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.app-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--cyan-050); color: var(--cyan-600); display: grid; place-items: center; margin-block-end: 1rem; }
.app-icon .icon { width: 28px; height: 28px; }
.app-card h3 { font-size: 1.15rem; margin-block-end: .4rem; }
.app-card p { color: var(--muted); font-size: .94rem; }

/* About / process / why */
.process { margin-block: 2.5rem; }
.process > h3, .why > h3 { font-size: 1.4rem; margin-block-end: 1.4rem; text-align: center; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.process-steps li { display: flex; gap: .8rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.step-num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.process-steps h4 { font-size: 1rem; margin-block-end: .3rem; }
.process-steps p { color: var(--muted); font-size: .9rem; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.why-card { background: var(--bg-soft); border-radius: var(--radius); padding: 1.4rem; text-align: center; }
.why-icon { width: 52px; height: 52px; margin: 0 auto .8rem; border-radius: 14px; background: #fff; color: var(--accent-600); display: grid; place-items: center; box-shadow: var(--shadow); }
.why-card h4 { margin-block-end: .4rem; }
.why-card p { color: var(--muted); font-size: .9rem; }

/* Certs */
.cert-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.cert { display: flex; align-items: center; gap: .7rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: .8rem 1.4rem; font-weight: 700; }
.cert .icon { color: var(--accent); }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.t-quote { color: var(--accent); margin-block-end: .6rem; }
.t-quote svg { width: 34px; height: 34px; }
.testimonial blockquote { font-size: 1.02rem; margin-block-end: 1rem; }
.testimonial figcaption strong { display: block; color: var(--brand-900); }
.testimonial figcaption span { color: var(--muted); font-size: .88rem; }

/* Order form */
.order-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2.5rem; align-items: start; }
.order-intro h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.order-intro p { color: var(--muted); margin-block: .8rem 1.4rem; }
.order-points { display: grid; gap: .9rem; }
.order-points li { display: flex; gap: .7rem; align-items: flex-start; }
.order-points .icon { color: var(--brand); flex: none; }
.order-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow); }
.field { margin-block-end: 1rem; border: 0; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label, .field legend { display: block; font-weight: 600; font-size: .9rem; margin-block-end: .4rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .98rem; color: var(--ink); background: var(--bg-soft); transition: .2s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(11, 79, 138, .12); }
.field input.invalid, .field textarea.invalid { border-color: #d64545; background: #fff6f6; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.order-lines { display: grid; gap: .55rem; margin-block-end: .8rem; }
.order-line { display: grid; grid-template-columns: 1.5fr .7fr 1.4fr auto; gap: .5rem; align-items: center; }
.order-line select, .order-line input { width: 100%; padding: .62rem .6rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: .92rem; color: var(--ink); background: var(--bg-soft); }
.order-line select:focus, .order-line input:focus { outline: 0; border-color: var(--brand); background: #fff; }
.line-remove { border: 0; background: #fdecec; color: #d64545; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1.3rem; line-height: 1; display: grid; place-items: center; transition: .2s; }
.line-remove:hover { background: #f6cccc; }
.cart-empty { color: var(--muted); font-size: .9rem; padding: .8rem; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius-sm); text-align: center; margin: 0; }
.check, .radio { display: flex; align-items: center; gap: .5rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .55rem .7rem; font-size: .9rem; cursor: pointer; }
.check input, .radio input { accent-color: var(--brand); width: 17px; height: 17px; }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.form-status { margin-block-start: 1rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #1b8a4b; }
.form-status.err { color: #d64545; }
.form-note { color: var(--muted); font-size: .82rem; margin-block-start: .6rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.contact-card .icon { color: var(--brand); width: 26px; height: 26px; flex: none; }
.contact-card h4 { margin-block-end: .3rem; }
.contact-card a, .contact-card p { color: var(--muted); overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--brand); }
.phone-list { display: flex; flex-direction: column; }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.contact-form-wrap { max-width: 720px; margin: 2rem auto 0; }
.contact-form-head { text-align: center; margin-block-end: 1.4rem; }
.contact-form-head h3 { font-size: 1.4rem; }
.contact-form-head p { color: var(--muted); margin-block-start: .4rem; }

/* FAQ */
.faq-list { display: grid; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 700; cursor: pointer; color: var(--brand-900); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--brand); transition: transform .25s; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--brand-900); color: #b9cde0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2rem; padding-block: 3rem; }
.footer-brand p { margin-block: 1rem; font-size: .94rem; max-width: 36ch; }
.site-footer h4 { color: #fff; margin-block-end: 1rem; font-size: 1rem; }
.site-footer ul { display: grid; gap: .55rem; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .icon { color: var(--accent); width: 18px; height: 18px; flex: none; margin-block-start: 2px; }
.socials { display: flex; gap: .6rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; transition: .2s; }
.socials a:hover { background: var(--accent); color: #241502; }
.socials svg { width: 18px; height: 18px; }
.footer-bar { border-block-start: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.footer-bar .container { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; flex-wrap: wrap; }

/* Floating contact */
.floating-contact { position: fixed; inset-block-end: 1.2rem; inset-inline-end: 1.2rem; display: flex; flex-direction: column; gap: .6rem; z-index: 90; }
.fab { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg); transition: .2s; }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 26px; height: 26px; }
.fab-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.fab-wa { background: #25d366; }
.fab-tg { background: #2aabee; }
.fab-call { background: var(--brand); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5, 20, 35, .9); display: none; place-items: center; z-index: 300; padding: 2rem; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; inset-block-start: 1rem; inset-inline-end: 1.2rem; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s cubic-bezier(.16, 1, .3, 1), transform .55s cubic-bezier(.16, 1, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Tactile press feedback (emil-kowalski: short, transform-only) */
.btn:active { transform: scale(.97); }
.btn-primary:active { transform: translateY(0) scale(.97); }
.cart-btn:active, .nav-toggle:active, .lang-toggle:active { transform: scale(.94); }
.product-card, .app-card, .material-card, .service-card, .related-card, .testimonial { transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease; }

/* Materials */
.material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.material-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; transition: .25s; }
.material-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.material-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--cyan-050); color: var(--cyan-600); display: grid; place-items: center; }
.material-icon .icon { width: 26px; height: 26px; }
.material-card h3 { font-size: 1.1rem; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.material-card h3 span { font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--accent-600); background: #fff4e2; border-radius: 999px; padding: .1rem .5rem; }
.material-card p { color: var(--muted); font-size: .92rem; margin-block-start: .35rem; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; text-align: center; transition: .25s; }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-icon { width: 62px; height: 62px; margin: 0 auto 1rem; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--brand)); color: #fff; display: grid; place-items: center; }
.service-icon .icon { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.12rem; margin-block-end: .4rem; }
.service-card p { color: var(--muted); font-size: .94rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-tint); margin: 0; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; transition: .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 1.4rem .9rem .7rem; color: #fff; font-weight: 700; font-size: .92rem; background: linear-gradient(transparent, rgba(5, 20, 35, .78)); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .order-grid, .contact-grid, .pd-grid { grid-template-columns: 1fr; }
  .hero-art { order: 0; width: 100%; max-width: 640px; margin-inline: auto; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1280px) and (min-width: 1200px) {
  .header-inner { gap: .75rem; }
  .main-nav { gap: .9rem; font-size: .94rem; }
  .header-actions { gap: .5rem; }
}
@media (max-width: 1199px) and (min-width: 721px) {
  .main-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .mobile-nav { display: flex; }
}
@media (max-width: 720px) {
  .main-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .header-inner.open + .mobile-nav, .site-header.nav-open .mobile-nav { display: flex; }
  .check-grid, .field-row { grid-template-columns: 1fr; }
  .order-line { grid-template-columns: 1fr auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem; }
  .order-line select { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar .container { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; }
  .hero-vid-toggle { inset-block-start: .75rem; inset-inline-start: .75rem; }
  .hero-photo-index { inset-block-start: .75rem; inset-inline-end: .75rem; }
  .hero-nav { width: 38px; height: 38px; }
  .hero-dots { inset-block-end: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: none; }
  .btn:active, .btn-primary:active, .cart-btn:active, .nav-toggle:active, .lang-toggle:active { transform: none; }
  .product-card:hover, .app-card:hover, .material-card:hover, .service-card:hover, .related-card:hover, .gallery-item:hover img { transform: none; }
}
