:root {
  --ink: #163845;
  --paper: #f5efe2;
  --warm-white: #fbf8f0;
  --sea: #1e6174;
  --deep-sea: #0e3f51;
  --seafoam: #c9e1dd;
  --sand: #dfc99e;
  --coral: #c76d54;
  --line: #d5ded8;
  --shadow: 0 18px 45px rgba(22, 56, 69, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--warm-white); font-family: Arial, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.hero { min-height: 540px; color: var(--paper); background: linear-gradient(rgba(14, 63, 81, .38), rgba(14, 63, 81, .56)), url("images/header-background.jpg") center / cover no-repeat; overflow: hidden; position: relative; }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; }
.hero::before { width: 580px; height: 580px; right: -165px; top: -215px; border: 32px solid rgba(245, 239, 226, .15); border-radius: 50%; box-shadow: 0 0 0 32px rgba(201, 225, 221, .08), 0 0 0 64px rgba(245, 239, 226, .05); }
.hero::after { width: 130%; height: 130px; left: -15%; bottom: -65px; background: var(--seafoam); border-radius: 50% 50% 0 0 / 35% 35% 0 0; box-shadow: 180px -22px 0 -8px rgba(245, 239, 226, .18), 390px 10px 0 -6px rgba(245, 239, 226, .13); opacity: .8; }
.nav, .hero-content { position: relative; z-index: 1; }
.nav { padding-block: 24px; display: flex; justify-content: space-between; align-items: center; }
.hero-title { color: inherit; font-family: Georgia, serif; font-size: clamp(1rem, 2vw, 1.45rem); line-height: 1.05; text-decoration: none; }
.hero-title em { color: var(--sand); }
.nav-link { color: inherit; font-size: .9rem; text-underline-offset: 5px; }
.hero-content { padding: 75px 0 100px; max-width: 1120px; }
.eyebrow { margin: 0 0 15px; color: var(--sand); font-family: "DM Mono", monospace; font-size: .7rem; font-weight: 500; letter-spacing: .13em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 500; }
h1 { max-width: 760px; margin-bottom: 25px; font-size: clamp(3.4rem, 8vw, 6.4rem); line-height: .96; letter-spacing: -.06em; }
h1 em { color: var(--sand); font-style: italic; }
.orma { color: var(--paper); letter-spacing: .02em; }
.intro { width: min(520px, 100%); margin-bottom: 32px; color: #d8d9d1; font-size: 1.1rem; line-height: 1.65; }
.button { display: inline-flex; align-items: center; gap: 28px; border: 1px solid currentColor; padding: 14px 18px; font-weight: 600; text-decoration: none; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-3px); }
.button-dark { background: var(--paper); color: var(--ink); }
.button-dark:hover { background: white; }

.catalog { padding-block: 105px; background: linear-gradient(180deg, rgba(201, 225, 221, .32), transparent 150px); }
.brand-title { margin: 0; color: var(--deep-sea); font-size: clamp(2.25rem, 5vw, 4.2rem); line-height: .8; letter-spacing: .04em; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 35px; }
.section-heading .eyebrow { color: var(--coral); }
h2 { margin-bottom: 0; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.toolbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 14px; display: flex; justify-content: flex-end; gap: 24px; margin-bottom: 33px; }
.search { min-width: 180px; display: flex; gap: 8px; align-items: center; color: #52717a; }
.search input { min-width: 0; width: 100%; color: var(--ink); border: 0; outline: 0; background: transparent; }
.search input::placeholder { color: #888b82; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card { min-width: 0; }
.product-visual { min-height: 260px; display: grid; place-items: center; padding: 25px; background: linear-gradient(160deg, rgba(255, 255, 255, .32), transparent 52%), var(--visual-color, #d9e2da); overflow: hidden; position: relative; }
.product-visual::after { content: ""; width: 135%; height: 22px; position: absolute; bottom: -13px; left: -16%; border-top: 3px solid rgba(255, 255, 255, .52); border-radius: 50%; transform: rotate(-3deg); }
.product-image { width: calc(100% + 50px); height: calc(100% + 50px); min-height: 310px; object-fit: cover; }
.product-icon { filter: drop-shadow(0 12px 12px rgba(49, 45, 36, .18)); font-size: clamp(4.5rem, 9vw, 7.4rem); line-height: 1; transform: rotate(var(--tilt, -5deg)); transition: transform .25s; }
.product-card:hover .product-icon { transform: rotate(0) scale(1.08); }
.product-info { padding-top: 14px; }
.product-name-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
h3 { margin-bottom: 6px; font-size: 1.4rem; letter-spacing: -.035em; }
.price { white-space: nowrap; font-size: .9rem; font-weight: 600; }
.empty-state { padding: 60px 0; color: #65685f; text-align: center; }

.footer { padding-block: 28px; display: flex; justify-content: center; color: #547078; font-family: Consolas, monospace; font-size: .68rem; }
.footer p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 720px) {
  .container { width: min(100% - 32px, 1120px); }
  .hero { min-height: 510px; }
  .hero::before { width: 310px; height: 310px; right: -160px; top: 150px; }
  .hero-content { padding-top: 65px; }
  .nav-link { font-size: .78rem; }
  .catalog { padding-block: 72px; }
  .section-heading, .toolbar, .footer { align-items: flex-start; flex-direction: column; }
  .toolbar { gap: 12px; }
  .search { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .product-visual { min-height: 190px; }
  .description { min-height: auto; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-visual { min-height: 240px; }
}
