:root {
  --ink: #111318;
  --muted: #626977;
  --paper: #ffffff;
  --canvas: #f3f5f7;
  --line: #dfe3e8;
  --accent: #76e4f7;
  --accent-deep: #0d7f94;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow: 0 14px 38px rgba(17, 19, 24, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button, a { touch-action: manipulation; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
}

[data-en] { display: none; }
html[lang="en"] [data-pl] { display: none; }
html[lang="en"] [data-en] { display: inline; }
html[lang="en"] p[data-en] { display: block; }
html[lang="en"] ul[data-en] { display: block; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(223, 227, 232, 0.92);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner,
.section-shell {
  width: min(100% - 40px, 1440px);
  margin-inline: auto;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 11px;
  background: var(--paper);
}

.brand-mark img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.brand-wordmark {
  width: 122px;
  height: 41px;
  display: block;
  object-fit: contain;
}

.header-actions,
.main-nav,
.language-switch {
  display: flex;
  align-items: center;
}

.header-actions { gap: 24px; min-width: 0; flex-wrap: wrap; }
.main-nav { gap: 4px; flex-wrap: wrap; max-width: 100%; }

.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 999px;
  color: #4e5561;
  text-decoration: none;
  font-weight: 750;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: #eef1f4;
}

.language-switch {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f8fa;
}

.language-button {
  min-width: 44px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #5e6570;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-button.active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(17, 19, 24, 0.1);
}

.catalog-section { padding: 56px 0 80px; }

.hero-section { padding: 24px 0 0; }

.hero-carousel {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: clamp(40px, 7vw, 88px) clamp(24px, 5vw, 74px);
  min-height: min(650px, calc(100vh - 126px));
  overflow: hidden;
  border-radius: 34px;
  background: #20242a;
  box-shadow: var(--shadow);
}

.hero-carousel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: none;
  transition: opacity 900ms ease, transform 5s linear;
}

.hero-carousel > img.visible {
  opacity: 1;
  transform: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 8, 12, 0.86) 0%, rgba(5, 8, 12, 0.56) 45%, rgba(5, 8, 12, 0.08) 82%);
}

.hero-copy {
  position: relative;
  min-width: 0;
  width: 100%;
  z-index: 2;
  max-width: 930px;
  color: #fff;
}

.hero-copy h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(2.35rem, 5.6vw, 5.7rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-eyebrow { color: var(--accent); }

.hero-progress {
  position: absolute;
  z-index: 3;
  right: 26px;
  bottom: 25px;
  left: 26px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.hero-progress span.running { animation: heroProgress 5s linear forwards; }

@keyframes heroProgress { to { width: 100%; } }

.catalog-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  max-width: 920px;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

h1 { font-size: clamp(2.5rem, 5vw, 5.2rem); }
h2 { font-size: clamp(2.2rem, 4vw, 4.3rem); }

.intro {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.catalog-count {
  min-width: 132px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  text-align: center;
}

.catalog-count strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.catalog-count span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(17, 19, 24, 0.02);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-button {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #cbd3da;
  box-shadow: var(--shadow);
}

.product-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e9edf0;
}

.product-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform 360ms ease;
}

.product-card:hover .product-photo img { transform: none; }

.sku-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 19, 24, 0.78);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.product-content { padding: 18px 18px 21px; }

.product-content h3 {
  margin: 0 0 9px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.product-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.view-detail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.product-dialog {
  width: min(1180px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
}

.product-dialog::backdrop {
  background: rgba(8, 11, 15, 0.72);
  backdrop-filter: blur(6px);
}

.dialog-shell { padding: 26px; }
.dialog-topbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: flex-end; padding-block: 6px; background: var(--paper); }
.dialog-close { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font: inherit; font-size: 2rem; line-height: 1; cursor: pointer; }
.dialog-close:hover { background: var(--canvas); }

.back-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #f4f6f8;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 38px;
  padding-top: 24px;
}

.detail-main-image {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  object-fit: contain;
  background: #e9edf0;
}

.detail-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.thumbnail-button {
  overflow: hidden;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #e9edf0;
  cursor: pointer;
}

.thumbnail-button.active { border-color: var(--accent-deep); }

.thumbnail-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.detail-copy { padding: 20px 10px 20px 0; }

.detail-sku {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.detail-copy h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  overflow-wrap: anywhere;
}

.detail-copy p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.product-specs {
  margin: 24px 0 0;
  padding-left: 1.3rem;
  color: #3f4650;
  font-size: 0.97rem;
  line-height: 1.65;
}

.product-specs li + li { margin-top: 7px; }
.product-specs li::marker { color: var(--accent-deep); }
.product-specs strong { color: var(--ink); }

.bottom-back { margin-top: 34px; }

.catalog-error {
  padding: 24px;
  border: 1px solid #e1b7b7;
  border-radius: var(--radius-md);
  color: #7e1d1d;
  background: #fff1f1;
}

.contact-section {
  color: #fff;
  background: var(--ink);
  padding: 84px 0;
}

.contact-main {
  min-height: calc(100vh - 155px);
  display: grid;
  background: var(--ink);
}

.contact-page .contact-section {
  display: grid;
  align-items: center;
}

.footer-back {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.footer-back:hover { text-decoration: underline; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: 64px;
}

.eyebrow.light { color: var(--accent); }

.contact-copy {
  max-width: 700px;
  margin: 22px 0 0;
  color: #c7ccd3;
  font-size: 1.08rem;
}

.contact-card {
  padding: 26px;
  border: 1px solid #383d46;
  border-radius: var(--radius-lg);
  background: #1c2027;
}

.contact-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid #363b43;
}

.contact-label { color: #aab1bc; }
.contact-item strong { color: var(--accent); }
.contact-item a {
  color: inherit;
  text-decoration: none;
}
.contact-item a:hover,
.contact-item a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-note {
  margin: 20px 0 0;
  color: #aab1bc;
  font-size: 0.85rem;
}

footer {
  border-top: 1px solid #dfe3e8;
  background: var(--paper);
}

.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-actions-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.copyright {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}

.footer-top {
  min-height: 42px;
  color: var(--ink);
  text-decoration: none;
}

.privacy-main {
  background: var(--canvas);
}

.privacy-section {
  padding: 72px 0 88px;
}

.privacy-heading {
  max-width: 900px;
  margin-bottom: 42px;
}

.privacy-heading h1 {
  margin-bottom: 14px;
}

.privacy-updated {
  margin: 0;
  color: var(--muted);
}

.privacy-article {
  max-width: 980px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.privacy-article section + section {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.privacy-article h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.privacy-article p,
.privacy-article li {
  color: #3f4652;
}

.privacy-article p {
  margin: 0 0 12px;
}

.privacy-article ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.privacy-article li + li {
  margin-top: 8px;
}

.privacy-article a {
  color: var(--accent-deep);
  font-weight: 750;
}

@media (max-width: 1100px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .header-inner { min-height: 72px; }
  .header-actions { gap: 8px; }
  .nav-link { padding-inline: 12px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: 1fr; gap: 38px; }
  .hero-carousel { min-height: 560px; }
  .dialog-layout { grid-template-columns: 1fr; }
  .detail-copy { padding-right: 0; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 132px; }
  .header-inner,
  .section-shell { width: min(100% - 28px, 1440px); }
  .header-inner {
    min-height: 118px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
  }
  .header-actions {
    gap: 8px;
    width: 100%;
    justify-content: space-between;
  }
  .brand { gap: 2px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 9px; }
  .brand-mark img { width: 29px; height: 29px; }
  .brand-wordmark { width: 104px; height: 35px; }
  .nav-link { min-height: 40px; padding-inline: 10px; }
  .language-button { min-width: 40px; min-height: 36px; padding-inline: 9px; }
  .catalog-section { padding: 38px 0 60px; }
  .hero-section { padding-top: 14px; }
  .hero-carousel { min-height: 440px; padding: 28px 20px 52px; border-radius: 24px; }
  .hero-shade { background: linear-gradient(0deg, rgba(5, 8, 12, 0.9) 0%, rgba(5, 8, 12, 0.24) 74%, rgba(5, 8, 12, 0.06) 100%); }
  .hero-copy { width: 100%; max-width: 100%; }
  .hero-copy h1 { font-size: clamp(1.55rem, 7.3vw, 2.6rem); letter-spacing: -0.035em; }
  .catalog-heading-row { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .catalog-count { min-width: 0; width: max-content; display: flex; align-items: baseline; gap: 7px; padding: 12px 15px; }
  .catalog-count strong { font-size: 1.35rem; }
  .catalog-grid { grid-template-columns: 1fr; gap: 18px; }
  .product-photo { aspect-ratio: 4 / 3; }
  .contact-section { padding: 62px 0; }
  .contact-card { padding: 20px; }
  .contact-item { align-items: flex-start; flex-direction: column; gap: 4px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
  .footer-actions-group { width: 100%; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; }
  .privacy-section { padding: 48px 0 64px; }
  .privacy-heading { margin-bottom: 28px; }
  .product-dialog { width: calc(100% - 18px); max-height: calc(100dvh - 18px); border-radius: 20px; }
  .dialog-shell { padding: 15px; }
  .dialog-layout { gap: 20px; padding-top: 16px; }
  .detail-main-image { border-radius: 16px; }
  .detail-thumbnails { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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

/* Shared layout safeguards for long PL/EN text and narrow screens. */
[hidden] { display: none !important; }
h1, h2, h3, p, .contact-item strong, .copyright { overflow-wrap: anywhere; }
.main-nav, .language-switch { flex-shrink: 0; }
.contact-layout > *, .dialog-layout > *, .catalog-heading-row > * { min-width: 0; }
.product-photo img, .detail-main-image, .thumbnail-button img { object-fit: contain; padding: 8px; }
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; scroll-margin-top: 150px; }
.catalog-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: 0 1 300px; font-weight: 750; }
.catalog-search { flex-grow: 0; }
.catalog-field input, .catalog-field select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 400; }
.catalog-field select { appearance: none; -webkit-appearance: none; padding-right: 46px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234e5561' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px 18px; }
.catalog-field input:focus-visible, .catalog-field select:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 2px; }
.catalog-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 20px 0; }
.pagination-status { color: var(--muted); font-size: 0.95rem; }
.pagination-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pagination-buttons button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.pagination-buttons button[aria-current="page"] { background: var(--ink); color: white; border-color: var(--ink); }
.pagination-buttons button:disabled { opacity: 0.45; cursor: default; }
.catalog-empty { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
@media (max-width: 600px) {
  .catalog-toolbar { gap: 12px; }
  .catalog-field { flex-basis: 100%; }
  .catalog-pagination { align-items: flex-start; flex-direction: column; }
  .pagination-buttons { gap: 5px; }
  .pagination-buttons button { padding-inline: 10px; }
  .contact-layout h1, #catalog-heading { font-size: clamp(1.8rem, 7.5vw, 2.8rem); }
  .privacy-article { padding: 20px; }
}
