/* Pierścionkowa Królowa: quiet, photo-first boutique styling. */
:root {
  --bg: #fbf8f4;
  --paper: #f4ede7;
  --blush: #f3e5e3;
  --ink: #2b2427;
  --muted: #76696c;
  --line: #e4d9d1;
  --rose: #a9737e;
  --rose-dark: #87545f;
  --gold: #a98b5b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.eyebrow {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 248, 244, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 4.25rem; gap: 1rem; }
.brand { grid-column: 2; display: flex; align-items: center; gap: .6rem; text-decoration: none; white-space: nowrap; }
.brand svg { width: 26px; height: 20px; color: var(--gold); flex: none; }
.brand span { font-family: var(--serif); font-size: clamp(1.1rem, 2.6vw, 1.45rem); letter-spacing: .01em; }
.nav { grid-column: 1; grid-row: 1; display: flex; gap: 1.6rem; }
.nav a, .header-end a {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  padding: .4rem 0; border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav a:hover, .header-end a:hover { border-color: var(--ink); }
.header-end { grid-column: 3; display: flex; justify-content: flex-end; gap: 1.4rem; align-items: center; }
.lang { color: var(--muted) !important; }
.lang b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .brand { grid-column: 1 / 3; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 1.2rem; padding-bottom: .6rem; overflow-x: auto; }
  .header-end .contact-link { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.1rem; padding: .85rem 1.9rem;
  background: var(--ink); color: #fff; text-decoration: none;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--ink); transition: background .25s, color .25s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.light { background: transparent; color: var(--ink); }
.btn.light:hover { background: var(--ink); color: #fff; }
.btn.block { display: flex; width: 100%; }
.link-arrow { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .2rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(84vh, 760px); border-bottom: 1px solid var(--line); }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 4rem var(--pad) 4rem max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); margin-bottom: 1.4rem; }
.hero h1 em { font-style: italic; color: var(--rose-dark); }
.hero .lede { max-width: 30rem; color: var(--muted); font-size: 1.05rem; margin-bottom: 2.2rem; }
.hero figure { margin: 0; position: relative; overflow: hidden; background: var(--paper); }
.hero figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero figure { aspect-ratio: 4 / 5; order: -1; }
  .hero-text { padding: 2.5rem var(--pad) 3rem; }
}

/* Values strip */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 3.5rem 0; border-bottom: 1px solid var(--line); }
.values h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.values p { color: var(--muted); font-size: .93rem; margin: 0; }
.values .mark { width: 22px; height: 1px; background: var(--gold); margin-bottom: 1.1rem; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; gap: 1.6rem; padding: 2.5rem 0; } }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.section-head .count { color: var(--muted); font-size: .85rem; letter-spacing: .08em; }

/* Collection grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 3rem 2rem; }
.card { text-decoration: none; display: block; }
.card .frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); margin-bottom: 1.1rem; }
.card .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform 1.2s ease; }
.card .frame img.alt { opacity: 0; }
.card:hover .frame img.alt, .card:focus-visible .frame img.alt { opacity: 1; }
.card:hover .frame img { transform: scale(1.02); }
.card h3 { font-size: 1.4rem; margin-bottom: .25rem; }
.card .meta { color: var(--muted); font-size: .88rem; margin-bottom: .5rem; }
.card .price { font-size: .95rem; letter-spacing: .04em; }
.card .eyebrow, .card .lead, .card .link-arrow { display: none; }
.grid.featured { grid-template-columns: 1fr; gap: 4rem; }
.grid.featured .card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.grid.featured .frame { aspect-ratio: 1; margin: 0; }
.grid.featured .card h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: .5rem; }
.grid.featured .eyebrow, .grid.featured .lead { display: block; }
.grid.featured .lead { color: #4a3f43; margin: 1.2rem 0 1.4rem; max-width: 28rem; }
.grid.featured .price { font-size: 1.25rem; margin-bottom: 1.8rem; }
.grid.featured .link-arrow { display: inline-block; }
@media (max-width: 760px) { .grid.featured .card { grid-template-columns: 1fr; gap: 1.2rem; } }
.badge { position: absolute; top: .9rem; left: .9rem; z-index: 2; background: var(--bg); padding: .3rem .7rem; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }

/* About */
.about { background: var(--paper); }
.about .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about figure { margin: 0; aspect-ratio: 1; overflow: hidden; }
.about figure img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
.about p { font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.6; color: #3f3539; }
@media (max-width: 760px) { .about .wrap { grid-template-columns: 1fr; } }

/* Steps */
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--gold); margin-bottom: .8rem; }
.steps h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps ol { grid-template-columns: 1fr; gap: 1.8rem; } }

/* Contact */
.contact { text-align: center; border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.contact p { color: var(--muted); max-width: 32rem; margin: 0 auto 1.6rem; }
.contact .email { font-family: var(--serif); font-size: clamp(1.25rem, 3.2vw, 1.9rem); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: .2rem; word-break: break-word; }
.contact .email:hover { border-color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0 2.6rem; color: var(--muted); font-size: .82rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; }
.site-footer a { color: var(--muted); }

/* Ring page */
.crumbs { padding: 1.4rem 0 0; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); padding: 1.6rem 0 4rem; align-items: start; }
.gallery { position: relative; }
.gallery-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.gallery-list li:first-child { grid-column: 1 / -1; }
.gallery-list a { display: block; position: relative; aspect-ratio: 1; overflow: hidden; background: var(--paper); cursor: zoom-in; }
.gallery-list img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery-list a:hover img { transform: scale(1.025); }
.gallery-count { display: none; }
.info { position: sticky; top: 6rem; }
.info h1 { font-size: clamp(2.3rem, 4.5vw, 3.4rem); margin-bottom: .35rem; }
.info .translation { color: var(--muted); font-family: var(--serif); font-style: italic; margin-bottom: .8rem; }
.info .price { font-size: 1.35rem; letter-spacing: .03em; margin: 1rem 0 .2rem; }
.info .price-note { color: var(--muted); font-size: .82rem; margin-bottom: 1.4rem; }
.info .lead { font-size: 1.02rem; color: #4a3f43; margin-bottom: 1.8rem; }
.info .ask-note { text-align: center; color: var(--muted); font-size: .82rem; margin: .8rem 0 2rem; }
.sold-badge { display: inline-block; border: 1px solid var(--ink); padding: .25rem .7rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1rem; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 1.05rem 0; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.1rem; font-weight: 300; letter-spacing: 0; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 0 1.3rem; color: #4a3f43; font-size: .95rem; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.4rem; margin: 0; }
.specs dt { color: var(--muted); font-size: .85rem; }
.specs dd { margin: 0; font-size: .92rem; }
.story { background: var(--paper); }
.story .wrap { max-width: 46rem; text-align: center; }
.story h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 1.8rem; }
.story p { font-family: var(--serif); font-size: clamp(1.1rem, 1.9vw, 1.28rem); line-height: 1.7; color: #3f3539; }
.story p.eyebrow { font-family: var(--sans); font-size: .72rem; color: var(--muted); }
.story .crown { width: 30px; height: 23px; color: var(--gold); margin: 2rem auto 0; }

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; padding-top: 1rem; }
  .info { position: static; }
  .gallery { margin: 0 calc(var(--pad) * -1); }
  .gallery-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; scrollbar-width: none; }
  .gallery-list::-webkit-scrollbar { display: none; }
  .gallery-list li { flex: 0 0 100%; scroll-snap-align: center; }
  .gallery-count {
    display: block; position: absolute; right: calc(var(--pad)); bottom: .9rem;
    background: rgba(251, 248, 244, .9); padding: .25rem .65rem; font-size: .75rem; letter-spacing: .1em;
  }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(24, 19, 21, .96); color: #fff;
  align-items: center; justify-content: center; touch-action: pan-y;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  width: 3.2rem; height: 3.2rem; display: grid; place-items: center; opacity: .8;
}
.lightbox button:hover { opacity: 1; }
.lightbox svg { width: 26px; height: 26px; }
.lightbox .lb-close { top: .6rem; right: .6rem; }
.lightbox .lb-prev { left: .6rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: .6rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; font-size: .8rem; letter-spacing: .12em; opacity: .75; }
.lightbox .lb-caption { position: absolute; top: 1.3rem; left: 4rem; right: 4rem; text-align: center; font-size: .85rem; opacity: .75; }
body.lb-open { overflow: hidden; }

/* 404 */
.not-found { text-align: center; padding: 7rem 0; }
.not-found h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.not-found p { color: var(--muted); }
