:root {
  --paper: #ffffff;
  --ink: #151515;
  --muted: #666666;
  --line: #e4e4e4;
  --soft: #f5f5f5;
  --accent: #20344a;
  --accent-2: #8d6f47;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(22, 22, 20, 0.12);
}

@font-face {
  font-family: "Ostrovsky";
  src: url("/assets/Ostrovsky-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.cart-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.cart-trigger,
.main-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
}

.main-nav {
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--ink);
}

.cart-trigger {
  justify-self: end;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.cart-trigger strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: flex-end;
  padding: 0 32px 64px;
  overflow: hidden;
  background: var(--soft);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 245, 239, 0.9), rgba(247, 245, 239, 0.18) 62%, rgba(21, 21, 21, 0.08));
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.store-head h1,
.section-heading h2,
.checkout-copy h1,
.checkout-copy h2,
.product-detail-copy h1,
.faq-heading h2,
.empty-state h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(64px, 13vw, 190px);
}

.hero p:not(.eyebrow) {
  max-width: 540px;
  margin: 22px 0 30px;
  color: #2d2b28;
  font-size: 20px;
  line-height: 1.5;
}

.primary-link,
.checkout-link,
.pay-button,
.product-actions button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.secondary-button {
  border-color: var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
}

.section-heading,
.store-head,
.checkout-section,
.faq-section {
  padding: 72px 32px 28px;
}

.section-heading h2,
.checkout-copy h1,
.checkout-copy h2,
.faq-heading h2 {
  font-size: clamp(36px, 5.8vw, 78px);
}

.section-heading {
  display: grid;
  justify-items: center;
  padding-top: 0;
  padding-bottom: 0;
  text-align: center;
}

.section-heading .eyebrow {
  margin-bottom: 0;
}

.store-head {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(26vh, 230px);
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  text-align: center;
}

.bracket-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.86;
  pointer-events: none;
}

.store-head-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(860px, 100%);
}

.type-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0;
  padding: 8px 14px 12px;
  background: #1267df;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(18, 103, 223, 0.18);
  font-family: "Ostrovsky", Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 8vw, 108px);
  font-weight: 700;
  line-height: 1.02;
  text-transform: lowercase;
}

.type-logo-text {
  display: inline-block;
  overflow: hidden;
  max-width: 8ch;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
  line-height: 1.12;
  white-space: nowrap;
  animation: logoTyping 1600ms steps(8, end) both;
}

.type-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 5px;
  background: currentColor;
  animation: cursorBlink 850ms steps(1, end) infinite;
}

.store-head-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

@keyframes logoTyping {
  from {
    max-width: 0;
  }
  to {
    max-width: 8ch;
  }
}

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: center;
  gap: 4px 34px;
  padding: 0 32px 62px;
}

.product-card {
  display: grid;
  background: transparent;
  border: 0;
  text-align: center;
}

.product-link {
  display: block;
  position: relative;
  overflow: visible;
}

.product-image {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.18;
  max-height: none;
  background: transparent;
  isolation: isolate;
  transition: transform 220ms ease, filter 220ms ease;
}

.product-card:hover .product-image {
  transform: translateY(-8px) rotate(-0.6deg);
  filter: drop-shadow(0 24px 22px rgba(21, 21, 21, 0.18));
}

.product-link.is-sold-out {
  color: rgba(21, 21, 21, 0.58);
}

.product-link.is-sold-out .product-image img {
  filter: grayscale(1);
  opacity: 0.46;
}

.sold-out-badge {
  position: absolute;
  left: 50%;
  top: 49%;
  z-index: 2;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.product-link.is-sold-out .product-info {
  color: rgba(21, 21, 21, 0.58);
}

.product-link.is-sold-out .product-meta,
.product-link.is-sold-out .product-info h3 {
  color: inherit;
}

.product-image img {
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.product-info {
  position: relative;
  margin-top: -18px;
  padding: 0;
}

.product-brand {
  display: none;
}

.product-meta {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.product-info h3 {
  min-height: 0;
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.2;
  text-transform: uppercase;
}

.price {
  font-weight: 700;
  white-space: nowrap;
}

.details-link:hover {
  background: var(--ink);
  color: var(--white);
}

.details-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.checkout-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  padding-bottom: 96px;
}

.checkout-page .checkout-section {
  padding-top: 72px;
}

.checkout-copy p:not(.eyebrow) {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.65;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.checkout-cart {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.checkout-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.checkout-line h3,
.checkout-line p,
.checkout-empty p {
  margin: 0;
}

.checkout-line h3 {
  font-size: 16px;
}

.checkout-line p,
.checkout-empty p {
  color: var(--muted);
  line-height: 1.5;
}

.checkout-empty {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
}

.checkout-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label,
.payment-box span,
.delivery-options legend {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper);
  outline: none;
}

select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper);
  outline: none;
}

input:focus {
  border-color: var(--accent);
}

.autocomplete-field {
  position: relative;
  min-width: 0;
}

.autocomplete-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 12;
  display: none;
  max-height: 280px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(21, 21, 21, 0.14);
}

.autocomplete-panel.is-open {
  display: block;
}

.autocomplete-option {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 13px 16px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(222, 217, 206, 0.72);
  cursor: pointer;
}

.autocomplete-option:hover,
.autocomplete-option:focus {
  background: var(--paper);
  outline: none;
}

.autocomplete-option:last-child {
  border-bottom: 0;
}

.autocomplete-title {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.autocomplete-subtitle,
.autocomplete-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.autocomplete-empty {
  padding: 14px 16px;
}

.delivery-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.delivery-options legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.delivery-options label {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}

.delivery-options input {
  width: 18px;
  min-height: 18px;
}

.contact-options {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.contact-options legend {
  color: var(--muted);
  font-size: 12px;
}

.contact-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-choice-row label {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
}

.contact-choice-row input {
  width: 17px;
  min-height: 17px;
}

.telegram-field.is-hidden {
  display: none;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  border: 1px solid var(--line);
  background: var(--white);
}

.consent-check input {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.consent-check a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.payment-box {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.payment-box > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.payment-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.order-summary span {
  color: var(--muted);
}

.pay-button {
  width: 100%;
  border-radius: 0;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent);
  line-height: 1.45;
}

.compact-status {
  min-height: 0;
  font-size: 13px;
}

.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  pointer-events: none;
  visibility: hidden;
}

.cart-panel.is-open {
  display: block;
  pointer-events: auto;
  visibility: visible;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 21, 0.42);
  opacity: 0;
  transition: opacity 180ms ease;
}

.cart-panel.is-open .cart-backdrop {
  opacity: 1;
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 18px;
  width: min(440px, 100%);
  height: 100%;
  padding: 24px;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.cart-panel.is-open .cart-drawer {
  transform: translateX(0);
}

.cart-head,
.cart-total,
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-head h2 {
  margin: 0;
  font-size: 26px;
}

.cart-head button,
.cart-item button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
}

.cart-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.cart-total {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.checkout-link {
  width: 100%;
}

.product-page {
  padding: 32px 32px 86px;
  overflow-x: clip;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(340px, 540px) minmax(0, 760px);
  gap: 38px;
  align-items: start;
  justify-content: center;
  max-width: 1440px;
  margin: 0 auto;
  min-width: 0;
}

.product-slider {
  display: grid;
  gap: 10px;
  width: min(100%, 540px);
  max-width: 100%;
  min-width: 0;
}

.slider-main {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 4.8;
  overflow: hidden;
  background: var(--soft);
}

.product-page-sold-out .slider-main img {
  filter: grayscale(1);
  opacity: 0.58;
}

.product-page-sold-out .slider-main::after {
  content: "SOLD OUT";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.slider-main img {
  object-fit: contain;
}

.slider-button {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(21, 21, 21, 0.56);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.slider-prev {
  left: 16px;
}

.slider-next {
  right: 16px;
}

.slider-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 108px));
  gap: 10px;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
}

.slider-thumbs button {
  min-width: 0;
  aspect-ratio: 4 / 4.8;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  opacity: 0.62;
}

.slider-thumbs img {
  object-fit: cover;
}

.slider-thumbs button.is-active {
  border-color: var(--ink);
  opacity: 1;
}

.product-detail-copy {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.product-detail-copy h1 {
  font-size: clamp(42px, 4.4vw, 62px);
}

.product-lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-line;
}

.product-color-title {
  margin: -6px 0 4px;
  color: var(--muted);
  font-size: 16px;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.product-specs div {
  padding: 13px 16px;
  background: var(--white);
}

.product-specs dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.product-specs dd {
  margin: 0;
  line-height: 1.35;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  position: relative;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
}

.size-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.size-picker legend {
  flex-basis: 100%;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
}

.size-choice {
  position: relative;
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.size-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.size-choice span {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.size-choice input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.size-choice.is-disabled {
  opacity: 0.42;
}

.size-choice.is-disabled span {
  cursor: not-allowed;
}

.detail-buy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding-top: 2px;
}

.detail-buy strong {
  font-size: 21px;
}

.pay-button:disabled {
  border-color: rgba(21, 21, 21, 0.18);
  background: rgba(21, 21, 21, 0.16);
  color: rgba(21, 21, 21, 0.48);
  cursor: not-allowed;
}

.empty-state {
  min-height: 62vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 22px;
}

.payment-success-state {
  min-height: calc(100vh - 74px);
  padding: 32px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.payment-success-state p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.empty-state h1 {
  font-size: clamp(46px, 9vw, 120px);
}

.about-page {
  padding: 72px 32px 96px;
}

.policy-page {
  padding: 72px 32px 96px;
  overflow-x: hidden;
}

.about-hero {
  display: grid;
  gap: 18px;
  max-width: 1120px;
  padding-bottom: 72px;
}

.policy-hero {
  display: grid;
  gap: 18px;
  max-width: 1120px;
  min-width: 0;
}

.about-hero h1,
.policy-hero h1,
.about-note h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
}

.about-hero h1,
.policy-hero h1 {
  font-size: clamp(44px, 7.5vw, 104px);
  overflow-wrap: anywhere;
}

.about-hero p:not(.eyebrow),
.policy-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: var(--white);
}

.about-grid article {
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.about-grid article:last-child {
  border-right: 0;
}

.about-grid span {
  color: var(--accent-2);
  font-size: 13px;
}

.about-grid h2 {
  margin: 56px 0 14px;
  font-size: 24px;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.policy-content {
  display: grid;
  gap: 34px;
  max-width: 980px;
  margin-top: 54px;
  min-width: 0;
}

.policy-content article {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.policy-content h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.25;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.policy-content p {
  margin: 0 0 12px;
}

.policy-content ul {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding-left: 20px;
}

.about-note {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 48px;
  padding-top: 84px;
}

.about-note h2 {
  font-size: clamp(36px, 5vw, 70px);
}

.about-note > p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.about-list {
  display: grid;
  gap: 14px;
}

.about-list p {
  margin: 0;
  padding-bottom: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  border-bottom: 1px solid var(--line);
}

.company-details {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 48px;
  padding-top: 84px;
}

.company-details h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 70px);
  font-weight: 500;
  line-height: 0.98;
}

.company-details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.company-details dl div {
  min-height: 92px;
  padding: 18px;
  background: var(--white);
}

.company-details dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.company-details dd {
  margin: 0;
  line-height: 1.45;
}

.company-details a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-section {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 46px;
  padding-bottom: 96px;
  background: var(--ink);
  color: var(--white);
  border-top: 0;
}

.faq-list {
  display: grid;
  align-content: start;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.faq-heading h2 {
  color: var(--white);
}

.faq-heading .eyebrow {
  color: var(--accent-2);
}

.faq-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  list-style: none;
  color: var(--white);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 42px;
  padding: 72px 32px 86px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: grid;
  align-content: start;
  gap: 18px;
}

.site-footer h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

.site-footer a {
  color: var(--ink);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.payment-footer {
  gap: 14px;
}

.payment-logo-row {
  display: grid;
  grid-template-columns: repeat(2, 58px);
  gap: 9px;
  align-items: center;
}

.payment-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 36px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.payment-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: min(720px, calc(100vw - 36px));
  padding: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: 0 18px 50px rgba(21, 21, 21, 0.16);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cookie-banner a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner button {
  min-height: 40px;
  padding: 0 18px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .catalog {
    grid-template-columns: repeat(2, minmax(220px, 320px));
    justify-content: center;
  }

  .checkout-section,
  .product-detail,
  .faq-section,
  .about-grid,
  .about-note,
  .company-details {
    grid-template-columns: 1fr;
  }

  .product-detail-copy {
    position: static;
  }

  .product-slider {
    justify-self: center;
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-details dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header,
  .hero,
  .section-heading,
  .store-head,
  .checkout-section,
  .product-page,
  .faq-section,
  .site-footer,
  .about-page,
  .policy-page {
    padding-inline: 18px;
  }

  .site-header {
    min-height: 66px;
    gap: 10px;
    padding-block: 0;
  }

  body {
    font-size: 14px;
  }

  .cart-trigger span {
    display: none;
  }

  .hero {
    min-height: 72vh;
    padding-bottom: 42px;
  }

  .store-head {
    min-height: 200px;
    padding-top: 18px;
    padding-bottom: 6px;
  }

  .store-head-copy {
    min-height: 0;
  }

  .type-logo {
    border-radius: 6px;
    font-size: clamp(38px, 15vw, 74px);
  }

  .hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .catalog,
  .form-row,
  .contact-choice-row,
  .delivery-options,
  .product-specs,
  .detail-buy,
  .site-footer,
  .about-grid,
  .company-details dl {
    grid-template-columns: 1fr;
  }

  .section-heading {
    padding-top: 6px;
    padding-bottom: 4px;
  }

  .section-heading h2 {
    font-size: clamp(34px, 11vw, 54px);
    line-height: 1;
  }

  .catalog {
    padding-inline: 18px;
    gap: 12px;
  }

  .product-card,
  .product-link {
    width: 100%;
    min-width: 0;
  }

  .product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.22;
    max-height: none;
  }

  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .product-info {
    padding: 14px;
  }

  .product-info h3 {
    min-height: auto;
    font-size: 19px;
  }

  .about-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .about-grid article:last-child {
    border-bottom: 0;
  }

  .checkout-form {
    padding: 18px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    width: auto;
  }

  .details-link {
    flex: 1;
  }

  .product-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .product-page *,
  .policy-page * {
    max-width: 100%;
  }

  .product-page,
  .product-page section,
  .product-page div,
  .policy-page,
  .policy-page section,
  .policy-page article,
  .policy-page div {
    min-width: 0;
  }

  .product-detail {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .product-slider {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .slider-main {
    max-width: 100%;
  }

  .slider-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding-bottom: 2px;
  }

  .slider-thumbs::-webkit-scrollbar {
    display: none;
  }

  .slider-thumbs button {
    width: 100%;
    max-width: 100%;
  }

  .detail-buy {
    grid-template-columns: 1fr;
  }

  .pay-button {
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .policy-hero h1 {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.05;
  }

  .policy-hero p:not(.eyebrow),
  .policy-content p,
  .policy-content li {
    font-size: 15px;
    line-height: 1.55;
  }

}

@media (max-width: 360px) {
  .site-header,
  .section-heading,
  .store-head,
  .checkout-section,
  .product-page,
  .faq-section,
  .site-footer,
  .about-page,
  .policy-page {
    padding-inline: 12px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand span:last-child {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .cart-trigger {
    min-height: 38px;
    padding: 0 12px;
  }

  .cart-trigger strong {
    min-width: 22px;
    height: 22px;
  }

  .product-page {
    padding-top: 28px;
  }

  .product-detail {
    gap: 28px;
  }

  .product-detail-copy {
    min-width: 0;
  }

  .slider-main {
    aspect-ratio: 4 / 4.85;
    max-width: 100%;
    margin-inline: auto;
  }

  .slider-button {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-next {
    right: 10px;
  }

  .slider-thumbs {
    gap: 8px;
  }

  .product-detail-copy h1 {
    font-size: clamp(30px, 12vw, 42px);
  }

  .product-lead {
    font-size: 14px;
  }

  .product-specs div {
    padding: 13px;
  }

  .size-choice span {
    min-width: 42px;
    min-height: 38px;
    padding: 0 10px;
  }

  .detail-buy {
    gap: 12px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .product-image {
    transition: none;
  }
}

/* Keep the catalog above the FAQ on every viewport size. */
.storefront-content { min-height: 100vh; min-height: 100svh; display: flow-root; }
.faq-section { display: block; padding-top: 28px; padding-bottom: 28px; }
.faq-content { max-width: 960px; margin: 0 auto; }
.faq-content .faq-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.faq-content .faq-heading h2 { font-size: clamp(20px, 3vw, 28px); margin: 0; }
.faq-content .eyebrow { margin: 0; }
.faq-content .faq-list summary { min-height: 44px; padding: 8px 0; font-size: 15px; }
.faq-content .faq-list p { font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.main-nav { flex-wrap: wrap; }

@media (max-width: 960px) {
 .site-header { padding-top: 10px; padding-bottom: 10px; row-gap: 12px; }
 .site-header .brand { grid-column: 1; grid-row: 1; }
 .site-header .cart-trigger { grid-column: 2; grid-row: 1; }
 .site-header .main-nav { display: flex; grid-column: 1 / -1; grid-row: 2; gap: 12px 22px; font-size: 13px; }
}

@font-face { font-family: "Sheriff Ostrovsky"; src: url("/assets/Ostrovsky-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
.sheriff-title { font-family: "Sheriff Ostrovsky", Georgia, serif !important; font-weight: 700; }
.product-info h3.sheriff-title { font-size: clamp(18px, 2vw, 24px); line-height: 1.12; }
.product-page-sheriff [data-product-name] { font-size: clamp(28px, 3.4vw, 50px); line-height: 1.08; max-width: 750px; }
.coming-soon-label { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.product-page-sheriff [data-product-color-title]:empty { display: none; }
.product-page-sheriff .detail-buy { margin-top: 18px; }
.product-page-sheriff [data-product-add]:disabled { opacity: .55; cursor: default; }
.sheriff-story { margin: 22px 0 30px; max-width: 750px; }
.sheriff-story img { display: block; width: 100%; height: auto; }
.sheriff-story h2 { font-family: "Sheriff Ostrovsky", Georgia, serif; font-size: 24px; margin: 18px 0 12px; }
.sheriff-story p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0 0 12px; }

/* Match Sheriff cutout scale to the existing catalog photos. */
.product-link-sheriff .product-image { display: grid; place-items: center; }
.product-link-sheriff .product-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; transform: scale(.76); }

/* Sheriff badge: pop forward and settle at the same waistband anchor. */
.product-link-sheriff .product-image { overflow: visible; }
.sheriff-star {
  position: absolute; z-index: 4; width: 22%; aspect-ratio: 1;
  left: 66%; top: 18%; opacity: 0; pointer-events: none;
  transform-origin: 50% 50%; transform: translate(-50%, -100%) scale(0);
  filter: drop-shadow(0 3px 2px rgba(30, 23, 13, .18));
}
.product-link-sheriff .product-image .sheriff-star img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  transform: none; transform-origin: center; backface-visibility: visible;
}
.sheriff-star.is-playing { animation: sheriffBadgeFlight 1288ms both; }
.product-link-sheriff .product-image .sheriff-star.is-playing img { animation: sheriffBadgeSpin 1288ms cubic-bezier(.16, .48, .48, 1) both; }
@keyframes sheriffBadgeFlight {
  0% { opacity: 0; transform: translate(-50%, -100%) scale(.08); animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  22% { opacity: 1; transform: translate(-50%, -135%) scale(1.42); animation-timing-function: cubic-bezier(.4, .05, .75, .6); }
  58% { transform: translate(-50%, -100%) scale(1.16); animation-timing-function: cubic-bezier(.25, .55, .5, 1); }
  66% { transform: translate(-50%, -109%) scale(1.18); animation-timing-function: cubic-bezier(.45, 0, .7, .5); }
  76% { transform: translate(-50%, -100%) scale(1.16); animation-timing-function: ease-out; }
  100% { opacity: 1; transform: translate(-50%, -100%) scale(1.16); }
}
/* One continuous deceleration: no speed resets at impact or bounce. */
@keyframes sheriffBadgeSpin {
  from { transform: rotate(-45deg); }
  to { transform: rotate(1440deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sheriff-star.is-playing { animation: none; left: 66%; top: 18%; opacity: 1; transform: translate(-50%, -100%) scale(1.16); }
  .product-link-sheriff .product-image .sheriff-star.is-playing img { animation: none; }
}

/* Optional coin mode: separate depth/tilt from the continuous face rotation. */
.sheriff-star-coin { perspective: 420px; }
.sheriff-coin-tilt { display: block; width: 100%; height: 100%; transform-style: preserve-3d; transform-origin: 50% 50%; }
.sheriff-star-coin.is-playing .sheriff-coin-tilt {
  animation: sheriffCoinTilt 1288ms cubic-bezier(.16, .48, .48, 1) both;
}
@keyframes sheriffCoinTilt {
  from { transform: rotateX(-25deg) rotateY(-30deg); }
  to { transform: rotateX(720deg) rotateY(1080deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sheriff-star-coin.is-playing .sheriff-coin-tilt { animation: none; transform: none; }
}

/* Reversible 3D badge preview; original art stays as loading fallback. */
.sheriff-badge-model { position: absolute; inset: -12%; width: 124%; height: 124%; pointer-events: none; opacity: 0; --poster-color: transparent; }
.sheriff-star-model.model-ready .sheriff-badge-model { opacity: 1; }
.product-link-sheriff .product-image .sheriff-star-model.model-ready > img { visibility: hidden; }
.product-link-sheriff .product-image .sheriff-star-model.is-playing > img { animation: none; }

/* Match the original flat star choreography; render the GLB with a fixed camera. */
.sheriff-star-model.is-playing .sheriff-badge-model {
  transform-origin: 50% 50%;
  animation: sheriffBadgeSpin 1288ms cubic-bezier(.16, .48, .48, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .sheriff-star-model.is-playing .sheriff-badge-model { animation: none; }
}

.catalog-variant { margin: 6px 0; color: var(--muted); font-size: 13px; }
.catalog .product-image > img { width: 100%; height: 100%; object-fit: contain; }
.catalog .product-info h3 { min-height: 2.4em; }

.catalog .product-image > img[src='assets/jeans-black-20260830.png'] { transform: scale(0.873); }
.catalog .product-image > img[src='assets/jeans-cowboy-straight-20260831 — копия.png'] { transform: scale(0.756); }
.catalog .product-image > img[src='assets/jeans-cowboy-straight-20260831.png'] { transform: scale(0.843); }
.catalog .product-image > img[src='assets/jeans-light-20260830.png'] { transform: scale(0.926); }
.catalog .product-image > img[src='assets/jeans-total-black-20260830.png'] { transform: scale(0.885); }
.catalog .product-image > img[src='assets/nico-buttons-main-20261103.png'] { transform: scale(0.925); }
.catalog .product-image > img[src='assets/nico-zip-main-20261103.png'] { transform: scale(0.937); }
.catalog .product-image > img[src='assets/sheriff-main-20261029.png'] { transform: scale(0.759); }

/* Nico's mirrored revolvers: emerge behind the denim, spin and land. */
.nico-revolver { position: absolute; width: 16.2%; aspect-ratio: 2 / 3; left: 50%; top: 40%; z-index: 0; opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.65); }
.nico-revolver-left { --gun-x: 34%; }
.nico-revolver-right { --gun-x: 66%; }
.nico-revolver-mirror { display: block; width: 100%; height: 100%; }
.nico-revolver-right .nico-revolver-mirror { transform: scaleX(-1); }
.catalog .product-image .nico-revolver img { display: block; width: 100%; height: 100%; object-fit: contain; transform: rotate(180deg); transform-origin: 50% 50%; }
.nico-playing .nico-revolver { animation: nicoGunFlight 2600ms both; }
.catalog .nico-playing .nico-revolver img { animation: nicoGunSpin 1288ms both; }
@keyframes nicoGunFlight {
  0% { left: 50%; top: 30%; opacity: 0; z-index: 0; transform: translate(-50%, -50%) scale(.7); animation-timing-function: cubic-bezier(.18, .75, .28, 1); }
  5% { opacity: 0; z-index: 0; }
  11% { opacity: 1; z-index: 3; }
  18% { left: var(--gun-x); top: 8%; opacity: 1; z-index: 3; transform: translate(-50%, -50%) scale(1); }
  100% { left: var(--gun-x); top: 8%; opacity: 1; z-index: 3; transform: translate(-50%, -50%) scale(1); }
}
@keyframes nicoGunSpin {
  0% { transform: rotate(180deg); animation-timing-function: cubic-bezier(.12, .5, .35, 1); }
  86% { transform: rotate(2952deg); animation-timing-function: cubic-bezier(.35, 0, .35, 1); }
  100% { transform: rotate(2940deg); }
}
@media (prefers-reduced-motion: reduce) {
  .nico-playing .nico-revolver { animation: none; left: var(--gun-x); top: 8%; opacity: 1; z-index: 3; transform: translate(-50%, -50%); }
  .catalog .nico-playing .nico-revolver img { animation: none; transform: rotate(60deg); }
}

/* Balance the visible grip-to-waistband gaps for each cutout. */
.product-link[href*="cowboy-nico-vega-zip"] .nico-revolver-left { --gun-x: 34%; }
.product-link[href*="cowboy-nico-vega-zip"] .nico-revolver-right { --gun-x: 63.5%; }
.product-link[href*="cowboy-nico-vega-buttons"] .nico-revolver-left { --gun-x: 32.8%; }
.product-link[href*="cowboy-nico-vega-buttons"] .nico-revolver-right { --gun-x: 63.5%; }

.catalog-anchor { height: 52px; scroll-margin-top: 120px; }
.product-rarity { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); margin: 0 0 16px; }
.rarity-help { position: relative; flex: 0 0 auto; }
.rarity-help button { width: 20px; height: 20px; padding: 0; border: 1px solid var(--muted); border-radius: 50%; background: transparent; color: var(--ink); font-size: 12px; cursor: help; }
.rarity-help [role="tooltip"] { display: none; position: absolute; left: 0; top: 28px; width: min(300px, calc(100vw - 48px)); padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); box-shadow: 0 8px 25px #0002; font-size: 13px; line-height: 1.5; z-index: 30; }
.rarity-help:hover [role="tooltip"], .rarity-help:focus-within [role="tooltip"], .product-rarity.is-open [role="tooltip"] { display: block; }
.product-rarity strong { color: #db7907; background: linear-gradient(110deg, #b96305 0%, #f5a20a 30%, #ffdc77 46%, #e77d04 62%, #b96305 100%); background-size: 230% 100%; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: legendaryShine 3s ease-in-out infinite; font-weight: 800; }
@keyframes legendaryShine { 0%,100% { background-position: 100% 50%; } 50% { background-position: 0% 50%; } }
@media (prefers-reduced-motion: reduce) { .product-rarity strong { animation: none; } }
@media (max-width: 600px) { .catalog-anchor { height: 42px; } }

/* Tooltip is anchored to the whole rarity row, never the 20px icon. */
.product-rarity { position: relative; z-index: 5; isolation: isolate; }
.product-rarity .rarity-help { position: static; }
.product-rarity .rarity-help [role="tooltip"] {
  width: 300px; min-width: 0; max-width: calc(100vw - 48px);
  left: 0; top: 26px; height: auto; white-space: normal;
  overflow-wrap: normal; word-break: normal; text-align: left;
  background: #fff; z-index: 100;
}
