:root {
  --bg-main: #fff8f1;
  --bg-soft: #ffe8d1;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --text: #2f2923;
  --muted: #6a5f57;
  --line: rgba(123, 85, 54, 0.18);
  --shadow: 0 16px 34px rgba(133, 77, 33, 0.12);
  --brand: #f47b20;
  --brand-dark: #d65f07;
  --brand-soft: #fff1e1;
  --brand-ink: #8c3c05;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shell-width: min(1180px, calc(100% - 36px));
  --header-height: 88px;
  --footer-height: 44px;
  --page-gap: clamp(14px, 2vh, 20px);
  --focus-ring: 0 0 0 3px rgba(244, 123, 32, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 226, 198, 0.88) 0, rgba(255, 226, 198, 0) 38%),
    linear-gradient(180deg, #fff9f4 0%, var(--bg-main) 100%);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body {
  overflow-x: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-body {
  min-height: 100dvh;
}

.site-frame {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.skip-link:focus-visible {
  top: 16px;
}

.shell {
  width: var(--shell-width);
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 30;
  background:
    linear-gradient(135deg, #c24f04 0%, var(--brand) 48%, #ff9b3d 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(177, 93, 18, 0.2);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, rgba(255, 245, 233, 0.18), rgba(255, 255, 255, 0.75), rgba(255, 230, 201, 0.18));
}

.shell--header {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: clamp(148px, 12vw, 200px);
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 248, 240, 0.92);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.site-nav__link.is-active {
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-ink);
  box-shadow: 0 8px 22px rgba(120, 58, 10, 0.16);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}

.site-main {
  min-height: 0;
  display: flex;
  align-items: stretch;
}

.page-view {
  flex: 1;
  display: flex;
  min-height: 0;
  padding: var(--page-gap) 0;
}

.page-shell {
  flex: 1;
  min-height: 0;
}

.page-shell--home {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  grid-template-rows: auto auto;
  gap: 18px;
  align-content: center;
}

.page-shell--catalog,
.page-shell--about,
.page-shell--contact,
.page-shell--error {
  display: grid;
  gap: 18px;
  align-content: center;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 251, 246, 0.96) 100%);
  box-shadow: var(--shadow);
}

.card--hero,
.page-intro {
  padding: clamp(22px, 3vw, 34px);
}

.card--visual {
  position: relative;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 189, 126, 0.55) 0%, rgba(255, 189, 126, 0) 40%),
    linear-gradient(160deg, rgba(255, 247, 238, 0.92) 0%, rgba(255, 238, 220, 0.98) 100%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.hero-copy h1,
.page-intro h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.lead,
.page-intro p,
.feature-card p,
.catalog-card p,
.story-card p,
.contact-note p,
.contact-card__value {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: clamp(0.95rem, 1.3vw, 1rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.chip-list li {
  padding: 9px 12px;
  border: 1px solid rgba(244, 123, 32, 0.18);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.visual-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.visual-tile {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.64) 100%),
    linear-gradient(145deg, #ffb165 0%, #f47b20 100%);
  color: #ffffff;
}

.visual-tile:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.54) 100%),
    linear-gradient(155deg, #f8983d 0%, #e26209 100%);
}

.visual-tile:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.5) 100%),
    linear-gradient(155deg, #ffc98c 0%, #f18622 100%);
}

.visual-tile__label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.visual-tile__value {
  font-size: 1.08rem;
  line-height: 1.2;
}

.feature-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.catalog-card,
.story-card,
.contact-card,
.contact-note {
  padding: 18px 20px;
}

.feature-card h2,
.catalog-card h2,
.story-card h2,
.contact-note h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.2;
}

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

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

.catalog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.catalog-card__state {
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-card__label {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card__value {
  font-size: 1rem;
}

.shell--footer {
  min-height: var(--footer-height);
  display: flex;
  align-items: center;
}

.site-footer {
  color: rgba(80, 67, 57, 0.86);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@media (max-width: 1100px) {
  .page-shell--home,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .visual-shelf,
  .feature-row,
  .catalog-grid,
  .story-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 769px) {
  .page-view {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  :root {
    --shell-width: min(100% - 24px, 100%);
    --header-height: 76px;
  }

  .site-frame {
    grid-template-rows: auto auto 1fr auto;
  }

  .shell--header {
    grid-template-columns: 1fr auto;
    padding: 10px 0;
  }

  .brand-logo {
    width: 150px;
  }

  .nav-toggle {
    position: relative;
    display: inline-flex;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 6px 0 0;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__link {
    justify-content: flex-start;
    min-height: 44px;
  }

  .page-view {
    padding: 14px 0 18px;
  }

  .page-shell--home,
  .page-shell--catalog,
  .page-shell--about,
  .page-shell--contact,
  .page-shell--error,
  .contact-layout,
  .visual-shelf,
  .feature-row,
  .catalog-grid,
  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .visual-tile,
  .catalog-card,
  .contact-card {
    min-height: 148px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
