/* Toro Wood – styles. Kolory w :root – zmień tu, zmieni się wszędzie. */
:root {
  --bg: #f6f1e9;         /* jasny jesion */
  --bg-alt: #ede4d6;
  --card: #fffdf9;
  --ink: #2b211a;        /* orzech */
  --ink-2: #6b5d50;
  --line: #e0d4c2;
  --accent: #6e2a54;     /* amarant */
  --accent-ink: #fff;
  --dark: #2b211a;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: .8em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--card); padding: 8px 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; }
.logo b { font-weight: 600; color: var(--accent); margin-left: 2px; }
.logo svg { width: 28px; height: 28px; fill: #c9ad86; }
.logo .logo__mid { fill: var(--accent); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: none; padding: 5px 11px; font: 600 .78rem var(--sans); color: var(--ink-2); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 9vw, 110px); }
.hero__in { position: relative; z-index: 1; max-width: 1160px; }
.hero h1 { max-width: 11ch; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 46ch; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.grain { position: absolute; inset: 0 0 0 auto; width: 46%; opacity: .5; pointer-events: none;
  background: repeating-radial-gradient(ellipse 140% 60% at 120% 50%, transparent 0 14px, #d9c4a4 15px 16px, transparent 17px 30px, #e3d2b8 31px 32px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #5a2245; }
.btn--ghost { border-color: var(--ink); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--block { width: 100%; margin-top: 8px; }

/* sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #f3ebe0; }
.section--dark p { color: #cdbfae; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 24px; margin-bottom: 24px; }
.section__head p { margin: 0; max-width: 44ch; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 8px 16px; border-radius: 999px; font: 500 .9rem var(--sans); cursor: pointer; }
.chip[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip span { opacity: .55; margin-left: 4px; }

/* grid */
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 22px; }
.card { cursor: pointer; }
.card__img { position: relative; aspect-ratio: 4/3.4; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--card); color: var(--ink); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 6px; }
.badge--sold { background: var(--ink); color: var(--bg); }
.card__body { padding: 14px 2px 0; }
.card h3 { font-size: 1.12rem; margin-bottom: 4px; }
.card h3 button { all: unset; cursor: pointer; }
.card h3 button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card__meta { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--ink-2); }
.card__price { color: var(--ink); font-weight: 600; white-space: nowrap; }
.card.is-sold .card__img img { filter: grayscale(.5); opacity: .8; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.about__text p { font-size: 1.1rem; }
.sign { font-family: var(--serif); font-style: italic; font-size: 1.3rem !important; }

/* info cards */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.info p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.note { margin-top: 22px; font-size: .92rem; color: var(--ink-2); border-left: 3px solid var(--accent); padding-left: 14px; max-width: 70ch; }

/* contact */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.contact__links { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.contact__social a { color: #f3ebe0; margin-right: 14px; }

.foot { padding: 24px 0; font-size: .85rem; color: var(--ink-2); }
.foot__in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* modal */
.modal { width: min(1040px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 18px; background: var(--card); color: var(--ink); }
.modal::backdrop { background: rgba(30, 22, 16, .6); backdrop-filter: blur(3px); }
.modal__close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.modal__body { display: grid; grid-template-columns: 1.15fr 1fr; }
.modal__body > * { min-width: 0; }
.modal { overflow-x: hidden; }
.gallery { background: var(--bg-alt); padding: 16px; }
.gallery__main { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery__thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail { padding: 36px 32px 28px; overflow-y: auto; }
.detail h2 { font-size: 1.7rem; padding-right: 30px; }
.price { font-size: 1.4rem; font-weight: 600; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 20px 0; padding: 16px 0; border-block: 1px solid var(--line); font-size: .95rem; }
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; }

@media (max-width: 860px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .about, .contact, .modal__body { grid-template-columns: 1fr; }
  .cards3 { grid-template-columns: 1fr; }
  .grain { width: 80%; opacity: .3; }
  .detail { padding: 24px 20px; }
  .modal { max-height: calc(100dvh - 16px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
