/* ================================================================
   MADOŃ CHESS — spokojna, klasyczna prezentacja polskiej manufaktury
   ================================================================ */

:root {
  --white: #fff;
  --cream-50: #fbf9f6;
  --cream-100: #f5f0e9;
  --cream-200: #e7dacb;
  --tan: #b79879;
  --brown: #79573f;
  --brown-dark: #4a3022;
  --ink: #251c17;
  --muted: #6f645d;
  --line: #ded4c9;
  --header-h: 82px;
  --container: 1200px;
  --shadow: 0 12px 34px rgba(50, 32, 21, .09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
address { font-style: normal; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; }
h1 { max-width: 12ch; margin-bottom: 24px; font-size: clamp(2.55rem, 4.5vw, 4.85rem); letter-spacing: -.045em; }
h2 { margin-bottom: 24px; font-size: clamp(2.05rem, 3.2vw, 3.35rem); letter-spacing: -.035em; }
h3 { letter-spacing: -.015em; }
:focus-visible { outline: 3px solid #b47b43; outline-offset: 4px; }
section[id] { scroll-margin-top: var(--header-h); }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: clamp(80px, 8vw, 128px); }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 16px; transform: translateY(-150%); background: var(--white); border: 2px solid var(--brown); }
.skip-link:focus { transform: none; }
.eyebrow { margin-bottom: 14px; color: var(--brown); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: #d9bea1; }

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { border-color: rgba(90, 62, 42, .1); box-shadow: 0 5px 20px rgba(48, 30, 18, .08); }
.nav-wrap { display: flex; align-items: center; height: 100%; gap: 36px; }
.brand { flex: 0 0 auto; }
.brand img { width: 158px; height: auto; }
.main-nav { display: flex; align-items: stretch; height: 100%; margin-left: auto; gap: 32px; }
.main-nav a { position: relative; display: grid; place-items: center; color: #4f4640; font-size: .93rem; font-weight: 600; }
.main-nav a::after { position: absolute; right: 0; bottom: 17px; left: 0; height: 2px; content: ""; transform: scaleX(0); background: var(--tan); transition: transform .2s ease; }
.main-nav a:hover, .main-nav a.is-active { color: var(--brown-dark); }
.main-nav a.is-active::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 46px; height: 46px; margin-left: auto; padding: 11px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.language-picker { position: relative; flex: 0 0 auto; }
.language-toggle { display: flex; align-items: center; min-height: 44px; gap: 8px; padding: 7px 8px; border: 0; background: transparent; font-size: .83rem; font-weight: 700; cursor: pointer; }
.language-toggle img, .language-menu img { width: 22px; height: 14px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.language-toggle svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.language-menu { position: absolute; top: calc(100% + 10px); right: 0; display: none; width: 290px; max-height: min(480px, calc(100vh - 110px)); padding: 10px; overflow-y: auto; grid-template-columns: repeat(2, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.language-picker.is-open .language-menu { display: grid; }
.language-menu a { display: flex; align-items: center; min-height: 40px; padding: 7px 8px; gap: 9px; border-radius: 3px; color: #4f4640; font-size: .78rem; }
.language-menu a:hover, .language-menu a.current { background: var(--cream-100); color: var(--brown-dark); }
.language-menu .language-global svg { width: 22px; height: 22px; padding: 2px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* Hero */
.hero { position: relative; height: clamp(580px, 72vh, 720px); overflow: hidden; background: #3c291e; }
.slider { position: relative; width: 100%; height: 100%; min-width: 0; overflow: hidden; background: #3c291e; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .85s ease, visibility .85s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; transform: scale(1); filter: sepia(.08) saturate(.86) contrast(1.04) brightness(.72); }
.slide-cezar img { object-position: center 60%; }
.slide-carved img { object-position: 42% 58%; }
.slide-artistic img { object-position: 38% 60%; }
.slide-table img { object-position: 42% 54%; }
.slide.is-active img { animation: ken-burns 7s linear forwards; }
@keyframes ken-burns { to { transform: scale(1.04); } }
.hero-overlay { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(27,18,13,.92) 0%, rgba(36,23,16,.78) 36%, rgba(38,25,17,.48) 65%, rgba(31,20,14,.7) 100%); }
.hero-content { position: relative; z-index: 2; display: flex; height: 100%; align-items: center; padding-block: 54px 94px; }
.hero-copy-inner { width: min(630px, 58%); color: var(--white); text-shadow: 0 2px 18px rgba(0,0,0,.2); }
.hero .eyebrow { color: #e2c4a7; }
.hero h1 { max-width: 15ch; margin-bottom: 22px; color: var(--white); font-size: clamp(2.8rem, 4.5vw, 4.5rem); }
.hero-lead { max-width: 610px; margin-bottom: 32px; color: #eee6df; font-size: clamp(1rem, 1.2vw, 1.15rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; font-size: .91rem; font-weight: 700; transition: background .2s, color .2s, transform .2s; }
.hero .button-primary { color: var(--brown-dark); background: #f4e9de; border-radius: 4px; text-shadow: none; }
.hero .button-primary:hover { transform: translateY(-2px); background: var(--white); }
.hero .button-text { padding-inline: 4px; color: var(--white); }
.button-text span { margin-left: 8px; transition: transform .2s; }
.button-text:hover span { transform: translateX(4px); }
.slider-nav-wrap { position: absolute; z-index: 3; right: 0; bottom: 24px; left: 0; display: flex; justify-content: flex-end; pointer-events: none; }
.slider-controls { display: flex; align-items: center; padding: 4px 7px; gap: 4px; color: var(--white); background: rgba(31,20,14,.48); border: 1px solid rgba(255,255,255,.24); border-radius: 4px; backdrop-filter: blur(7px); pointer-events: initial; }
.slider-arrow { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: var(--white); border: 0; background: transparent; cursor: pointer; }
.slider-arrow:hover { color: #e4c6a9; }
.slider-dots { display: flex; align-items: center; gap: 8px; }
.slider-dot { position: relative; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.slider-dot::before { position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; content: ""; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.85); border-radius: 50%; }
.slider-dot.is-active::before { background: var(--white); }

/* About */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px 80px; }
.about-copy { max-width: 680px; color: var(--muted); font-size: 1.05rem; }
.about-copy p:last-child { margin-bottom: 0; }
.values { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value { display: flex; min-height: 124px; justify-content: center; flex-direction: column; padding: 24px clamp(18px, 3vw, 42px); border-right: 1px solid var(--line); }
.value:last-child { border-right: 0; }
.value strong { color: var(--brown-dark); font-size: clamp(1.25rem, 2vw, 1.75rem); }
.value span { color: var(--muted); font-size: .9rem; }

/* Offer */
.offer { position: relative; background: var(--cream-50); border-block: 1px solid #eee7df; }
.offer::before { position: absolute; top: 0; right: 0; width: 180px; height: 180px; content: ""; opacity: .026; background: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0); background-size: 48px 48px; }
.section-heading.centered { max-width: 650px; margin: 0 auto 48px; text-align: center; }
.section-heading.centered > p:last-child, .faq-grid > .section-heading > p:last-child { color: var(--muted); }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.offer-card { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 6px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.offer-card:hover { transform: translateY(-4px); border-color: #c9b6a4; box-shadow: 0 13px 30px rgba(57,38,25,.08); }
.offer-card > a { display: flex; height: 100%; flex-direction: column; }
.card-image { aspect-ratio: 4 / 3; overflow: hidden; background: #f6f2ed; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.offer-card:hover .card-image img { transform: scale(1.035); }
.card-copy { display: flex; flex: 1; flex-direction: column; padding: 25px 26px 24px; }
.card-copy h3 { margin-bottom: 12px; color: var(--brown-dark); font-size: 1.27rem; }
.card-copy p { margin-bottom: 22px; color: var(--muted); font-size: .91rem; line-height: 1.6; }
.card-copy span { margin-top: auto; color: var(--brown); font-size: .85rem; font-weight: 700; }
.card-copy b { display: inline-block; margin-left: 5px; font-weight: inherit; transition: transform .2s; }
.offer-card:hover .card-copy b { transform: translateX(4px); }

/* FAQ */
.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: 4fr 7fr; align-items: start; gap: 80px; }
.faq-grid > .section-heading { position: sticky; top: calc(var(--header-h) + 32px); }
.accordion { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-item button { display: flex; width: 100%; min-height: 78px; align-items: center; justify-content: space-between; padding: 18px 4px; gap: 24px; text-align: left; background: transparent; border: 0; color: var(--ink); font-size: 1.04rem; font-weight: 700; cursor: pointer; }
.faq-item button span { position: relative; flex: 0 0 22px; width: 22px; height: 22px; }
.faq-item button span::before, .faq-item button span::after { position: absolute; top: 10px; left: 3px; width: 16px; height: 1px; content: ""; background: var(--brown); transition: transform .2s; }
.faq-item button span::after { transform: rotate(90deg); }
.faq-item.is-open button span::after { transform: rotate(0); }
.faq-answer { padding: 0 48px 24px 4px; color: var(--muted); font-size: .94rem; }
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }

/* Contact */
.contact { padding-block: clamp(64px, 8vw, 110px); background: var(--brown-dark); }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .92fr); overflow: hidden; background: #3b281d; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; box-shadow: 0 22px 60px rgba(24,14,9,.24); }
.contact-copy { padding: clamp(38px, 5vw, 70px); color: var(--white); }
.contact-copy h2 { max-width: 10ch; }
.contact-intro { max-width: 580px; margin-bottom: 36px; color: #dfd5cd; }
.contact-block { display: inline-block; width: 49%; margin-bottom: 24px; padding-right: 24px; vertical-align: top; }
.contact-block h3 { margin-bottom: 7px; color: #ecd8c5; font-size: .91rem; }
.contact-block address { color: #fff; font-size: .9rem; }
.company-ids { margin: 7px 0 0; color: #bdae9f; font-size: .76rem; }
.sales-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; gap: 20px; }
.sales-grid > div { padding: 18px; background: rgba(255,255,255,.055); border-left: 2px solid var(--tan); }
.sales-grid span, .sales-grid a { display: block; }
.sales-grid span { margin-bottom: 8px; color: #d7b99c; font-size: .77rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.sales-grid a { min-height: 28px; color: #fff; font-size: .87rem; }
.sales-grid a:hover { color: #e5c7aa; }
.facebook-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 30px; gap: 9px; color: #e6d7ca; font-size: .88rem; }
.facebook-link svg { width: 20px; fill: currentColor; }
.facebook-link:hover { color: var(--white); }
.map-wrap { min-height: 650px; background: var(--cream-100); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 650px; border: 0; filter: sepia(.12) saturate(.85) contrast(.96); }

/* Footer */
.site-footer { color: #dcd2c9; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1.3fr 1fr; padding-block: 64px 48px; gap: 64px; }
.footer-brand img { width: 150px; height: auto; margin-bottom: 18px; filter: grayscale(.15) brightness(.95); }
.footer-brand p { max-width: 380px; margin: 0; color: #aaa097; font-size: .88rem; }
.site-footer h2 { margin-bottom: 18px; color: #fff; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.site-footer nav a, .footer-contact a { display: block; width: max-content; max-width: 100%; min-height: 32px; color: #bdb2a9; font-size: .88rem; }
.footer-contact address { margin-bottom: 14px; color: #aaa097; font-size: .84rem; line-height: 1.65; }
.site-footer a:hover { color: #fff; }
.footer-disclosure { padding-block: 24px 30px; border-top: 1px solid rgba(255,255,255,.1); color: #a79d96; font-size: .76rem; line-height: 1.65; }
.footer-disclosure p { max-width: 1100px; margin: 0 0 8px; }
.footer-disclosure p:last-child { margin-bottom: 0; }
.footer-disclosure strong { color: #d8cec6; }
.footer-disclosure a { color: #c8bbb0; text-decoration: underline; text-underline-offset: 3px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  :root { --header-h: 74px; }
  .container { width: min(var(--container), calc(100% - 40px)); }
  .nav-wrap { gap: 20px; }
  .brand img { width: 142px; }
  .main-nav { gap: 22px; }
  .hero { height: clamp(580px, 72vh, 680px); }
  .hero-copy-inner { width: min(620px, 67%); }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { gap: 50px; }
  .contact-panel { grid-template-columns: 1fr; }
  .map-wrap, .map-wrap iframe { min-height: 430px; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; order: 2; }
  .language-picker { order: 3; }
  .main-nav { position: fixed; z-index: 90; top: var(--header-h); right: 0; left: 0; display: flex; height: auto; max-height: 0; margin: 0; overflow: hidden; align-items: stretch; flex-direction: column; gap: 0; background: var(--white); box-shadow: 0 14px 26px rgba(48,30,18,.1); transition: max-height .25s ease; }
  .main-nav.is-open { max-height: 330px; border-top: 1px solid var(--line); }
  .main-nav a { display: flex; min-height: 56px; justify-content: center; border-bottom: 1px solid #eee8e1; }
  .main-nav a::after { right: calc(50% - 30px); bottom: 10px; left: calc(50% - 30px); }
  .language-picker { margin-left: -10px; }
  .hero { height: 590px; }
  .hero-copy-inner { width: min(590px, 82%); }
  .hero-overlay { background: linear-gradient(90deg, rgba(27,18,13,.9) 0%, rgba(36,23,16,.72) 58%, rgba(31,20,14,.68) 100%); }
  .about-grid, .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-copy { max-width: none; }
  .faq-grid > .section-heading { position: static; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 34px; }
}

@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .container { width: calc(100% - 32px); }
  .site-header .container { width: calc(100% - 22px); }
  .brand img { width: 124px; }
  .menu-toggle { margin-left: auto; }
  .language-toggle { padding-inline: 5px; }
  .language-toggle svg { display: none; }
  .language-menu .language-global svg { display: block; }
  .language-menu { position: fixed; top: calc(var(--header-h) - 1px); right: 10px; left: 10px; width: auto; max-height: calc(100svh - var(--header-h) - 12px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { height: 560px; }
  .hero-content { align-items: center; padding-block: 42px 82px; }
  .hero-copy-inner { width: 100%; }
  .hero h1 { max-width: 14ch; font-size: clamp(2.25rem, 10vw, 2.75rem); }
  h1 { font-size: clamp(2.35rem, 12vw, 3.35rem); }
  h2 { font-size: 2.15rem; }
  .hero-lead { max-width: 34rem; margin-bottom: 24px; font-size: .93rem; line-height: 1.55; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero .button-text { min-height: 44px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(27,18,13,.88) 0%, rgba(36,23,16,.7) 100%); }
  .slide img { object-position: 50% center; }
  .slide-cezar img { object-position: 52% center; }
  .slide-carved img, .slide-artistic img, .slide-table img { object-position: 45% center; }
  .slider-nav-wrap { bottom: 13px; justify-content: center; }
  .section { padding-block: 76px; }
  .values { grid-template-columns: 1fr; }
  .value { min-height: 100px; padding: 22px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .value:last-child { border-bottom: 0; }
  .offer-grid { grid-template-columns: 1fr; }
  .card-copy { padding: 23px 22px; }
  .faq-item button { min-height: 72px; padding-block: 16px; font-size: .96rem; }
  .contact { padding-block: 48px; }
  .contact-copy { padding: 34px 26px; }
  .contact-block { display: block; width: 100%; padding-right: 0; }
  .sales-grid { grid-template-columns: 1fr; }
  .sales-grid a { display: flex; min-height: 44px; align-items: center; }
  .map-wrap, .map-wrap iframe { min-height: 350px; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding-block: 48px 36px; }
  .site-footer nav a, .footer-contact a { min-height: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 360px) {
  .brand img { width: 112px; }
  .menu-toggle { width: 42px; padding-inline: 8px; }
  .language-toggle img { width: 20px; }
  .hero { height: 575px; }
  .hero h1 { font-size: 2.25rem; }
  .contact-copy { padding-inline: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
