:root {
  --paper: #e5f6ee;
  --paper-deep: #d3eee3;
  --white: #ffffff;
  --ink: #1a1f1c;
  --muted: #3e4a44;
  --line: #c5ddd2;
  --green: #0e7c5a;
  --green-deep: #0a5c43;
  --mint: #d5f0e3;
  --coral: #c43824;
  --gold: #8a5a00;
  --gold-soft: #fff4cc;
  --blue: #1d4ed8;
  --shadow: 0 16px 40px rgba(16, 60, 44, 0.08);
  --stitch: url("../assets/decor/stitch.svg");
  --radius: 18px;
  --max: 1120px;
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.7), transparent 32%),
    radial-gradient(circle at 100% 8%, rgba(14, 124, 90, 0.08), transparent 28%),
    var(--paper);
  color: var(--ink);
}

img { max-width: 100%; height: auto; }

button, input, textarea { font: inherit; color: inherit; }

a { color: var(--green-deep); }

p { text-wrap: pretty; }

h1, h2, h3 { line-height: 1.15; text-wrap: balance; }

h1 { margin: 0 0 0.6rem; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { margin: 0 0 0.75rem; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -0.02em; }
h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
}

.skip:focus { top: 0.6rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.spool-bar { display: flex; height: 8px; }
.spool-bar span { flex: 1; }
.spool-bar span:nth-child(1) { background: #ef4b32; }
.spool-bar span:nth-child(2) { background: #e6a317; }
.spool-bar span:nth-child(3) { background: #0e7c5a; }
.spool-bar span:nth-child(4) { background: #2f6fed; }
.spool-bar span:nth-child(5) { background: #d9487c; }

.wrap,
.header-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.site-header::after {
  content: "";
  display: block;
  height: 22px;
  background: var(--stitch) center / 40px 22px repeat-x;
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 4.2rem;
  padding: 0.55rem 0;
}

.brand { display: inline-flex; text-decoration: none; }

.logo-crop {
  display: block;
  line-height: 0;
}

.logo-crop img {
  display: block;
  width: 100%;
  height: auto;
}

.logo-crop--header { width: 11rem; }
.logo-crop--footer { width: 10.5rem; }
.logo-crop--about { width: min(100%, 28rem); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang {
  display: inline-flex;
  padding: 0.2rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
}

.lang button {
  min-width: 2.8rem;
  min-height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.nav-toggle {
  min-height: 2.7rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  padding: 0.35rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.site-nav { display: none; padding: 0 0 0.9rem; }
.site-nav.is-open { display: block; }

.site-nav ul,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--green-deep);
  box-shadow: inset 0 -2px 0 var(--coral);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 3rem;
  padding: 0.65rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button--primary { background: var(--green-deep); color: #fff; }
.button--primary:hover { background: #084834; }
.button--secondary { background: var(--white); color: var(--ink); border-color: var(--ink); }
.button--secondary:hover { background: var(--mint); }
.button--compact { min-height: 2.7rem; padding-inline: 0.9rem; }
.button:disabled { opacity: 0.45; cursor: not-allowed; }

.lang-pending {
  position: relative;
  background: var(--gold-soft);
  color: #3d2e00;
}

.lang-pending::after {
  content: "";
  display: block;
  height: 18px;
  background: #8a5a00;
  -webkit-mask: var(--stitch) center / 36px 20px repeat-x;
  mask: var(--stitch) center / 36px 20px repeat-x;
}

.lang-pending p {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.7rem 0;
  text-align: center;
}

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0 1rem;
}

.hero-cut {
  --cut-size: 11rem;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  pointer-events: none;
  margin-bottom: -0.35rem;
}

.hero-cut__scissors {
  width: var(--cut-size);
  height: auto;
  flex: none;
  overflow: visible;
}

.hero-cut__blade {
  transform-box: view-box;
  transform-origin: 130px 85px;
}

.hero-cut__blade--upper { animation: blade-ready-upper 0.85s ease-out 0.25s 1 both; }
.hero-cut__blade--lower { animation: blade-ready-lower 0.85s ease-out 0.25s 1 both; }

@keyframes blade-ready-upper {
  from { transform: rotate(-9deg); }
  to { transform: rotate(0deg); }
}

@keyframes blade-ready-lower {
  from { transform: rotate(9deg); }
  to { transform: rotate(0deg); }
}

.hero-cut__seam {
  flex: 1;
  height: 22px;
  margin-left: calc(var(--cut-size) * -0.2);
  background: var(--stitch) left center / 40px 22px repeat-x;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--coral);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.lead { margin: 0; font-size: 1.15rem; max-width: 38rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.1rem; }
.hero__note { margin: 0.9rem 0 0; color: var(--muted); max-width: 40rem; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  position: relative;
  padding: 0.4rem 0.8rem 0.7rem;
  border: 2px solid var(--green-deep);
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
}

.facts li::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.28rem;
  height: 11px;
  background: var(--stitch) left center / 20px 11px repeat-x;
}

.banner {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.banner__viewport { display: grid; aspect-ratio: 1672 / 941; background: var(--paper-deep); }

.banner__slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
}

.banner__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.banner__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner__controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.6rem;
  background: var(--white);
}

.banner__controls > button,
.banner__dots button {
  min-height: 2.15rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
}

.banner__dots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  min-width: 0;
}
.banner__dots button {
  min-width: 0;
  padding-inline: 0.25rem;
  white-space: nowrap;
}
.banner__dots button[aria-current="true"] {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.section { padding: 1.25rem 0 0.5rem; }

.section + .section {
  padding-top: 2.15rem;
  background: var(--stitch) center top / 40px 22px repeat-x;
}
.section__intro { max-width: 42rem; color: var(--muted); }

.stitch {
  height: 52px;
  border: 0;
  margin: 1.6rem 0 0.4rem;
  background:
    url("../assets/decor/spool.svg") center / 42px 42px no-repeat,
    radial-gradient(circle at 50% 50%, #fff 0 23px, transparent 24px),
    var(--stitch) center / 40px 22px repeat-x;
}

.seam-curve {
  height: 2.6rem;
  margin-top: 0.85rem;
  background: url("../assets/decor/stitch-curve.svg") left center / min(100%, 18rem) auto no-repeat;
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tool-row li {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.tool-row img {
  width: 2rem;
  height: 2rem;
}

.grid { display: grid; gap: 0.9rem; }
.cards { display: grid; gap: 0.9rem; }

.home-split .card {
  background-repeat: no-repeat;
  background-position: right 0.9rem top 1.7rem;
  background-size: 2.5rem 2.5rem;
  padding-right: 4rem;
}

.home-split .card:first-child { background-image: url("../assets/decor/machine.svg"); }
.home-split .card:last-child { background-image: url("../assets/decor/tape.svg"); }

.card,
.shot,
.pending-panel,
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card { padding: 1.95rem 1.15rem 1.2rem; position: relative; }

.card::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0.5rem;
  height: 20px;
  background: var(--stitch) left center / 36px 20px repeat-x;
}

.card p:last-child { margin-bottom: 0; }
.card .button { margin-top: 0.8rem; }

.steps { display: grid; gap: 0.9rem; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1rem 1rem 4.2rem;
  box-shadow: var(--shadow);
  position: relative;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 0.95rem;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-deep);
  font-weight: 800;
  border: 2px solid var(--green-deep);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--coral);
}

.page-hero {
  padding: 1.6rem 4rem 0.4rem 0;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 3.4rem 3.4rem;
}
.page-hero .lead { color: var(--muted); }
.page-hero--scissors { background-image: url("../assets/decor/scissors.svg"); }
.page-hero--spool { background-image: url("../assets/decor/spool.svg"); }
.page-hero--needle { background-image: url("../assets/decor/needle.svg"); }
.page-hero--tape { background-image: url("../assets/decor/tape.svg"); }
.page-hero--machine { background-image: url("../assets/decor/machine.svg"); }

.shot { overflow: hidden; margin: 0; }
.shot img { display: block; width: 100%; aspect-ratio: 1672 / 941; object-fit: cover; }
.shot--square img { aspect-ratio: 1 / 1; object-fit: contain; }

.works-grid {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.works-grid > .shot {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.works-grid .works-zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.works-grid .shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.works-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 4.25rem 0.75rem 1rem;
  background: rgba(14, 32, 26, 0.88);
}

.works-lightbox[hidden] { display: none !important; }

body.works-lightbox-open { overflow: hidden; }

.works-lightbox img {
  justify-self: center;
  width: auto;
  max-width: min(1040px, 100%);
  height: auto;
  max-height: calc(100vh - 5.5rem);
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
  animation: works-zoom-in 180ms ease;
}

.works-lightbox__close,
.works-lightbox__nav {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.works-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0 0.95rem;
  font-weight: 700;
}

.works-lightbox__nav {
  position: absolute;
  top: 50%;
  font-size: 1.6rem;
  line-height: 1;
  transform: translateY(-50%);
}

.works-lightbox__prev { left: 0.75rem; }
.works-lightbox__next { right: 0.75rem; }

@keyframes works-zoom-in {
  from { transform: scale(0.86); }
  to { transform: scale(1); }
}

.product-photos { margin-bottom: 1.15rem; }
.shot figcaption {
  padding: 0.8rem 1rem 1rem;
  font-weight: 700;
}

.logo-panel {
  position: relative;
  display: grid;
  gap: 0.8rem;
  justify-items: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.9rem 1rem 1rem;
  box-shadow: var(--shadow);
}

.logo-panel::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0.5rem;
  height: 20px;
  background: var(--stitch) left center / 36px 20px repeat-x;
}
.logo-panel figcaption { color: var(--muted); }

.stack { display: grid; gap: 0.9rem; }
.contact-card {
  position: relative;
  padding: 1.95rem 1.15rem 1.1rem;
}

.contact-card::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0.5rem;
  height: 20px;
  background: var(--stitch) left center / 36px 20px repeat-x;
}
.contact-facts { display: grid; gap: 0.7rem; margin: 0 0 0.9rem; }
.contact-facts div { display: grid; gap: 0.1rem; }
.contact-facts dt { font-size: 0.85rem; color: var(--muted); }
.contact-facts dd { margin: 0; font-weight: 750; }

.pending-panel {
  margin: 0.8rem 0 1rem;
  padding: 0.85rem 1rem 0.95rem;
  border: 0;
  box-shadow: inset 0 0 0 2px #e2c56a;
  color: #3d2e00;
  background: var(--gold-soft);
}

.pending-panel::before {
  content: "";
  display: block;
  height: 18px;
  margin-bottom: 0.7rem;
  background: #8a5a00;
  -webkit-mask: var(--stitch) left center / 36px 20px repeat-x;
  mask: var(--stitch) left center / 36px 20px repeat-x;
}

.note { color: var(--muted); }
.form-error { min-height: 0; margin: 0.6rem 0 0; color: #8d1d12; font-weight: 750; }
.form-error:empty { display: none; }
.copy-status { min-height: 1.4rem; font-weight: 700; color: var(--green-deep); }

#configurator,
.card,
.wizard,
.choice { scroll-margin-top: 6.5rem; }

.wizard {
  position: relative;
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 2rem 1rem 1rem;
}

.wizard::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0.5rem;
  height: 20px;
  background: var(--stitch) left center / 36px 20px repeat-x;
}

.wizard__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.wizard__steps button {
  min-height: 2.7rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  font-weight: 700;
}

.wizard__steps button[aria-current="step"] {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}

.wizard__steps span {
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  margin-right: 0.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.wizard__subtitle { margin-bottom: 0.8rem; }
.wizard__picked { margin-top: 0; font-weight: 800; }
.wizard__panel { display: grid; gap: 0.9rem; }
.wizard__nav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

.choice-group { margin: 0; padding: 0; border: 0; display: grid; gap: 0.55rem; }
.choice-group legend { font-weight: 800; padding: 0; }

.choices { display: grid; gap: 0.6rem; }
.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 3rem;
  padding: 0.8rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
}
.choice input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--green-deep);
}
.choice span {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 0;
  justify-content: center;
}
.choice small { color: var(--muted); font-size: 0.92rem; }
.choice:has(input:checked) {
  border-color: var(--green-deep);
  background: var(--mint);
  box-shadow: inset 4px 0 0 var(--green-deep);
}
.choice:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }

.form-grid { display: grid; gap: 0.75rem; }
.field { display: grid; gap: 0.35rem; font-weight: 700; }
.field input,
.field textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 0.75rem 0.85rem;
  font-weight: 500;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 2px; }

.message-preview {
  margin: 0;
  white-space: pre-wrap;
  padding: 1rem;
  border-radius: 16px 16px 16px 6px;
  background: var(--mint);
  border: 2px solid #b7ddd0;
  font: inherit;
}

.messenger-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.site-footer {
  margin-top: 2.5rem;
  background: #fff;
  border-top: 6px solid transparent;
  border-image: linear-gradient(90deg, #ef4b32, #e6a317, #0e7c5a, #2f6fed, #d9487c) 1;
}

.site-footer::before {
  content: "";
  display: block;
  height: 22px;
  background: var(--stitch) center / 40px 22px repeat-x;
}

.footer-inner {
  display: grid;
  gap: 1rem;
  padding: 1.4rem 0 2rem;
}
.footer-brand p { margin: 0.25rem 0; }
.footer-note { margin: 0; color: var(--muted); max-width: 38rem; }

.noscript {
  margin: 0;
  padding: 0.8rem 1rem;
  background: var(--gold-soft);
  color: #3d2e00;
}

@media (max-width: 719px) {
  .banner__controls { grid-template-columns: 1fr 1fr; }
  .banner__dots { grid-column: 1 / -1; order: -1; }
  .banner__controls > button { width: 100%; }
  .banner__dots button { font-size: 0.62rem; padding-inline: 0.12rem; }
}

@media (min-width: 720px) {
  .logo-crop--header { width: 18rem; }
  .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-hero {
    padding-right: 5.5rem;
    background-size: 4.5rem 4.5rem;
  }
  .hero { padding-top: 2rem; }
  .hero-cut { --cut-size: 15rem; }
  .cards,
  .grid--2,
  .choices--catalog { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--wide,
  .form-grid .field:last-child { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .footer-note { grid-column: 1 / -1; }
}

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 2rem;
  }
  .hero-cut { --cut-size: 18rem; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .works-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards.product-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .banner__slide { transition: none; }
  .hero-cut__blade--upper,
  .hero-cut__blade--lower,
  .works-lightbox img { animation: none; }
}
