/* ============================================================
   Стропи і кріплення — design system
   Tokens: graphite + paper + WLL color coding (EN 1492)
   ============================================================ */

@layer reset, tokens, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  img, svg { display: block; max-width: 100%; height: auto; }
  button, input, select, textarea { font: inherit; color: inherit; }
  a { color: inherit; text-decoration: none; }
  ul, ol { list-style: none; }
  table { border-collapse: collapse; width: 100%; }
}

@layer tokens {
  :root {
    /* Base */
    --ink: #1a1d21;
    --ink-soft: #3d4450;
    --paper: #f4f2ed;
    --paper-elevated: #fbfaf7;
    --steel: #5c6670;
    --steel-light: #8a939c;
    --line: #d8d4cc;
    --line-strong: #b0aaa0;

    /* WLL coding (EN 1492 textile) — information, not decoration */
    --wll-1: #6B2D8B;   /* violet 1t */
    --wll-2: #2E7D32;   /* green 2t */
    --wll-3: #F9A825;   /* yellow 3t */
    --wll-4: #78909C;   /* grey 4t */
    --wll-5: #C62828;   /* red 5t */
    --wll-6: #6D4C41;   /* brown 6t */
    --wll-8: #1565C0;   /* blue 8t */
    --wll-10: #EF6C00;  /* orange 10t+ */
    --wll-steel: #5c6670;

    /* Semantic */
    --focus: #1565C0;
    --ok: #2E7D32;
    --err: #C62828;
    --surface: var(--paper-elevated);
    --bg: var(--paper);

    /* Type */
    --font-display: "Geologica", "Onest", system-ui, sans-serif;
    --font-body: "Onest", "Manrope", system-ui, sans-serif;
    --fs-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
    --fs-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
    --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
    --fs-md: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
    --fs-lg: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
    --fs-xl: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
    --fs-2xl: clamp(2.25rem, 1.7rem + 2vw, 3.5rem);

    /* Space */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 3rem;
    --sp-8: 4rem;
    --sp-9: 6rem;

    /* Radius / shadow */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 12px;
    --shadow-soft: 0 1px 2px rgb(26 29 33 / 0.06), 0 4px 12px rgb(26 29 33 / 0.04);

    /* Layout */
    --max: 72rem;
    --gutter: clamp(1rem, 3vw, 2rem);
    --header-h: 4rem;
    --sticky-h: 3.5rem;
  }
}

@layer base {
  body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    min-height: 100dvh;
  }
  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }
  h3 { font-size: var(--fs-lg); }
  p { max-width: 65ch; }
  :focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
  }
  .sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
  }
}

@layer layout {
  .wrap {
    width: min(100% - 2 * var(--gutter), var(--max));
    margin-inline: auto;
  }
  .section {
    padding-block: var(--sp-7);
  }
  .section--tight { padding-block: var(--sp-5); }
  .grid-2 {
    display: grid;
    gap: var(--sp-5);
  }
  @media (min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
  }
  .grid-4 {
    display: grid;
    gap: var(--sp-4);
    grid-template-columns: 1fr;
  }
  @media (min-width: 480px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }
  }
  @media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
  }
}

@layer components {
  /* ---- Header ---- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgb(251 250 247 / 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    height: var(--header-h);
  }
  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--sp-4);
  }
  .logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-md);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
  }
  .nav {
    display: none;
    gap: var(--sp-5);
    font-size: var(--fs-sm);
    font-weight: 500;
  }
  @media (min-width: 900px) {
    .nav { display: flex; }
  }
  .nav a:hover { color: var(--ink-soft); }
  .header-cta {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
  }
  .header-phone {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    font-size: var(--fs-xs);
    line-height: 1.3;
  }
  @media (min-width: 640px) {
    .header-phone { display: flex; }
  }
  .header-phone a {
    font-weight: 600;
    font-size: var(--fs-sm);
  }
  .status {
    color: var(--ok);
    font-weight: 500;
  }
  .status--off { color: var(--steel); }

  /* ---- Buttons ---- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 0.65em 1.25em;
    font-weight: 600;
    font-size: var(--fs-sm);
    border-radius: var(--r-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
  }
  .btn--primary {
    background: var(--ink);
    color: var(--paper);
  }
  .btn--primary:hover { background: var(--ink-soft); }
  .btn--secondary {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
  }
  .btn--secondary:hover {
    border-color: var(--ink);
  }
  .btn--ghost {
    background: transparent;
    color: var(--ink);
    padding-inline: 0.5em;
  }
  .btn--block { width: 100%; }
  .btn--lg { padding: 0.85em 1.5em; font-size: var(--fs-base); }

  /* ---- WLL badge ---- */
  .wll {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.2em 0.55em;
    border-radius: var(--r-sm);
    color: #fff;
    background: var(--wll-steel);
  }
  .wll[data-wll="1"] { background: var(--wll-1); }
  .wll[data-wll="2"] { background: var(--wll-2); }
  .wll[data-wll="3"] { background: var(--wll-3); color: var(--ink); }
  .wll[data-wll="4"] { background: var(--wll-4); }
  .wll[data-wll="5"] { background: var(--wll-5); }
  .wll[data-wll="6"] { background: var(--wll-6); }
  .wll[data-wll="8"] { background: var(--wll-8); }
  .wll[data-wll="10"] { background: var(--wll-10); }

  /* ---- Cards ---- */
  .card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .card__body {
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    flex: 1;
  }
  .card__title {
    font-size: var(--fs-md);
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .card__meta {
    font-size: var(--fs-sm);
    color: var(--steel);
  }
  .card__price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-md);
  }
  .card__price span {
    font-weight: 500;
    font-size: var(--fs-sm);
    color: var(--steel);
  }
  .card__actions {
    display: flex;
    gap: var(--sp-2);
    margin-top: auto;
    flex-wrap: wrap;
  }
  .card__illust {
    aspect-ratio: 1 / 1;
    background: #fff;
    display: grid;
    place-items: center;
    position: relative;
  }
  .card__illust svg {
    width: 70%;
    max-height: 80%;
  }

  /* ---- Hero ---- */
  .hero {
    padding-block: var(--sp-8) var(--sp-7);
    position: relative;
  }
  .hero__grid {
    display: grid;
    gap: var(--sp-6);
    align-items: center;
  }
  @media (min-width: 900px) {
    .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
  }
  .hero__lead {
    font-size: var(--fs-md);
    color: var(--ink-soft);
    margin-top: var(--sp-4);
    max-width: 40ch;
  }
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-5);
  }
  .hero__note {
    font-size: var(--fs-sm);
    color: var(--steel);
    margin-top: var(--sp-4);
  }

  /* Stitch divider */
  .stitch {
    height: 1px;
    background: repeating-linear-gradient(
      90deg,
      var(--line-strong) 0 8px,
      transparent 8px 14px
    );
    margin-block: var(--sp-5);
  }

  /* ---- Sling picker ---- */
  .picker {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    box-shadow: var(--shadow-soft);
  }
  .picker__title {
    font-size: var(--fs-md);
    margin-bottom: var(--sp-4);
  }
  .picker__fields {
    display: grid;
    gap: var(--sp-4);
  }
  @media (min-width: 640px) {
    .picker__fields { grid-template-columns: 1fr 1fr; }
  }
  .field label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--steel);
    margin-bottom: var(--sp-1);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .field input,
  .field select {
    width: 100%;
    padding: 0.6em 0.75em;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    background: var(--paper-elevated);
  }
  .field input:focus,
  .field select:focus {
    border-color: var(--focus);
    outline: none;
  }
  .picker__result {
    margin-top: var(--sp-5);
    padding-top: var(--sp-4);
    border-top: 1px dashed var(--line);
  }
  .picker__wll {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
  }
  .picker__wll-value {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 700;
  }
  .picker__disclaimer {
    font-size: var(--fs-xs);
    color: var(--steel);
    margin-top: var(--sp-3);
  }
  .picker__svg {
    margin-top: var(--sp-4);
    background: var(--paper);
    border-radius: var(--r-md);
    padding: var(--sp-3);
  }
  .picker__svg svg { width: 100%; height: auto; }

  /* ---- Steps ---- */
  .steps {
    display: grid;
    gap: var(--sp-4);
  }
  @media (min-width: 768px) {
    .steps { grid-template-columns: repeat(4, 1fr); }
  }
  .step {
    padding: var(--sp-4);
    border-left: 3px solid var(--line-strong);
  }
  .step__num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--steel);
    margin-bottom: var(--sp-2);
  }
  .step__title {
    font-weight: 600;
    margin-bottom: var(--sp-1);
  }
  .step__text {
    font-size: var(--fs-sm);
    color: var(--ink-soft);
  }

  /* ---- FAQ ---- */
  .faq details {
    border-bottom: 1px solid var(--line);
    padding-block: var(--sp-4);
  }
  .faq summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-3);
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: "+";
    font-size: 1.25em;
    color: var(--steel);
    flex-shrink: 0;
  }
  .faq details[open] summary::after { content: "−"; }
  .faq details p {
    margin-top: var(--sp-3);
    color: var(--ink-soft);
    font-size: var(--fs-sm);
  }

  /* ---- Product page ---- */
  .breadcrumbs {
    font-size: var(--fs-sm);
    color: var(--steel);
    margin-bottom: var(--sp-4);
  }
  .breadcrumbs a:hover { text-decoration: underline; }
  .product {
    display: grid;
    gap: var(--sp-6);
  }
  @media (min-width: 900px) {
    .product { grid-template-columns: 1fr 1fr; }
  }
  .product__gallery {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
  }
  .product__illust {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    background: #fff;
    padding: var(--sp-6);
  }
  .product__price-block {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--sp-3);
    margin-block: var(--sp-4);
  }
  .product__price {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 700;
  }
  .product__price span {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--steel);
  }
  .specs {
    margin-top: var(--sp-5);
  }
  .specs table {
    font-size: var(--fs-sm);
  }
  .specs th,
  .specs td {
    padding: var(--sp-2) var(--sp-3);
    text-align: left;
    border-bottom: 1px solid var(--line);
  }
  .specs th {
    font-weight: 500;
    color: var(--steel);
    width: 45%;
  }
  .safety-box {
    margin-top: var(--sp-5);
    padding: var(--sp-4);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
  }
  .safety-box h3 {
    font-size: var(--fs-base);
    margin-bottom: var(--sp-2);
  }

  /* ---- Footer ---- */
  .site-footer {
    background: var(--ink);
    color: #c8c4bc;
    padding-block: var(--sp-7) var(--sp-5);
    margin-top: var(--sp-8);
    font-size: var(--fs-sm);
  }
  .site-footer a { color: #e8e4dc; }
  .site-footer a:hover { text-decoration: underline; }
  .footer-grid {
    display: grid;
    gap: var(--sp-5);
  }
  @media (min-width: 768px) {
    .footer-grid { grid-template-columns: minmax(0, 3fr) minmax(180px, 1fr); }
  }
  .footer-legal {
    font-family: var(--font-display);
    font-weight: 600;
    color: #f4f2ed;
    margin-bottom: var(--sp-3);
  }
  .footer-req {
    display: grid;
    gap: var(--sp-1);
    line-height: 1.45;
  }
  .footer-req dt { color: #8a939c; font-size: var(--fs-xs); }
  .footer-req dd { margin-bottom: var(--sp-2); }
  .footer-bottom {
    margin-top: var(--sp-6);
    padding-top: var(--sp-4);
    border-top: 1px solid #3d4450;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-xs);
  }
  .copy-btn {
    background: #3d4450;
    color: #f4f2ed;
    border: none;
    padding: 0.4em 0.9em;
    border-radius: var(--r-sm);
    cursor: pointer;
    font-size: var(--fs-xs);
    font-weight: 600;
  }
  .copy-btn:hover { background: #5c6670; }

  /* ---- Sticky mobile CTA ---- */
  .sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--ink);
    color: #f4f2ed;
    display: flex;
    height: var(--sticky-h);
    border-top: 1px solid #3d4450;
  }
  @media (min-width: 900px) {
    .sticky-cta { display: none; }
  }
  .sticky-cta a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem;
  }
  .sticky-cta a span.icon { font-size: 1.1rem; }
  .sticky-cta a:not(:last-child) {
    border-right: 1px solid #3d4450;
  }
  body { padding-bottom: var(--sticky-h); }
  @media (min-width: 900px) {
    body { padding-bottom: 0; }
  }

  /* ---- Cookie banner ---- */
  .cookie {
    position: fixed;
    bottom: calc(var(--sticky-h) + 0.75rem);
    left: var(--gutter);
    right: var(--gutter);
    max-width: 28rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
    box-shadow: var(--shadow-soft);
    z-index: 60;
    font-size: var(--fs-sm);
  }
  @media (min-width: 900px) {
    .cookie { bottom: 1.5rem; left: 1.5rem; right: auto; }
  }
  .cookie p { margin-bottom: var(--sp-3); }
  .cookie__actions { display: flex; gap: var(--sp-2); }
  .cookie[hidden] { display: none; }

  /* ---- Modal form ---- */
  .modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: var(--gutter);
    background: rgb(26 29 33 / 0.5);
  }
  .modal[hidden] { display: none; }
  .modal__panel {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    width: min(100%, 24rem);
    max-height: 90dvh;
    overflow-y: auto;
  }
  .modal__title {
    font-size: var(--fs-lg);
    margin-bottom: var(--sp-4);
  }
  .modal__close {
    float: right;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    color: var(--steel);
  }
  .form-row { margin-bottom: var(--sp-3); }
  .form-row label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 600;
    margin-bottom: var(--sp-1);
  }
  .form-row input,
  .form-row textarea {
    width: 100%;
    padding: 0.6em 0.75em;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    background: var(--paper-elevated);
  }
  .form-row textarea { min-height: 4rem; resize: vertical; }
  .form-error {
    color: var(--err);
    font-size: var(--fs-xs);
    margin-top: var(--sp-1);
  }
  .form-success {
    color: var(--ok);
    font-weight: 600;
    padding: var(--sp-3);
    background: #e8f5e9;
    border-radius: var(--r-md);
  }
  .honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
  }

  /* ---- Catalog filters ---- */
  .filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
    align-items: end;
  }
  .filters .field { min-width: 8rem; }
  .filters input[type="search"] {
    min-width: 12rem;
    padding: 0.6em 0.75em;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
  }

  /* ---- Category grid on home ---- */
  .cat-card {
    padding: var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: border-color 0.15s;
  }
  .cat-card:hover { border-color: var(--ink); }
  .cat-card h3 {
    font-size: var(--fs-md);
    margin-bottom: var(--sp-2);
  }
  .cat-card p {
    font-size: var(--fs-sm);
    color: var(--ink-soft);
  }
}

@layer utilities {
  .text-steel { color: var(--steel); }
  .mt-2 { margin-top: var(--sp-2); }
  .mt-3 { margin-top: var(--sp-3); }
  .mt-4 { margin-top: var(--sp-4); }
  .mt-5 { margin-top: var(--sp-5); }
  .mb-4 { margin-bottom: var(--sp-4); }
  .mb-5 { margin-bottom: var(--sp-5); }
}

/* Hero text and contact form */
.hero__grid.hero__grid--contact { grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) {
  .hero__grid.hero__grid--contact { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}
.hero__grid--contact .hero__lead { max-width: 40ch; }
.contact-request { width: 100%; min-width: 0; }
.contact-request .picker__title { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.contact-request__guide { margin-bottom: 1.5rem; }
.contact-request__guide h3 { font-size: 1rem; margin-bottom: .5rem; }
.contact-request__guide p { color: var(--ink-soft); margin-bottom: .65rem; }
.contact-request .field { min-width: 0; }
.contact-request textarea { display: block; width: 100%; box-sizing: border-box; padding: .75em; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--paper-elevated); font: inherit; color: inherit; resize: vertical; min-height: 120px; }
.contact-request textarea:focus { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Square product photography on the grey page */
.card__illust { overflow: hidden; border-bottom: 1px solid var(--line); }
.product__gallery { align-self: start; background: #fff; }
.card__illust img, .product__illust img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.card__illust:has(> img), .product__illust:has(> img) { padding: 0; }

/* Compact seller details */
.site-footer { padding-block: 2rem 1.25rem; }
.site-footer .footer-req { grid-template-columns: minmax(100px, .65fr) minmax(0, 1.75fr); column-gap: 1rem; row-gap: .45rem; align-items: baseline; }
.site-footer .footer-req dt, .site-footer .footer-req dd { margin: 0; }
.site-footer .footer-req dd { overflow-wrap: anywhere; min-width: 0; }
.site-footer .footer-bottom { margin-top: 1.5rem; padding-top: 1rem; }
@media (min-width: 768px) {
  .site-footer .footer-grid { grid-template-columns: minmax(0, 3fr) minmax(180px, 1fr); }
}
@media (max-width: 380px) {
  .site-footer .footer-req { grid-template-columns: 90px minmax(0, 1fr); column-gap: .6rem; }
}

/* Interaction and narrow-screen fixes */
[hidden] { display: none !important; }
.modal__close { min-width: 44px; min-height: 44px; }
body:has(.modal:not([hidden])) { overscroll-behavior: none; }
.form-msg a { text-decoration: underline; overflow-wrap: anywhere; }
.catalog-empty { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.product > *, .footer-grid > * { min-width: 0; }
@media (max-width: 899px) {
  .site-header { height: auto; }
  .site-header__inner { flex-wrap: wrap; padding-block: .65rem; gap: .6rem; }
  .site-header .nav { display: flex; order: 3; width: 100%; overflow-x: auto; gap: 1.1rem; padding-block: .4rem; white-space: nowrap; }
  .site-header .logo { font-size: 1rem; }
  .site-header .header-cta .btn { font-size: .8rem; padding: .6em .8em; }
  .hero { padding-top: 2rem; }
}
@media (max-width: 480px) {
  .site-header .logo { max-width: 56%; }
  h1 { font-size: clamp(1.85rem, 8vw, 2.25rem); overflow-wrap: break-word; }
  .contact-request { padding: 1.1rem; }
  .filters .field, .filters input[type="search"] { min-width: 0; width: 100%; }
  input, textarea, select { font-size: 16px; }
}

/* Ordering process */
.purchase-panel { background: #20262b; border-radius: 20px; padding: clamp(1.25rem, 3vw, 2.5rem); color: #f4f2ed; }
.purchase-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.75rem; }
.purchase-eyebrow { display: block; color: #c7c9c6; letter-spacing: .12em; font-size: .7rem; font-weight: 600; margin-bottom: .8rem; }
.purchase-heading h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.65rem); line-height: 1.12; }
.purchase-heading > p { color: #d1d4d4; font-size: .95rem; max-width: 52ch; }
.purchase-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; list-style: none; }
.purchase-card { display: flex; flex-direction: column; padding: 1.35rem; border-radius: 12px; background: #f4f2ed; color: #30383f; min-width: 0; }
.purchase-number { display: block; font-family: var(--font-display); font-size: 2.7rem; font-weight: 700; line-height: 1; color: #737e82; margin-bottom: 1.6rem; letter-spacing: -.06em; }
.purchase-card h3 { font-size: 1.05rem; line-height: 1.3; margin-bottom: .65rem; }
.purchase-card p { font-size: .88rem; line-height: 1.6; margin-bottom: 1rem; }
.purchase-card > a { font-size: .8rem; font-weight: 600; margin-top: auto; text-decoration: underline; text-underline-offset: 4px; }
.purchase-card > a span { display: inline-block; margin-left: .3rem; }
.purchase-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 1.35rem; font-size: .9rem; }
.purchase-bottom > span { color: #d1d4d4; }
.purchase-bottom a { font-weight: 600; }
@media (max-width: 1050px) { .purchase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
 .purchase-heading { display: block; }
 .purchase-heading > p { margin-top: 1rem; }
 .purchase-grid { grid-template-columns: minmax(0, 1fr); }
 .purchase-card { display: grid; grid-template-columns: 2.5rem minmax(0,1fr); gap: .4rem 1rem; padding: 1.1rem; }
 .purchase-number { grid-row: 1 / 4; font-size: 2rem; margin: 0; }
 .purchase-card h3, .purchase-card p, .purchase-card > a { grid-column: 2; margin: 0; }
}

/* Full-width seller information */
.seller-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.seller-contact p { max-width: none; }
.seller-contact__contacts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.seller-contact__contacts h2 { font-size: var(--fs-lg); }
.seller-contact__contacts p { margin-top: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
 .seller-contact__contacts { align-items: start; flex-direction: column; }
}

/* Catalog sections */
.catalog-group { margin-block: 3rem 4rem; }
.catalog-group__heading { margin-bottom: 1.4rem; }
.catalog-group__heading > span { color: var(--steel); font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.catalog-group__heading h2 { margin-top: .4rem; }
.catalog-group__heading p { color: var(--ink-soft); margin-top: .5rem; }
.catalog-rows { border-top: 1px solid var(--line-strong); }
.catalog-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem .3rem; border-bottom: 1px solid var(--line); }
.catalog-row:hover { background: var(--surface); }
.catalog-row strong { display: block; font: 700 var(--fs-lg) var(--font-display); }
.catalog-row small { display: block; color: var(--steel); font-size: var(--fs-sm); margin-top: .35rem; }
.catalog-row > span:last-child { font-size: 1.5rem; flex-shrink: 0; }
.catalog-more { margin-top: 1.2rem; text-align: right; max-width: none; }
.catalog-more a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.category-overview__list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-top: 2rem; }
.category-overview__list section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem; scroll-margin-top: 7rem; }
.category-overview__list h2 { font-size: var(--fs-md); }
.category-overview__list p { margin-top: .7rem; color: var(--ink-soft); font-size: var(--fs-sm); }
.sourced-grid{margin-top:1.6rem;gap:1rem}
.sourced-card{display:flex;flex-direction:column;min-width:0}
.sourced-card .card__illust{aspect-ratio:1;background:#fff;display:grid;place-items:center;overflow:hidden}
.sourced-card .card__illust img{width:100%;height:100%;object-fit:contain;padding:1rem}
.sourced-card .card__body{display:flex;flex:1;flex-direction:column;gap:.7rem}
.sourced-card__detail{color:var(--steel,#5b6470);font-size:.9rem;line-height:1.5;flex:1}
.sourced-card .card__actions{margin-top:auto}
.sourced-card .card__actions .btn{width:100%}
.card__illust img,.product__illust img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.site-header .logo{display:inline-flex;align-items:center;gap:.65rem;flex-shrink:0;letter-spacing:0;line-height:1}
.catalog-sling-section + .catalog-sling-section{margin-top:2.1rem}
.catalog-sling-section .catalog-row{margin-bottom:.25rem}
.catalog-sling-section .sourced-grid{margin-top:.85rem}
.catalog-group--top .grid-4{margin-top:1.2rem}
.catalog-page .catalog-intro,.category-overview > p,.catalog-group__heading > p{max-width:none!important;width:100%}
.category-overview{max-width:none}
.sourced-card .card__illust a{display:block;width:100%;height:100%}
.sourced-card .card__illust a img{width:100%;height:100%}
.sourced-card .card__title a:hover{text-decoration:underline;text-underline-offset:.18em}
.site-header .logo__text-only{display:inline-flex;align-items:center;white-space:nowrap;font-family:var(--font-display);font-weight:700;letter-spacing:.025em;line-height:1}
.site-header .logo__primary{display:inline-block;background:var(--ink);color:var(--paper);border-radius:3px 0 0 3px}
.site-header .logo__secondary{display:inline-block;background:#e7a16a;color:var(--ink);border-radius:0 3px 3px 0}
.site-header .logo__primary,.site-header .logo__secondary{font-size:1.25rem;padding:.58rem .66rem .6rem}
@media(max-width:650px){.site-header .logo__text-only{letter-spacing:0}.site-header .logo__primary,.site-header .logo__secondary{font-size:.92rem;padding:.48rem .38rem}}
.form-delivery-note{margin-top:.75rem;color:var(--ink-soft);font-size:var(--fs-xs);line-height:1.45}
.form-delivery-note a{text-decoration:underline;text-underline-offset:.15em}
.about-page .wrap{max-width:54rem}
.about-page p{max-width:none}
.card__summary{font-size:var(--fs-sm);line-height:1.45;color:var(--ink-soft);margin-top:.6rem}
.home-accent{margin-block:0 2rem}
.home-accent__panel{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;background:#e7a16a;color:var(--ink);padding:1.35rem 1.75rem;border-radius:var(--r-md)}
.home-accent h2{font-size:var(--fs-lg);line-height:1.2;margin:0}
.home-accent p{margin:.45rem 0 0;max-width:none;line-height:1.45}
.home-accent .btn{flex-shrink:0;white-space:nowrap}
.product-description{margin-top:2rem}
.product-description h2{margin-bottom:1rem}
.product-description p+p{margin-top:1rem}
@media(max-width:700px){.home-accent__panel{flex-direction:column;align-items:flex-start;padding:1.2rem;gap:1rem}.home-accent .btn{width:100%}}

/* Clear paths to the main content and to the next step in an order. */
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
#main-content:focus { outline: none; }
.product-order-note { margin-top: 1rem; color: var(--ink-soft); font-size: var(--fs-sm); }
.product-order-note a { text-decoration: underline; text-underline-offset: .15em; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
@media (max-width: 600px) {
  .site-header .nav { flex-wrap: wrap; overflow: visible; white-space: normal; gap: .15rem 1rem; }
  .site-header .nav a { display: inline-flex; align-items: center; min-height: 2.25rem; }
}
