:root {
  --bg: #f7f3ec;
  --surface: #ffffff;
  --ink: #171412;
  --muted: #6d6258;
  --line: #ded5ca;
  --accent: #1f4f3a;
  --accent-2: #d9a441;
  --shadow: 0 18px 50px rgba(42, 31, 19, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 243, 236, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.cart-button,
button {
  font: inherit;
}

.cart-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--accent-2);
  color: var(--ink);
  font-weight: 700;
}

.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 44px;
  padding: 64px clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 78% 22%, rgba(217, 164, 65, 0.28), transparent 24rem),
    linear-gradient(135deg, #fffaf1 0%, #efe6d8 100%);
}

.hero h1,
.section h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(38px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  padding: 0 18px;
  cursor: pointer;
  font-weight: 750;
}

.button.primary {
  background: var(--ink);
  color: var(--surface);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero-media {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.shoe-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-shoe {
  width: min(100%, 420px);
  transform: rotate(-2deg);
}

.tag {
  width: max-content;
  border-radius: 999px;
  background: #e9f2ed;
  color: var(--accent);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.shoe-visual {
  min-height: 170px;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 54% 64%, rgba(0, 0, 0, 0.18), transparent 34%),
    linear-gradient(160deg, #f7f7f5 0 42%, transparent 42%),
    linear-gradient(18deg, #23372d 0 56%, #d9a441 56% 70%, #f5efe4 70%);
}

.shoe-visual.boot {
  background:
    radial-gradient(ellipse at 50% 70%, rgba(0, 0, 0, 0.16), transparent 34%),
    linear-gradient(125deg, #6b4631 0 58%, #2d211b 58%);
}

.shoe-visual.classic {
  background:
    radial-gradient(ellipse at 50% 72%, rgba(0, 0, 0, 0.17), transparent 34%),
    linear-gradient(18deg, #14110f 0 66%, #b8874f 66%);
}

.shoe-visual.sport {
  background:
    radial-gradient(ellipse at 50% 72%, rgba(0, 0, 0, 0.14), transparent 34%),
    linear-gradient(18deg, #e9eef6 0 52%, #315dd8 52% 68%, #111 68%);
}

.toolbar,
.section,
.footer {
  padding-left: clamp(18px, 5vw, 72px);
  padding-right: clamp(18px, 5vw, 72px);
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.section {
  padding-top: 72px;
  padding-bottom: 72px;
}

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

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

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.product-actions {
  display: flex;
  gap: 8px;
}

.product-actions button {
  flex: 1;
  min-height: 40px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
}

.product-actions .add {
  background: var(--ink);
  color: var(--surface);
}

.product-actions .details {
  background: var(--surface);
  color: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
}

.panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pentest-section {
  background: #fffaf1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.lab-output {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.danger-text {
  color: #9b281e;
  font-weight: 800;
}

.muted,
.form-result {
  color: var(--muted);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  width: min(420px, 100vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 22px;
  background: var(--surface);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);
  transform: translateX(110%);
  transition: transform 0.25s ease;
}

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

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

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

.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

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

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
  background: var(--ink);
  color: var(--surface);
}

.footer div {
  display: grid;
  gap: 8px;
}

@media (max-width: 920px) {
  .hero,
  .split,
  .toolbar {
    grid-template-columns: 1fr;
  }

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

  .nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .footer {
    flex-direction: column;
  }
}
