/* The landing (/): its frame, the hero, the „O Moonstory” card and the product rows. */

  /* ——— Landing (the "Strona główna" mockup) ——— */

  /* The mockup leaves the line height of most texts to the browser; paragraphs set their own. */
  .kl__landing { line-height: normal; }

  /* A section of the landing: the page grid, 96px to the next one. */
  .kl__landing-section { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter) 96px; }

  /* The head of a product row: the label and the heading on the left, a text link on the right, on one baseline. */
  .kl__landing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
  .kl__landing-heading { display: flex; flex-direction: column; gap: 8px; }
  .kl__landing-h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 2.125rem; color: var(--ink); }
  /* A garnet text link underlined in its own colour. `.kl .kl__landing-link`: .kl a (text-decoration: none) is more
     specific than a single class. */
  .kl .kl__landing-link {
    font-size: .875rem;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color .15s ease;
  }
  .kl .kl__landing-link:hover { color: var(--accent-dark); }

  /* A glass pill on a photo ("Nowość", "Nr 1"). */
  .kl__chip {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgb(255 255 255 / .8);
    background: rgb(255 255 255 / .6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: .65625rem;
    line-height: normal;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .kl__chip--lg { padding: 5px 12px; font-size: .6875rem; }

  /* ——— Landing: hero ——— */

  /* The photo fills the section, mirrored (the hand reaches towards the text), under a blush mist that carries the
     statement on the left. The text column is centred on a 1120px grid; the section is 680px tall at the mockup's
     1280px and keeps the frame's proportions on a wider window (at most 800px). The sky shows until the photo loads. */
  .kl__hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(680px, 53.125vw, 800px);
    margin-bottom: 88px;
    padding: 64px max(var(--gutter), calc((100% - 1120px) / 2));
    overflow: hidden;
    background: var(--sky);
  }
  .kl__hero-media { position: absolute; inset: 0; margin: 0; }
  .kl__hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 20% 50%;
    transform: scaleX(-1);
  }
  .kl__hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
      color-mix(in srgb, var(--blush) 92%, transparent) 0%,
      color-mix(in srgb, var(--blush) 75%, transparent) 32%,
      transparent 58%);
  }
  /* The statement comes first in the document; the photo is positioned under it. */
  .kl__hero-copy { position: relative; z-index: 1; max-width: 500px; display: flex; flex-direction: column; gap: 26px; }
  .kl__hero-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 4rem;
    line-height: 1.04;
    letter-spacing: -.01em;
    color: var(--ink);
    text-wrap: balance;
  }
  .kl__hero-lead { margin: 0; max-width: 420px; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }
  .kl__hero-cta { align-self: flex-start; padding: 16px 28px; font-size: .96875rem; line-height: normal; }
  /* What the photo shows: a glass label in the corner of the frame, on the page grid's right edge. */
  .kl__hero-caption {
    position: absolute;
    z-index: 1;
    right: max(var(--gutter), calc((100% - 1200px) / 2));
    bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--glass-edge);
    background: linear-gradient(135deg, rgb(255 255 255 / .8), rgb(255 255 255 / .45));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 16px 36px -22px color-mix(in srgb, var(--accent) 50%, transparent);
  }
  .kl__hero-caption-label { font-size: .65625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
  .kl__hero-caption-text { font-family: var(--font-display); font-size: 1.0625rem; color: var(--ink); }

  /* ——— Landing: „O Moonstory” ——— */

  /* One glass card: the heading and the link to the story in the left third, the four values in a 2×2 grid in the
     rest. The link sits 20px under the heading (the mockup's 14px gap + 6px margin). */
  .kl__values-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    grid-template-areas: "intro list" "link list";
    grid-template-rows: auto 1fr;
    gap: 20px 56px;
    padding: 44px;
    border-radius: 24px;
    border: 1px solid var(--glass-edge);
    background: var(--glass-fill);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 20px 48px -34px color-mix(in srgb, var(--accent) 45%, transparent);
  }
  .kl__values-intro { grid-area: intro; display: flex; flex-direction: column; gap: 14px; }
  .kl__values-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2.125rem;
    line-height: 1.15;
    color: var(--ink);
    text-wrap: balance;
  }
  .kl__values-link { grid-area: link; align-self: start; justify-self: start; }
  .kl__values-list { grid-area: list; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
  .kl__value {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  }
  .kl__value-num { font-family: var(--font-display); font-size: .8125rem; color: var(--link); }
  .kl__value-body { display: flex; flex-direction: column; gap: 8px; }
  .kl__value-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.1875rem; color: var(--ink); }
  .kl__value-text { margin: 0; font-size: .90625rem; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }

  /* ——— Landing: product rows ——— */

  .kl__newest, .kl__bestsellers { display: flex; flex-direction: column; gap: 28px; }
  .kl__newest-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

  /* Product card („Nowości”, products/_card): a 4:5 photo with a pill in its corner and a glass „Dodaj do koszyka”
     across its bottom; the name, the stones and the price under it. */
  .kl__product-card { display: flex; flex-direction: column; gap: 12px; }
  .kl__product-card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sky); }
  .kl__product-card-photo { position: absolute; inset: 0; }
  .kl__product-card-img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .kl__product-card-badge { position: absolute; left: 12px; top: 12px; pointer-events: none; }
  .kl__product-card-cart {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgb(255 255 255 / .9);
    background: rgb(255 255 255 / .6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: .84375rem;
    color: var(--accent);
    transition: background-color .15s ease;
  }
  .kl__product-card-cart:hover { background: rgb(255 255 255 / .88); }
  .kl__product-card-info { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .kl__product-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .kl__product-card-name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.125rem; }
  .kl__product-card-link { color: var(--ink); transition: color .15s ease; }
  .kl__product-card-link:hover { color: var(--accent); }
  .kl__product-card-stones { margin: 0; font-size: .8125rem; color: var(--muted); }
  .kl__product-card-price { flex: none; margin: 0; font-family: var(--font-display); font-size: 1rem; color: var(--ink); }

  /* „Bestsellery”: the „Nr 1” card (its photo large, a glass panel at the bottom) beside up to three glass rows, which
     share its height. With no rows the card takes the whole width. */
  .kl__bestsellers-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
  .kl__bestsellers-layout--single { grid-template-columns: minmax(0, 1fr); }
  .kl__bestseller-lead { position: relative; display: block; min-height: 520px; overflow: hidden; background: var(--sky); color: var(--ink); }
  .kl__bestseller-lead-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .kl__bestseller-rank { position: absolute; left: 16px; top: 16px; }
  .kl__bestseller-panel {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid var(--glass-edge);
    background: linear-gradient(135deg, rgb(255 255 255 / .82), rgb(255 255 255 / .5));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 16px 36px -22px color-mix(in srgb, var(--accent) 50%, transparent);
  }
  .kl__bestseller-panel-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .kl__bestseller-lead-name { font-family: var(--font-display); font-size: 1.5rem; }
  .kl__bestseller-lead-stones { font-size: .84375rem; color: var(--muted); }
  .kl__bestseller-panel-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
  .kl__bestseller-lead-price { font-family: var(--font-display); font-size: 1.25rem; }
  .kl__bestseller-lead-more {
    font-size: .8125rem;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .15s ease;
  }
  .kl__bestseller-lead:hover .kl__bestseller-lead-more { color: var(--accent-dark); }
  .kl__bestseller-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
  .kl__bestseller {
    flex: 1;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--glass-edge);
    background: var(--glass-fill);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 16px 36px -28px color-mix(in srgb, var(--accent) 45%, transparent);
  }
  .kl__bestseller-photo { position: relative; display: block; width: 132px; height: 132px; overflow: hidden; background: var(--sky); }
  .kl__bestseller-img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .kl__bestseller-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-right: 8px; }
  .kl__bestseller-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .kl__bestseller-name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.1875rem; }
  .kl__bestseller-link { color: var(--ink); transition: color .15s ease; }
  .kl__bestseller-link:hover { color: var(--accent); }
  .kl__bestseller-price { flex: none; margin: 0; font-family: var(--font-display); font-size: 1rem; color: var(--ink); }
  .kl__bestseller-stones { margin: 0; font-size: .8125rem; color: var(--muted); }
  /* A light pill on a sky hairline — weaker than the card's glass „Dodaj do koszyka”. */
  .kl__bestseller-cart {
    align-self: flex-start;
    margin-top: 4px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid color-mix(in srgb, var(--link) 25%, transparent);
    background: linear-gradient(135deg, rgb(255 255 255 / .8), color-mix(in srgb, var(--sky) 50%, transparent));
    font-size: .8125rem;
    color: var(--accent);
    transition: background-color .15s ease;
  }
  .kl__bestseller-cart:hover { background: rgb(255 255 255 / .9); }
