:root {
  color-scheme: light;
  --ink: #1e1c18;
  --muted: #6d665b;
  --paper: #fbfaf7;
  --line: #ded7cb;
  --clay: #a9563d;
  --moss: #586b46;
  --amber: #c68a38;
  --steel: #29313a;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(33, 28, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body.cart-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(222, 215, 203, 0.85);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand-mark {
  display: block;
  width: 108px;
  height: 56px;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid rgba(222, 215, 203, 0.95);
  background: #2f1d13;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 650;
}

.nav a:hover {
  color: var(--ink);
}

.cart-button,
.primary-link,
.secondary-link,
.checkout-button,
.filter,
.lang {
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 750;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.lang {
  min-width: 40px;
  height: 34px;
  color: var(--muted);
  background: transparent;
}

.lang.active {
  color: var(--white);
  background: var(--moss);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--white);
  background: var(--steel);
}

.cart-button strong {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(44px, 7vw, 86px) clamp(16px, 6vw, 82px);
  overflow: hidden;
}

.hero-copy {
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.primary-link {
  color: var(--white);
  background: var(--clay);
}

.secondary-link {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--white);
}

.hero-visual {
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e9e1d4;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.section,
.info-band {
  padding: 72px clamp(16px, 6vw, 82px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  position: sticky;
  top: 78px;
  z-index: 9;
  padding: 8px 0;
  background: rgba(251, 250, 247, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(222, 215, 203, 0.9);
}

.filter {
  padding: 10px 14px;
  color: var(--steel);
  background: var(--white);
  border: 1px solid var(--line);
}

.filter.active {
  color: var(--white);
  background: var(--moss);
  border-color: var(--moss);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(33, 28, 20, 0.06);
}

.product-image {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 8px;
  background: #e9e1d4;
  cursor: zoom-in;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.product-title {
  min-height: 48px;
  margin: 0;
  font-size: 18px;
}

.product-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-size: 20px;
  font-weight: 850;
}

.add-button {
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  color: var(--white);
  background: var(--clay);
  cursor: pointer;
  font-weight: 800;
}

.info-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
  background: var(--steel);
  color: var(--white);
}

.info-band .eyebrow {
  color: #f2b75a;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trust-item {
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(33, 28, 20, 0.06);
}

.trust-item span {
  color: var(--clay);
  font-weight: 900;
}

.trust-item h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.trust-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

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

.contacts p {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.55;
}

.contact-list {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.cart-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 30;
  width: min(100vw, 480px);
  display: block;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  box-shadow: -20px 0 52px rgba(20, 18, 14, 0.24);
  transform: translateX(105%);
  transition: transform 180ms ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cart-panel.open {
  transform: translateX(0);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  background: rgba(20, 18, 14, 0.36);
}

.overlay.open {
  display: block;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  max-width: min(92vw, 440px);
  padding: 13px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--steel);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 160ms ease, transform 160ms ease;
  font-weight: 750;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: clamp(14px, 4vw, 42px);
  background: rgba(20, 18, 14, 0.82);
}

.image-modal.open {
  display: grid;
}

.image-modal img {
  display: block;
  max-width: min(100%, 1120px);
  max-height: 88vh;
  border-radius: 8px;
  object-fit: contain;
  background: #e9e1d4;
  box-shadow: var(--shadow);
}

.image-modal-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  color: var(--white);
  background: rgba(20, 18, 14, 0.68);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.cart-header,
.cart-total,
.cart-row,
.cart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-header h2 {
  font-size: 28px;
}

.cart-header,
.continue-button,
.cart-items,
.cart-empty,
.cart-total,
.checkout {
  margin-bottom: 16px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.cart-items {
  display: grid;
  gap: 10px;
  overflow: visible;
}

.continue-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--steel);
  background: var(--paper);
  cursor: pointer;
  font-weight: 800;
}

.cart-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: flex-start;
}

.cart-product {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.cart-thumb {
  width: 68px;
  height: 68px;
  border-radius: 7px;
  object-fit: cover;
  background: #e9e1d4;
  cursor: zoom-in;
}

.cart-row strong,
.cart-row small {
  display: block;
}

.cart-row strong {
  overflow-wrap: anywhere;
}

.cart-row small {
  margin-top: 4px;
  line-height: 1.35;
}

.cart-row small,
.cart-empty {
  color: var(--muted);
}

.cart-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 86px;
}

.remove-button {
  width: 100%;
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  color: var(--clay);
  background: rgba(169, 86, 61, 0.1);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.qty-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  cursor: pointer;
  font-weight: 900;
}

.cart-total {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 20px;
}

.checkout {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.checkout-heading {
  display: grid;
  gap: 4px;
}

.checkout-heading h3 {
  margin: 0;
  font-size: 20px;
}

.checkout-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.checkout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkout label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.checkout input,
.checkout textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--paper);
}

.checkout-button {
  min-height: 52px;
  padding: 10px 12px;
  color: var(--white);
  background: var(--moss);
}

.checkout-button.telegram {
  background: #2878a8;
}

@media (max-width: 800px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .toolbar {
    top: 124px;
  }

  .nav {
    order: 3;
    width: calc(100% - 112px);
    justify-content: space-between;
  }

  .language-switch {
    order: 4;
  }

  .hero,
  .info-band,
  .contacts {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 340px;
  }

  .hero-visual img {
    min-height: 340px;
  }

  .section,
  .info-band {
    padding-block: 52px;
  }
}

@media (max-width: 520px) {
  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 84px;
    height: 44px;
  }

  .brand small,
  .cart-button span {
    display: none;
  }

  .nav {
    width: 100%;
    order: 4;
    font-size: 14px;
  }

  .language-switch {
    order: 3;
  }

  h1 {
    font-size: 40px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    aspect-ratio: 1 / 1;
  }

  .checkout-actions {
    grid-template-columns: 1fr;
  }

  .cart-row {
    display: grid;
    gap: 12px;
  }

  .cart-controls {
    width: 100%;
    justify-content: start;
  }

  .remove-button {
    width: auto;
    padding: 0 10px;
  }
}

@media (max-height: 760px), (max-width: 520px) {
  .cart-panel {
    padding: 14px;
  }

  .cart-header,
  .continue-button,
  .cart-items,
  .cart-empty,
  .cart-total,
  .checkout {
    margin-bottom: 12px;
  }

  .cart-product {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .cart-thumb {
    width: 86px;
    height: 86px;
  }

}

@media (max-width: 380px) {
  .cart-product {
    grid-template-columns: 1fr;
  }

  .cart-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}
