:root {
  --primary: #8f1d2c;
  --primary-dark: #65101d;
  --accent: #d7a640;
  --cream: #fff8eb;
  --paper: #ffffff;
  --ink: #26211f;
  --muted: #756b62;
  --line: #eadfca;
  --shadow: 0 20px 50px rgba(69, 28, 20, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 45%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header .container {
  width: min(1080px, calc(100% - 32px));
}

.header-top {
  border-bottom: 1px solid #ece7df;
  font-size: 0.82rem;
}

.header-top-inner {
  display: grid;
  grid-template-columns: 220px 220px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 30px;
}

.header-inner {
  display: grid;
  grid-template-columns: 260px 220px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 10px 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand.horizontal-logo {
  gap: 0;
}

.brand.horizontal-logo > span:not(.brand-mark) {
  display: none;
}

.social-nav,
.utility-nav,
.main-nav {
  display: flex;
  align-items: center;
  gap: 13px;
}

.social-nav a {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.social-nav svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.header-phone {
  color: #f07824;
  font-weight: 800;
  justify-self: center;
}

.utility-nav {
  justify-content: flex-end;
}

.brand-mark,
.visual-placeholder {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.brand-mark {
  width: 54px;
  height: 54px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: 0.04em;
  overflow: hidden;
  background: #fff;
  color: var(--primary);
}

.brand-mark.has-logo {
  width: 82px;
  height: 82px;
  border: 0;
}

.brand.horizontal-logo .brand-mark.has-logo {
  width: 260px;
  height: 96px;
  border-radius: 0;
}

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

.brand small,
.eyebrow,
.muted {
  color: var(--muted);
}

.brand small {
  color: #f07824;
  font-weight: 800;
}

.brand strong {
  display: block;
  color: var(--primary);
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.main-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}

.nav-entry {
  display: inline-flex;
  align-items: center;
}

.utility-nav a,
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 0.82rem;
  white-space: nowrap;
}

.utility-nav a {
  font-weight: 900;
  text-transform: lowercase;
}

.main-nav a {
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.main-nav a em {
  color: var(--primary);
  font-style: normal;
  line-height: 1;
}

.utility-nav i,
.main-nav i {
  color: #f07824;
  font-style: normal;
}

.main-nav a i {
  color: var(--primary);
}

.product-search input {
  height: 40px;
  border-color: #e3ddd4;
  border-radius: 2px;
  color: var(--ink);
  background: #fff;
}

.product-search input::placeholder {
  color: #9d958f;
  font-style: italic;
}

.cart-link strong {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  color: #fff;
  background: var(--primary);
  border-radius: 4px;
  font-size: 0.72rem;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  background: #fff;
  border-top: 4px solid var(--primary);
  box-shadow: 0 8px 18px rgba(34, 29, 29, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.has-mega-menu:hover .mega-menu,
.has-mega-menu:focus-within .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu-column {
  padding: 14px 20px;
  border-right: 1px solid #e8ece8;
}

.mega-menu-column:last-child {
  border-right: 0;
}

.mega-menu-group {
  margin-bottom: 16px;
}

.mega-menu-group:last-child {
  margin-bottom: 0;
}

.main-nav .mega-menu a {
  display: flex;
  width: 100%;
  padding: 11px 0;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.main-nav .mega-menu a:hover {
  color: #005f32;
}

.main-nav .mega-menu a i {
  width: 18px;
  color: var(--primary);
}

.mega-menu-children {
  display: grid;
  margin-top: 4px;
  border-top: 1px solid #edf0ed;
}

.main-nav .mega-menu-children a {
  min-height: 39px;
  padding: 9px 0;
  color: #6c6763;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0;
}

.pill {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--primary-dark);
  font-weight: 700;
}

.utility-nav a:hover,
.utility-nav a.is-active,
.main-nav a:hover,
.main-nav a.is-active {
  color: var(--primary);
}

.pill {
  background: #f2e2c4;
}

.nav-toggle {
  display: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.hero {
  padding: 70px 0 48px;
}

.hero-grid,
.split-grid,
.footer-grid,
.admin-shell {
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 1;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.lead {
  color: #504840;
  font-size: 1.15rem;
}

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

.button,
.button-outline,
.danger-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.button {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 22px rgba(143, 29, 44, 0.22);
}

.button-outline,
.ghost-button {
  color: var(--primary);
  background: #fff;
  border-color: var(--line);
}

.danger-button {
  color: #fff;
  background: #9f1724;
}

.hero-card,
.card,
.panel,
.cart-line,
.admin-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
}

.visual-placeholder {
  min-height: 340px;
  padding: 32px;
  text-align: center;
}

img.visual-placeholder {
  display: block;
  width: 100%;
  height: 340px;
  min-height: 0;
  padding: 0;
  object-fit: cover;
  background: none;
}

.visual-placeholder strong {
  max-width: 280px;
  font-size: 1.25rem;
}

.hero-card-body {
  padding: 24px;
}

.section {
  padding: 42px 0;
}

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

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

.card,
.panel {
  padding: 22px;
}

.card h3 {
  margin-bottom: 8px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.product-ray {
  margin: 24px 0 38px;
}

.product-ray > h3 {
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 900;
}

.split-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 14px 16px;
  background: #fff5df;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.page-hero {
  padding: 54px 0 18px;
}

.about-hero {
  position: relative;
  padding: 64px 0 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(247, 137, 52, 0.16), transparent 30%),
    linear-gradient(135deg, #fff8eb 0%, #ffffff 58%, #f1f8f0 100%);
  border-bottom: 1px solid var(--line);
}

.about-hero::after {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  content: "";
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.08;
}

.about-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.65fr);
  gap: 34px;
  align-items: center;
}

.about-hero-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  text-align: center;
}

.about-hero-card img {
  width: min(210px, 70%);
  height: auto;
  margin-bottom: 18px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.about-stats div,
.about-info-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-stats div {
  padding: 16px;
  border-radius: 20px;
}

.about-stats strong {
  display: block;
  color: var(--primary);
  font-size: 1.9rem;
  line-height: 1;
}

.about-stats span {
  color: var(--muted);
  font-weight: 800;
}

.about-section {
  background: #fff;
}

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

.about-info-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 30px;
}

.about-info-card.is-history-feature {
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
}

.about-info-card.is-alt {
  background: #fff8eb;
}

.about-image-frame {
  display: grid;
  min-height: 260px;
  padding: 22px;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 113, 61, 0.12), rgba(247, 137, 52, 0.13));
}

.is-history-feature .about-image-frame {
  min-height: 100%;
  padding: 34px;
}

.about-image-frame img {
  width: 100%;
  max-width: 270px;
  height: auto;
}

.is-history-feature .about-image-frame img {
  max-width: 360px;
}

.about-card-body {
  position: relative;
  padding: 28px;
}

.is-history-feature .about-card-body {
  padding: 34px;
}

.about-card-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.about-card-body h3 {
  color: var(--primary);
  font-size: 1.6rem;
}

.about-card-body p {
  color: #504840;
}

.about-card-text {
  display: grid;
  gap: 12px;
}

.about-card-text p {
  margin: 0;
}

.history-timeline {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.history-timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f0e7d7;
}

.history-timeline-item strong {
  color: var(--primary);
}

.history-timeline-item span {
  color: #504840;
}

.about-source {
  justify-content: center;
}

.partners-section {
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 113, 61, 0.08), transparent 32%),
    #ffffff;
}

.partners-heading {
  margin-bottom: 26px;
  text-align: center;
}

.partners-heading h2 {
  margin-bottom: 12px;
}

.partner-word-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.partner-word-strip span {
  padding: 7px 13px;
  color: var(--primary);
  background: #f2e2c4;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

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

.partner-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.partner-logo-frame {
  display: grid;
  min-height: 170px;
  padding: 22px;
  place-items: center;
  background: linear-gradient(135deg, #fff8eb, #ffffff);
  border-bottom: 1px solid var(--line);
}

.partner-logo-frame img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  border-radius: 14px;
}

.partner-card-body {
  padding: 18px;
  text-align: center;
}

.partner-card-body span {
  display: block;
  min-height: 42px;
  color: var(--muted);
  font-size: 0.86rem;
}

.partner-card-body h3 {
  margin: 12px 0 0;
  color: var(--primary);
  font-size: 1.35rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
}

.cart-total {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  font-size: 1.4rem;
  font-weight: 900;
}

.site-footer {
  margin-top: 54px;
  padding: 42px 0 18px;
  color: #d8d1cd;
  background: #332928;
}

.footer-grid {
  grid-template-columns: 0.9fr 2.1fr 0.7fr 1.2fr;
  align-items: start;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: #e9e1dc;
}

.site-footer h2,
.site-footer h3 {
  position: relative;
  margin-bottom: 16px;
  padding-left: 14px;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.site-footer h2::before,
.site-footer h3::before {
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 3px;
  height: 14px;
  content: "";
  background: var(--accent);
}

.footer-brand-block {
  display: grid;
  gap: 10px;
}

.footer-brand-block strong {
  color: #fff;
  font-size: 1.15rem;
}

.footer-logo {
  width: 118px;
  height: 118px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
}

.footer-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}

.footer-contact-card p {
  margin-bottom: 10px;
  color: #d8d1cd;
  font-size: 0.92rem;
}

.footer-contact-card span {
  display: block;
  color: #9b918d;
  font-weight: 800;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons span {
  width: 42px;
  height: 42px;
  border: 1px solid #5e514f;
  border-radius: 50%;
}

.footer-search input,
.newsletter-form input {
  color: #fff;
  background: transparent;
  border-color: #a39995;
  border-radius: 2px;
}

.footer-search input::placeholder,
.newsletter-form input::placeholder {
  color: #bdb5b2;
  font-style: italic;
}

.footer-categories {
  display: grid;
  margin: 10px 0 22px;
}

.footer-categories a {
  padding: 7px 0;
  border-bottom: 1px solid #756966;
  color: #e9e1dc;
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.newsletter-form label {
  color: #9b918d;
}

.newsletter-form .button {
  width: max-content;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 0;
  background: var(--accent);
  box-shadow: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.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;
}

.loading,
.empty-state {
  padding: 54px 0;
  color: var(--muted);
}

.admin-page {
  min-height: 100vh;
  background: #f7efe1;
}

.admin-header {
  padding: 20px 0;
  background: var(--primary-dark);
  color: #fff;
}

.admin-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.admin-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  padding: 28px 0;
}

.admin-card {
  padding: 20px;
}

.admin-import-box {
  padding: 16px;
  margin: 14px 0;
  background: #fff8eb;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-menu button {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-weight: 800;
}

.admin-menu button.is-active {
  color: #fff;
  background: var(--primary);
}

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

label {
  display: grid;
  gap: 6px;
  color: #4b423b;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d9cbb4;
  border-radius: 12px;
  background: #fff;
}

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

.full {
  grid-column: 1 / -1;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.item-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.item-row button {
  min-width: 80px;
}

.status {
  margin-top: 12px;
  color: var(--primary-dark);
  font-weight: 800;
}

@media (max-width: 900px) {
  .header-top-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 8px 0;
  }

  .header-inner,
  .section-head,
  .admin-header .container {
    align-items: flex-start;
  }

  .header-inner {
    grid-template-columns: 1fr;
  }

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

  .main-nav {
    display: none;
    width: 100%;
    justify-content: flex-start;
  }

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

  .utility-nav,
  .social-nav,
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-entry {
    position: relative;
  }

  .mega-menu {
    position: static;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 10px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .mega-menu-column {
    border-right: 0;
    border-bottom: 1px solid #e8ece8;
  }

  .hero-grid,
  .about-hero-grid,
  .about-card-grid,
  .partners-carousel,
  .split-grid,
  .footer-grid,
  .admin-shell,
  .grid {
    grid-template-columns: 1fr;
  }

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

  .about-info-card.is-history-feature {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .history-timeline-item {
    grid-template-columns: 1fr;
  }

  .cart-line {
    grid-template-columns: 1fr;
  }

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

  .footer-contacts {
    grid-template-columns: 1fr;
  }
}
