:root {
  --ink: #101820;
  --muted: #6c7380;
  --paper: #f6f6f3;
  --panel: #ffffff;
  --line: rgba(16, 24, 32, 0.13);
  --blue: #1b3f8b;
  --orange: #f47b20;
  --red: #b51f32;
  --gold: #d2a446;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.promo-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  min-height: 36px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.promo-strip strong {
  color: var(--orange);
}

.promo-strip a {
  justify-self: end;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 0 clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 246, 243, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-self: start;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

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

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.08rem;
}

.brand-copy em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar nav {
  display: flex;
  gap: clamp(10px, 1.7vw, 24px);
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.topbar nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.topbar nav a:hover {
  border-color: var(--orange);
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: end;
}

.icon-button,
.cart-button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.icon-button {
  width: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.cart-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 900;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: min(720px, calc(100vh - 108px));
  overflow: hidden;
  padding: clamp(34px, 5vw, 68px) clamp(16px, 4vw, 48px);
  background:
    radial-gradient(circle at 85% 10%, rgba(244, 123, 32, 0.14), transparent 30%),
    linear-gradient(135deg, #ffffff, #eef1f5);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  max-width: 780px;
  color: var(--ink);
}

.kicker {
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 740px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero p:not(.kicker) {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-link,
.text-link,
.quick-actions a,
.quick-actions button,
.checkout-form button,
.buy-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 950;
}

.primary-link,
.buy-row button,
.quick-actions button,
.checkout-form button {
  border: 0;
  background: var(--orange);
  color: var(--ink);
}

.text-link,
.quick-actions a {
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-products {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 150px;
  gap: 14px;
  z-index: 1;
}

.hero-product {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(16, 24, 32, 0.08);
}

.hero-product-link {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: #fff;
}

.hero-product-1 img {
  object-position: center top;
}

.hero-product-2 img,
.hero-product-3 img {
  object-position: center top;
}

.hero-price {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
}

.hero-add {
  position: absolute;
  z-index: 3;
  left: 10px;
  bottom: 10px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--orange);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(244, 123, 32, 0.25);
  cursor: pointer;
}

.hero-add:hover {
  background: #ff8b2d;
}

.hero-product-1 {
  grid-column: span 3;
  grid-row: span 2;
}

.hero-product-2 {
  grid-column: span 3;
}

.hero-product-3,
.hero-product-4,
.hero-product-5 {
  grid-column: span 2;
}

.category-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.category-rail a {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category-rail a:hover {
  border-color: var(--ink);
}

.collection-band,
.catalog-band,
.info-band {
  padding: clamp(42px, 7vw, 86px) clamp(16px, 4vw, 48px);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  max-width: 1380px;
  margin: 0 auto;
}

.collection-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04);
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 24, 32, 0.72), rgba(16, 24, 32, 0.05) 58%);
}

.collection-card span,
.collection-card h3 {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  color: #fff;
}

.collection-card span {
  bottom: 74px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.collection-card h3 {
  bottom: 18px;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.06;
}

.catalog-band {
  background: #fff;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  max-width: 1380px;
  margin: 0 auto 28px;
}

.section-head h2,
.info-band h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filters button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.filters button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  max-width: 1380px;
  margin: 0 auto;
}

.product-card {
  display: grid;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.product-visual {
  position: relative;
  display: grid;
  min-height: 260px;
  border: 0;
  place-items: center;
  overflow: hidden;
  background: #f4f4f0;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.22s ease;
}

.product-visual:hover img {
  transform: scale(1.035);
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 24, 32, 0.04), transparent 40%);
  pointer-events: none;
}

.product-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 950;
}

.quick-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  transform: translateY(8px);
  opacity: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(16, 24, 32, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  transition: opacity 0.18s, transform 0.18s;
}

.product-visual:hover .quick-label {
  transform: translateY(0);
  opacity: 1;
}

.product-info {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.product-info h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: normal;
}

.product-info p {
  min-height: 58px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.size-row span {
  display: grid;
  min-width: 32px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
}

.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.buy-row strong {
  flex: 0 0 auto;
  font-size: 1.02rem;
}

.buy-row button {
  flex: 1 1 116px;
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.vk-link {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  max-width: 1476px;
  margin: 0 auto;
}

.info-grid {
  display: grid;
  gap: 12px;
}

.info-grid article {
  display: grid;
  grid-template-columns: 52px 170px 1fr;
  gap: 18px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.info-grid span {
  color: var(--orange);
  font-weight: 950;
}

.info-grid h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.info-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cart-drawer,
.quick-view {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(16, 24, 32, 0.48);
}

.cart-drawer {
  display: grid;
  justify-content: end;
}

.cart-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(440px, 100vw);
  height: 100vh;
  background: #fff;
  box-shadow: -24px 0 54px rgba(16, 24, 32, 0.24);
}

.cart-panel header,
.cart-panel footer {
  padding: 22px;
}

.cart-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.cart-panel header h2 {
  margin-bottom: 0;
  font-size: 2rem;
}

.cart-panel header button,
.quick-view-card > button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  font-size: 1.4rem;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 18px 22px;
}

.cart-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.cart-item img {
  width: 58px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--paper);
}

.cart-item h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.cart-item p,
.empty-cart {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.cart-item button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 950;
}

.cart-panel footer {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.cart-panel footer div {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
}

.checkout-form {
  display: grid;
  gap: 12px;
}

.checkout-form label,
.admin-login label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.checkout-form input,
.checkout-form textarea,
.admin-login input,
.admin-order select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
}

.checkout-form textarea {
  resize: vertical;
}

.checkout-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.order-status {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.quick-view {
  display: grid;
  place-items: center;
  padding: 18px;
}

.quick-view-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  width: min(920px, 100%);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.quick-view-card > button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.quick-art {
  display: grid;
  min-height: 500px;
  place-items: center;
  background: #f4f4f0;
}

.quick-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.quick-copy {
  display: grid;
  gap: 16px;
  align-content: center;
  padding: clamp(26px, 5vw, 52px);
}

.quick-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
}

.quick-copy p:not(.kicker) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.quick-copy > strong {
  font-size: 1.6rem;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-actions a {
  border-color: var(--line);
  color: var(--ink);
}

.admin-page {
  background:
    radial-gradient(circle at 90% 0%, rgba(244, 123, 32, 0.12), transparent 28%),
    var(--paper);
}

.admin-shell {
  display: grid;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px);
}

.admin-login {
  display: grid;
  gap: 18px;
  max-width: 460px;
}

.admin-login h1 {
  margin-bottom: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.9;
}

.admin-login form {
  display: grid;
  gap: 12px;
}

.admin-login button,
.admin-orders .section-head button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 950;
}

.admin-order-list {
  display: grid;
  gap: 14px;
}

.admin-order {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.admin-order header,
.admin-order footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.admin-order header span,
.admin-order footer span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-order h3 {
  margin-bottom: 0;
  font-size: 1.3rem;
}

.admin-customer {
  display: grid;
  gap: 6px;
}

.admin-customer a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-customer p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-order ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-order li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 820px) {
  .promo-strip {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-top: 8px;
    padding-bottom: 8px;
    text-align: center;
  }

  .promo-strip a {
    justify-self: center;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar nav {
    display: none;
  }

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

  .hero-products {
    grid-auto-rows: 120px;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: flex-start;
  }

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

  .info-grid article,
  .quick-view-card {
    grid-template-columns: 1fr;
  }

  .quick-art {
    min-height: 300px;
  }
}

@media (max-width: 540px) {
  .brand-copy,
  .cart-button span {
    display: none;
  }

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

  .product-card {
    min-height: auto;
  }

  .product-visual {
    min-height: 240px;
  }
}
