/* TUTU Polscy Projektanci — one quiet column, black on white.
   Logo above a full-bleed banner; sections separated by a brick-bond mark taken from the logo. */

@font-face {
  font-family: 'Proxima Nova';
  src: url('fonts/ProximaNova-Regular.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --paper: #ffffff;
  --muted: #6e6e6e;
  --line: #e6e6e6;
  --tile: #111111;
  --sans: 'Proxima Nova', 'Montserrat', Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.6; -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Both languages live in the page; the root's data-lang picks one. */
html[data-lang="pl"] [lang="en"], html[data-lang="en"] [lang="pl"] { display: none; }

/* Header */
header { padding-block: 28px 20px; }
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.top .logo { grid-column: 2; display: block; }
.top .logo img { height: 132px; width: auto; display: block; }
.lang { justify-self: end; display: flex; gap: 4px; }
.lang button { font: inherit; font-size: 12px; letter-spacing: .18em; background: none; border: 1px solid transparent; color: var(--muted); padding: 4px 8px; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 36px; margin-top: 22px; }
nav a { text-decoration: none; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; padding-bottom: 3px; border-bottom: 1px solid transparent; }
nav a:hover { border-color: var(--ink); }
:is(.lang button, nav a, .btn, .social a, .intro a, .contact a):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.banner { display: block; width: 100%; height: auto; aspect-ratio: 2048 / 851; object-fit: cover; }

h1 { margin: 0; text-align: center; font-size: clamp(20px, 3vw, 28px); font-weight: 400; letter-spacing: .04em; padding-block: 48px 8px; text-wrap: balance; }

.mark { display: flex; justify-content: center; padding-block: 56px 28px; color: var(--ink); }
.mark svg { width: 44px; height: 22px; }

section { scroll-margin-top: 24px; }
h2 { text-align: center; font-size: 14px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; margin: 0 0 36px; }

/* Concept store */
.find { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: center; }
.find img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.find .where { display: grid; gap: 18px; }
.find .where p { margin: 0; }
.btn { display: inline-block; text-decoration: none; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; border: 1px solid var(--ink); padding: 12px 22px; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Targi */
.intro { max-width: 840px; margin: 0 auto 40px; text-align: center; text-wrap: pretty; }
.intro p { margin: 0 0 14px; }
.intro a { text-underline-offset: 3px; }
.outro { margin: 32px auto 0; }
.outro p { margin: 0; }
.carousel { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 12px) / 3); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.slide { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; scroll-snap-align: center; background: var(--line); outline: 1px solid var(--line); outline-offset: -1px; }
.carousel .nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; padding: 0 0 3px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.carousel .nav:hover { background: var(--ink); color: var(--paper); }
.carousel .nav:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.carousel .prev { left: -22px; }
.carousel .next { right: -22px; }

/* Marki TUTU */
.brands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.brands img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--tile); }
.brands-note { margin: 36px auto 0; text-align: center; }

/* Kontakt */
.contact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.contact .label { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact .value { font-size: 19px; overflow-wrap: anywhere; }
.contact .value a { text-decoration: none; }
.contact .value a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact .hours { font-size: 16px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.contact .hours .line { display: block; white-space: nowrap; }
.social { display: flex; justify-content: center; gap: 28px; margin-top: 40px; }
.social a { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

footer { margin-top: 72px; border-top: 1px solid var(--line); padding-block: 28px 40px; text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--muted); }
footer p { margin: 0; }
footer .credit { margin-top: 10px; font-size: 11px; letter-spacing: .08em; }
footer .credit a { text-decoration: none; }
footer .credit a:hover { text-decoration: underline; text-underline-offset: 3px; }
footer .credit a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (max-width: 1160px) {
  .carousel .prev { left: 8px; }
  .carousel .next { right: 8px; }
}
@media (max-width: 1000px) {
  .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .top .logo img { height: 96px; }
  nav { gap: 6px 22px; }
  .banner { aspect-ratio: 4 / 3; }
  .find { grid-template-columns: minmax(0, 1fr); }
  .track { grid-auto-columns: 72%; }
  .brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contact { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
