.wsmk {
  --wsmk-dark: #2a2f08;
  --wsmk-olive: #a3a26d;
  --wsmk-olive-soft: #f1f0e4;
  --wsmk-cream: #ecdaca;
  --wsmk-accent: #c56a42;
  --wsmk-text: #1b1b1b;
  --wsmk-muted: #5a5a50;
  --wsmk-line: #dddbc8;
  --wsmk-bg: #fff;
  margin: 0 0 36px;
  color: var(--wsmk-text);
  line-height: 1.5;
}
.wsmk *, .wsmk *::before, .wsmk *::after { box-sizing: border-box; }
.wsmk-lead { margin: 0 0 22px; font-size: 17px; color: var(--wsmk-muted); }

.wsmk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.wsmk-form { padding: 22px; border: 1px solid var(--wsmk-line); background: var(--wsmk-bg); }
.wsmk-field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.wsmk-field:last-child { margin-bottom: 0; }
.wsmk-label { display: block; margin: 0 0 9px; padding: 0; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--wsmk-text); }
.wsmk-label small { font-weight: 400; color: var(--wsmk-muted); letter-spacing: 0; }

.wsmk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wsmk-chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.wsmk-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wsmk-chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px;
  border: 1px solid var(--wsmk-line); background: var(--wsmk-bg); color: var(--wsmk-text);
  font-size: 15px; line-height: 1.2; transition: background-color .15s, border-color .15s, color .15s;
}
.wsmk-chip:hover span { border-color: var(--wsmk-olive); }
.wsmk-chip input:checked + span { background: var(--wsmk-dark); border-color: var(--wsmk-dark); color: var(--wsmk-cream); }
.wsmk-chip input:focus-visible + span { outline: 3px solid var(--wsmk-accent); outline-offset: 2px; }

.wsmk-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wsmk-input {
  width: 110px; min-height: 44px; padding: 0 12px; border: 1px solid var(--wsmk-line);
  background: var(--wsmk-bg); color: var(--wsmk-text); font-size: 18px; font-weight: 700; border-radius: 0;
}
.wsmk-input:focus-visible { outline: 3px solid var(--wsmk-accent); outline-offset: 1px; border-color: var(--wsmk-dark); }
.wsmk-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.wsmk-quick button {
  min-height: 44px; min-width: 52px; padding: 0 12px; border: 1px solid var(--wsmk-line);
  background: var(--wsmk-olive-soft); color: var(--wsmk-text); font-size: 14px; cursor: pointer; border-radius: 0;
}
.wsmk-quick button:hover { border-color: var(--wsmk-olive); }
.wsmk-quick button:focus-visible { outline: 3px solid var(--wsmk-accent); outline-offset: 2px; }

.wsmk-result { padding: 22px; background: var(--wsmk-dark); color: #f4f1e6; border-left: 5px solid var(--wsmk-accent); }
.wsmk-result-label, .wsmk-sub { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wsmk-olive); }
.wsmk-sub { margin-top: 18px; }
.wsmk-big { margin: 0; font-family: var(--title-font, Georgia, serif); font-size: 22px; line-height: 1.2; color: var(--wsmk-cream); }
.wsmk-big b { font-size: 48px; line-height: 1; margin-right: 4px; }
.wsmk-fill { margin: 6px 0 0; min-height: 0; font-size: 14px; color: #d6d3bd; }
.wsmk-fill:empty { display: none; }
.wsmk-rows { margin: 8px 0 0; padding: 0; }
.wsmk-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.wsmk-rows dt { margin: 0; font-size: 15px; color: #e6e2cf; }
.wsmk-rows dd { margin: 0; text-align: right; }
.wsmk-rows dd b { display: block; font-size: 18px; color: #fff; }
.wsmk-rows dd span { display: block; font-size: 13px; color: #c9c6ae; }
.wsmk-base { margin: 14px 0 0; font-size: 14px; color: #d6d3bd; }
.wsmk-recipe {
  display: block; margin-top: 14px; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, .15);
  color: var(--wsmk-cream) !important; font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}
.wsmk-recipe[hidden] { display: none; }
.wsmk-recipe:hover { color: #fff !important; }
.wsmk-recipe:focus-visible { outline: 3px solid var(--wsmk-accent); outline-offset: 3px; }
.wsmk-note { margin: 16px 0 0; font-size: 14px; color: var(--wsmk-muted); }

/* Режими: Маринад / Розсіл / Солодкі */
.wsmk-modes { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.wsmk-modes .wsmk-chip { flex: 1 1 auto; }
.wsmk-modes .wsmk-chip span {
  width: 100%; justify-content: center; min-height: 48px; padding: 0 18px; margin-right: -1px;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
}
.wsmk-modes .wsmk-chip input:checked + span { background: var(--wsmk-accent); border-color: var(--wsmk-accent); color: #fff; }
.wsmk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wsmk-label--gap { margin-top: 18px; }
.wsmk [hidden], .wsmk-rows > div[hidden], .wsmk-field[hidden] { display: none !important; }
@media (max-width: 767px) {
  .wsmk-modes .wsmk-chip { flex: 1 1 100%; }
  .wsmk-modes .wsmk-chip span { margin: 0 0 -1px; }
}

.wsmk-sticky { display: none; }

@media (max-width: 767px) {
  .wsmk-grid { grid-template-columns: 1fr; gap: 16px; }
  .wsmk-form, .wsmk-result { padding: 18px 16px; }
  .wsmk-big b { font-size: 42px; }
  .wsmk-sticky:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 52px; padding: 8px 16px; background: var(--wsmk-dark); color: #fff !important;
    text-decoration: none !important; font-size: 14px; line-height: 1.3; box-shadow: 0 -4px 14px rgba(0, 0, 0, .2);
  }
  .wsmk-sticky-more { flex: none; padding: 6px 12px; background: var(--wsmk-olive); color: var(--wsmk-dark); font-weight: 700; }
}

/* Темна тема SmartMag */
.s-dark .wsmk {
  --wsmk-text: #ececec;
  --wsmk-muted: #b8b8ad;
  --wsmk-line: #3a3d2a;
  --wsmk-bg: #1a1c12;
  --wsmk-olive-soft: #24271a;
}
.s-dark .wsmk-chip input:checked + span { background: var(--wsmk-olive); border-color: var(--wsmk-olive); color: #15170a; }

@media (prefers-reduced-motion: reduce) {
  .wsmk-chip span { transition: none; }
}

/* Часті запитання: розкриваються по кліку */
.wsmk-faq { margin: 8px 0 30px; border-top: 1px solid #dddbc8; }
.wsmk-faq-item { border-bottom: 1px solid #dddbc8; }
.wsmk-faq-item summary {
  position: relative; display: block; min-height: 44px; padding: 16px 44px 16px 0;
  cursor: pointer; list-style: none;
}
.wsmk-faq-item summary::-webkit-details-marker { display: none; }
.wsmk-faq-item summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; line-height: 28px; text-align: center; border-radius: 50%;
  background: #2a2f08; color: #ecdaca; font-size: 20px; font-weight: 400;
}
.wsmk-faq-item[open] summary::after { content: "\2212"; background: #c56a42; color: #fff; }
.wsmk-faq-item summary:focus-visible { outline: 3px solid #c56a42; outline-offset: 2px; }
.wsmk-faq-item summary:hover .wsmk-faq-q { color: #c56a42; }
.wsmk-faq-q { margin: 0 !important; font-size: 19px; line-height: 1.35; }
.wsmk-faq-a { padding: 0 0 16px; }
.wsmk-faq-a > :last-child { margin-bottom: 0; }
.s-dark .wsmk-faq, .s-dark .wsmk-faq-item { border-color: #3a3d2a; }
