.stock-page {
  --stock-ink: #101114;
  --stock-muted: #686d75;
  --stock-line: #dedfe1;
  --stock-panel: #f4f5f4;
  --stock-accent: #5cacb1;
  background: #f6f6f4;
  color: var(--stock-ink);
  font-family: Manrope, Arial, sans-serif;
}

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

.stock-page button,
.stock-page input,
.stock-page select {
  font: inherit;
}

.stock-intro {
  display: grid;
  min-height: 232px;
  place-items: center;
  padding: 44px 36px 48px;
  border-bottom: 1px solid #e4e5e3;
  background: #efefed;
  text-align: center;
}

.stock-intro__inner {
  width: min(100%, 980px);
  margin: 0 auto;
}

.stock-intro h1 {
  margin: 0;
  font-family: "Russo One", Arial, sans-serif;
  font-size: clamp(38px, 3.6vw, 52px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.stock-intro p {
  max-width: 760px;
  margin: 24px auto 0;
  color: #484c52;
  font-size: 16px;
  line-height: 1.5;
}

.stock-shell {
  width: min(100%, 1420px);
  margin: 0 auto;
  padding: 40px clamp(20px, 2.5vw, 36px) 112px;
}

.stock-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.stock-filters {
  position: sticky;
  top: 24px;
  min-width: 0;
  padding: 24px 22px 22px;
  border: 1px solid var(--stock-line);
  background: var(--stock-panel);
}

.stock-filter-summary {
  padding: 0 0 22px;
  border-bottom: 1px solid var(--stock-line);
}

.stock-filter-summary span,
.stock-filter-summary strong {
  display: block;
}

.stock-filter-summary span {
  margin-bottom: 6px;
  color: var(--stock-muted);
  font-size: 13px;
}

.stock-filter-summary strong {
  color: #17191d;
  font-size: 17px;
  font-weight: 700;
}

.stock-filter-control {
  display: block;
  min-width: 0;
  margin-top: 20px;
}

.stock-filter-control > span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.3;
}

.stock-filter-control select,
.stock-toolbar select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #cdd1d4;
  border-radius: 0;
  background: #fff;
  color: #30343a;
  cursor: pointer;
  outline: 0;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.stock-filter-control select:focus,
.stock-toolbar select:focus {
  border-color: var(--stock-accent);
  box-shadow: 0 0 0 3px rgba(92, 172, 177, .14);
}

.stock-filters__reset,
.stock-toolbar__reset,
.stock-empty button {
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.stock-filters__reset {
  display: flex;
  min-width: 0;
  width: 100%;
  height: 48px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  background: #0b0c0e;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.stock-filters__reset img {
  width: 13px;
  height: 13px;
  filter: invert(1);
}

.stock-filters__reset:disabled,
.stock-toolbar__reset:disabled {
  display: none;
}

.stock-results {
  min-width: 0;
}

.stock-toolbar {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.stock-toolbar p {
  margin: 0;
  color: var(--stock-muted);
  font-size: 13px;
  white-space: nowrap;
}

.stock-toolbar p strong {
  color: var(--stock-ink);
  font-size: 15px;
  font-weight: 700;
}

.stock-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stock-toolbar__reset {
  min-width: 112px;
  height: 50px;
  padding: 0 18px;
  background: #73777d;
  color: #fff;
  font-size: 14px;
}

.stock-toolbar__actions label {
  width: 224px;
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  align-items: stretch;
}

.stock-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #dedfdf;
  border-radius: 0;
  background: #fff;
  transition: border-color .22s ease, box-shadow .24s ease, transform .24s cubic-bezier(.22, 1, .36, 1);
}

.stock-card:hover,
.stock-card[data-active="true"] {
  border-color: #b8bcbe;
  box-shadow: 0 18px 42px rgba(21, 24, 28, .09);
  transform: translateY(-4px);
}

.stock-card[hidden] {
  display: none !important;
}

.stock-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f8f8f7;
}

.stock-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 18px 14px 4px;
  object-fit: contain;
  object-position: center;
  transform: scale(1.1);
  transition: transform .36s cubic-bezier(.22, 1, .36, 1);
}

.stock-card:hover .stock-card__media img {
  transform: scale(1.15);
}

.stock-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 22px;
  border-top: 0;
}

.stock-card__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.stock-card h2 {
  margin: 0;
  font-family: "Russo One", Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}

.stock-card h2 a {
  color: inherit;
  text-decoration: none;
}

.stock-card h2 a:focus-visible {
  outline: 2px solid var(--stock-accent);
  outline-offset: 3px;
}

.stock-card__title-row > span {
  flex: 0 0 auto;
  color: var(--stock-muted);
  font-size: 12px;
}

.stock-card__subtitle {
  margin: 5px 0 20px;
  color: #3e4248;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.stock-card__spec {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  color: #4e5259;
  font-size: 13px;
  line-height: 1.35;
}

.stock-card__spec img {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  opacity: .7;
}

.stock-card__price {
  margin: auto 0 0;
  padding-top: 18px;
  color: #111;
  font-size: 19px;
  font-weight: 700;
}

.stock-card__actions {
  padding: 0 20px 20px;
  border-top: 0;
}

.stock-card__book {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.stock-card__book {
  background: #070809;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: background-color .18s ease, transform .18s ease;
}

.stock-card__book:hover,
.stock-card__book:focus-visible {
  background: #4f9fa4;
  transform: translateY(-1px);
}

.stock-mobile-filter:focus-visible,
.stock-filters__reset:focus-visible,
.stock-toolbar__reset:focus-visible,
.stock-empty button:focus-visible,
.stock-card__book:focus-visible {
  outline: 3px solid rgba(92, 172, 177, .42);
  outline-offset: 2px;
}

.stock-empty {
  padding: 80px 24px;
  border: 1px solid var(--stock-line);
  background: #fff;
  text-align: center;
}

.stock-empty h2 {
  margin: 0;
  font-size: 22px;
}

.stock-empty p {
  margin: 8px 0 20px;
  color: var(--stock-muted);
  font-size: 14px;
}

.stock-empty button {
  height: 42px;
  padding: 0 20px;
  background: #111;
  color: #fff;
}

body.stock-modal-open {
  overflow: hidden;
}

.stock-modal[hidden] {
  display: none !important;
}

.stock-modal {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  overflow: auto;
  padding: clamp(16px, 4vw, 48px);
  place-items: center;
  overscroll-behavior: contain;
}

.stock-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 13, .76);
  opacity: 0;
  backdrop-filter: blur(8px);
  transition: opacity .24s ease;
}

.stock-modal__dialog {
  position: relative;
  display: grid;
  width: min(100%, 920px);
  max-height: calc(100svh - clamp(32px, 8vw, 96px));
  overflow: auto;
  grid-template-columns: minmax(300px, .8fr) minmax(420px, 1.2fr);
  background: #fff;
  box-shadow: 0 36px 100px rgba(0, 0, 0, .32);
  opacity: 0;
  outline: 0;
  transform: translateY(20px) scale(.985);
  transition: opacity .22s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}

.stock-modal[data-open="true"] .stock-modal__backdrop,
.stock-modal[data-open="true"] .stock-modal__dialog {
  opacity: 1;
}

.stock-modal[data-open="true"] .stock-modal__dialog {
  transform: translateY(0) scale(1);
}

.stock-modal__close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #dedfe1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #111317;
  cursor: pointer;
  place-items: center;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.stock-modal__close:hover {
  border-color: #111317;
  background: #fff;
  transform: rotate(4deg);
}

.stock-modal__close:focus-visible,
.stock-modal__submit:focus-visible,
.stock-modal__consent input:focus-visible + .stock-modal__check {
  outline: 3px solid rgba(92, 172, 177, .5);
  outline-offset: 3px;
}

.stock-modal__close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.stock-modal__visual {
  position: relative;
  display: flex;
  min-height: 548px;
  overflow: hidden;
  align-items: center;
  background: #f0f1f1;
  isolation: isolate;
}

.stock-modal__visual::after {
  position: absolute;
  z-index: -1;
  right: -68px;
  bottom: -78px;
  width: 230px;
  height: 230px;
  border: 48px solid rgba(92, 172, 177, .19);
  border-radius: 50%;
  content: "";
}

.stock-modal__wordmark {
  position: absolute;
  top: 36px;
  left: 32px;
  color: #17191d;
  font-family: "Russo One", Arial, sans-serif;
  font-size: 18px;
  letter-spacing: .16em;
}

.stock-modal__visual img {
  display: block;
  width: 122%;
  max-width: none;
  height: auto;
  margin-left: -12%;
  object-fit: contain;
  filter: drop-shadow(0 20px 18px rgba(12, 16, 20, .16));
  transform: translateX(-12px) scale(.96);
  transition: transform .52s cubic-bezier(.22, 1, .36, 1);
}

.stock-modal[data-open="true"] .stock-modal__visual img {
  transform: translateX(0) scale(1);
}

.stock-modal__availability {
  position: absolute;
  bottom: 28px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #50545a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.stock-modal__availability::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stock-accent);
  box-shadow: 0 0 0 5px rgba(92, 172, 177, .14);
  content: "";
}

.stock-modal__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 72px clamp(36px, 5vw, 64px) 54px;
}

.stock-modal__content h2 {
  max-width: 470px;
  margin: 0;
  color: #111317;
  font-family: "Russo One", Arial, sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.12;
  text-transform: uppercase;
}

.stock-modal__content > p {
  max-width: 440px;
  margin: 18px 0 30px;
  color: #6b7078;
  font-size: 14px;
  line-height: 1.65;
}

.stock-modal__form {
  display: grid;
  gap: 18px;
}

.stock-modal__field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.stock-modal__field > span {
  color: #25282d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.stock-modal__field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #d7dadd;
  border-radius: 0;
  background: #fafafa;
  color: #15171a;
  outline: 0;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.stock-modal__field input::placeholder {
  color: #9a9da3;
}

.stock-modal__field input:focus {
  border-color: var(--stock-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(92, 172, 177, .13);
}

.stock-modal__field.has-error input {
  border-color: #c9443b;
  background: #fffafa;
}

.stock-modal__submit {
  display: flex;
  width: 100%;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: #101214;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background-color .18s ease, transform .18s ease;
}

.stock-modal__submit:hover {
  background: #4f9fa4;
  transform: translateY(-1px);
}

.stock-modal__submit svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform .18s ease;
}

.stock-modal__submit:hover svg {
  transform: translateX(3px);
}

.stock-modal__consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #777b82;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.5;
}

.stock-modal__consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.stock-modal__check {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid #bbc0c5;
  background: #fff;
  color: #fff;
  place-items: center;
  transition: border-color .18s ease, background-color .18s ease;
}

.stock-modal__check svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.stock-modal__consent input:checked + .stock-modal__check {
  border-color: #101214;
  background: #101214;
}

.stock-modal__consent.has-error {
  color: #c9443b;
}

.stock-modal__consent.has-error .stock-modal__check {
  border-color: #c9443b;
}

.stock-modal__form .general-error-message {
  display: none;
  margin-top: -6px;
  color: #c9443b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.stock-modal__form .general-error-message.visible {
  display: block;
}

.stock-mobile-filter {
  display: none;
}

@media (max-width: 1199px) {
  .stock-intro h1 {
    font-size: 38px;
  }

  .stock-shell {
    padding-right: 28px;
    padding-left: 28px;
  }

  .stock-filters {
    padding: 18px;
  }

  .stock-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  }

}

@media (max-width: 991px) {
  .stock-mobile-filter {
    display: flex;
    width: 100%;
    height: 52px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 18px;
    border: 1px solid #cfd3d9;
    border-radius: 0;
    background: #fff;
    color: #17191d;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
  }

  .stock-mobile-filter img {
    width: 17px;
    height: 17px;
  }

  .stock-layout {
    display: block;
  }

  .stock-filters {
    position: static;
    display: none;
    margin-bottom: 22px;
  }

  .stock-filters[data-open="true"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 16px;
    animation: stock-filter-enter .22s ease both;
  }

  .stock-filter-summary,
  .stock-filters__reset {
    grid-column: 1 / -1;
  }

  .stock-filter-control,
  .stock-filters__reset {
    margin-top: 0;
  }

  .stock-toolbar {
    margin-bottom: 14px;
  }
}

@media (max-width: 820px) {
  .stock-modal {
    padding: 12px;
  }

  .stock-modal__dialog {
    max-height: calc(100svh - 24px);
    grid-template-columns: 1fr;
  }

  .stock-modal__visual {
    min-height: 170px;
  }

  .stock-modal__visual::after {
    right: -34px;
    bottom: -110px;
  }

  .stock-modal__visual img {
    width: min(54%, 330px);
    margin: 0 auto;
  }

  .stock-modal__wordmark {
    top: 24px;
    left: 26px;
  }

  .stock-modal__availability {
    bottom: 24px;
    left: 26px;
  }

  .stock-modal__content {
    padding: 40px 32px 34px;
  }

  .stock-modal__content > p {
    margin: 14px 0 24px;
  }
}

@media (max-width: 767px) {
  .stock-intro {
    min-height: 0;
    padding: 30px 16px 32px;
  }

  .stock-intro h1 {
    font-size: 28px;
    line-height: 1.25;
  }

  .stock-intro p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
  }

  .stock-shell {
    padding: 24px 16px 80px;
  }

  .stock-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .stock-toolbar__actions {
    display: flex;
    max-width: 100%;
    margin-left: auto;
  }

  .stock-toolbar__actions label {
    width: min(210px, 100%);
    flex: 1 1 180px;
  }

  .stock-toolbar__reset {
    flex: 0 0 auto;
  }

  .stock-grid {
    gap: 16px;
  }

  .stock-card__media {
    aspect-ratio: 16 / 9;
  }

  .stock-card__body {
    padding: 18px 18px 20px;
  }

  .stock-card__actions {
    padding: 0 18px 18px;
  }
}

@media (max-width: 520px) {
  .stock-modal__visual {
    display: none;
  }

  .stock-modal__content {
    padding: 68px 22px 28px;
  }

  .stock-modal__content h2 {
    padding-right: 24px;
    font-size: 27px;
  }

  .stock-modal__close {
    top: 16px;
    right: 16px;
  }

  .stock-modal__field input,
  .stock-modal__submit {
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stock-card,
  .stock-card__media img,
  .stock-modal__backdrop,
  .stock-modal__dialog,
  .stock-modal__visual img,
  .stock-modal__submit,
  .stock-modal__submit svg {
    transition: none;
  }

  .stock-filters[data-open="true"] {
    animation: none;
  }
}

@keyframes stock-filter-enter {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
