:root {
  --bg: #ffffff;
  --bg-soft: #f5faf2;
  --ink: #1d2d23;
  --muted: #657064;
  --line: #dfe9da;
  --green: #214631;
  --green-2: #7f9f7f;
  --red: #d51d31;
  --amber: #9bb49a;
  --paper: #ffffff;
  --shadow: 0 18px 50px rgba(33, 70, 49, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

button,
input,
select,
textarea,
a,
h1,
h2,
h3,
p,
li,
span,
strong {
  min-width: 0;
}

a {
  color: inherit;
}

.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

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

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo {
  width: 92px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(200, 23, 43, 0.14));
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  color: var(--green);
  font-size: 1.02rem;
  line-height: 1;
  text-transform: none;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--red);
  background: #fff4f3;
}

.nav-links .nav-cta,
.btn.primary {
  color: #fff;
  background: var(--red);
}

.section {
  padding: 88px 0;
}

.section.soft {
  background: var(--bg-soft);
}

.hero {
  padding: 58px 0 60px;
  background:
    radial-gradient(circle at 86% 16%, rgba(145, 173, 145, 0.24), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8fbf5 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(520px, 1.22fr);
  gap: 48px;
  align-items: center;
}

.hero h1,
.page-hero h1,
.section-title {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--green);
  font-weight: 900;
  line-height: 0.98;
}

.hero h1 {
  max-width: 560px;
  font-size: clamp(3.1rem, 6vw, 5.35rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero .lead {
  max-width: 560px;
  margin-top: 22px;
  color: var(--ink);
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  line-height: 1.48;
  font-weight: 700;
}

.hero p,
.page-hero p,
.section-copy,
.copy p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.78;
}

.hero p {
  max-width: 650px;
  font-size: 0.96rem;
}

.hero-eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 10px;
  color: var(--green);
  background: #eef4eb;
  border: 1px solid #dce8d7;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-kpis span {
  padding: 9px 11px;
  color: var(--green);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 900;
}

.hero-actions,
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 900;
  font-size: 0.94rem;
  background: #fff;
  text-align: center;
  overflow-wrap: anywhere;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(19, 63, 43, 0.12);
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 420ms ease;
}

.hero-media .slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-note {
  position: absolute;
  left: 18px;
  bottom: 22px;
  max-width: 210px;
  padding: 13px 14px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 800;
  line-height: 1.28;
  z-index: 2;
}

.hero-slider .slider-dots {
  right: 18px;
  left: auto;
}

.slider-dots {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 28px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.slider-dots button.is-active {
  background: var(--red);
}

.promo-section {
  padding: 28px 0 0;
}

.promo-slider {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--green);
}

.promo-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 34px 38px;
  color: #fff;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(19, 63, 43, 0.98), rgba(19, 63, 43, 0.70)),
    url("assets/miba-katalog.jpeg") center right / contain no-repeat,
    var(--green);
  transition: opacity 420ms ease;
}

.slide-click {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.promo-slide > :not(.slide-click) {
  position: relative;
  z-index: 2;
}

.promo-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.promo-slide span {
  width: fit-content;
  padding: 7px 10px;
  color: #fff;
  background: var(--red);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 900;
}

.promo-slide h2 {
  max-width: 580px;
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.promo-slide p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.promo-slide .btn {
  width: fit-content;
  margin-top: 8px;
}

.catalog-promo {
  padding-bottom: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3.55rem);
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 16px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

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

.card,
.product-card,
.contact-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.soft .card,
.soft .product-card,
.soft .contact-panel {
  background: #fff;
}

.card h3,
.product-card h2,
.product-card h3,
.contact-panel h2,
.contact-panel h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 1.15rem;
}

.card p,
.product-card p,
.contact-panel p,
li {
  color: var(--muted);
  line-height: 1.55;
}

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 900;
}

.product-card.featured {
  border-color: rgba(185, 47, 36, 0.32);
  box-shadow: 0 18px 46px rgba(185, 47, 36, 0.08);
}

.catalog-preview,
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.home-shop {
  overflow: hidden;
}

.product-rail-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.product-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.product-rail .shop-card {
  flex: 0 0 min(360px, 82vw);
  scroll-snap-align: start;
}

.rail-nav {
  min-height: 44px;
  padding: 0 14px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.shop-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(19, 63, 43, 0.05);
}

.product-image {
  display: block;
  height: 150px;
  margin: -6px -6px 16px;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: 8px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crop-spice img {
  object-position: 8% 62%;
}

.crop-chili img {
  object-position: 42% 86%;
}

.crop-pepper img {
  object-position: 44% 44%;
}

.crop-herb img {
  object-position: 62% 52%;
}

.crop-mix img {
  object-position: 16% 48%;
}

.crop-sauce img {
  object-position: 79% 46%;
}

.crop-chickpea img {
  object-position: 100% 46%;
}

.shop-card h3 {
  margin: 10px 0 8px;
  color: var(--green);
  font-size: 1.18rem;
}

.product-title-link {
  color: inherit;
  text-decoration: none;
}

.product-title-link:hover {
  color: var(--red);
}

.shop-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.shop-card .btn {
  width: 100%;
}

.shop-card button.btn {
  border: 0;
  cursor: pointer;
}

.product-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.sku {
  width: fit-content;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shop-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: auto 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.shop-meta span {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 900;
}

.product-detail-hero {
  padding: 56px 0;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1.05fr);
  gap: 38px;
  align-items: center;
}

.product-detail-media {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.product-detail-copy h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  color: var(--green);
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  line-height: 0.94;
}

.product-detail-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.back-link {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.product-detail-copy .sku {
  display: block;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.detail-facts span,
.feature-list li,
.content-data-table div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-facts span {
  padding: 10px 12px;
  color: var(--green);
  font-weight: 900;
}

.product-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 54px;
}

.product-info-grid .section-title {
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.06;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 14px 16px;
  color: var(--green);
  font-weight: 900;
}

.content-data-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.content-data-table div {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
}

.content-data-table strong {
  color: var(--green);
}

.content-data-table span {
  color: var(--muted);
}

.catalog-bar {
  position: sticky;
  top: 78px;
  z-index: 9;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.catalog-bar .wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 12px;
}

.catalog-bar a,
.category-panel a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--green);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 900;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.category-panel {
  position: sticky;
  top: 154px;
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-panel [data-category-panel] {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.category-panel a {
  display: block;
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.catalog-main {
  min-width: 0;
}

.category-panel h2,
.catalog-head h2 {
  margin: 0;
  color: var(--green);
}

.panel-note {
  margin-top: 10px;
  padding: 14px;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 26px;
  padding: 24px;
  background: var(--green);
  border-radius: 8px;
}

.catalog-head .btn {
  flex: 0 0 auto;
  max-width: 180px;
  text-align: center;
}

.catalog-head h2,
.catalog-head p {
  color: #fff;
}

.catalog-head p {
  max-width: 680px;
  margin: 8px 0 0;
  line-height: 1.65;
  opacity: 0.82;
}

.category-title {
  margin: 34px 0 14px;
  color: var(--green);
  font-size: 1.55rem;
}

.category-copy {
  margin: -4px 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 22px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.login-panel {
  background:
    linear-gradient(135deg, rgba(19, 63, 43, 0.96), rgba(47, 108, 71, 0.96)),
    var(--green);
}

.login-panel h2,
.login-panel p,
.login-panel .field label {
  color: #fff;
}

.login-panel p {
  opacity: 0.82;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.access-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(19, 63, 43, 0.05);
}

.access-card h2 {
  margin: 0 0 10px;
  color: var(--green);
  font-family: Inter, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.access-card p {
  color: var(--muted);
  line-height: 1.65;
}

.admin-card {
  background: var(--ink);
}

.admin-card h2,
.admin-card p,
.admin-card .field label {
  color: #fff;
}

.admin-card p {
  opacity: 0.78;
}

.software-hero {
  padding: 62px 0;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}

.software-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: center;
}

.software-hero h1,
.app-header h1 {
  margin: 0;
  color: var(--green);
  font-family: Inter, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 1;
}

.software-hero p,
.app-header p {
  color: var(--muted);
  line-height: 1.75;
}

.portal-preview {
  padding: 24px;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.preview-top,
.preview-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.preview-row {
  margin-top: 10px;
}

.preview-top span,
.preview-row span {
  color: rgba(255, 255, 255, 0.7);
}

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

.process-grid article {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-grid span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 900;
}

.process-grid h3 {
  color: var(--green);
}

.process-grid p {
  color: var(--muted);
}

.app-body {
  background: var(--bg-soft);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.app-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 32px;
}

.app-sidebar nav a {
  padding: 12px 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 900;
}

.app-sidebar nav a:hover,
.app-sidebar nav a.is-active {
  color: var(--green);
  background: var(--bg-soft);
}

.admin-side {
  background: var(--ink);
}

.admin-side .brand,
.admin-side .brand small,
.admin-side nav a {
  color: #fff;
}

.admin-side .brand-text strong {
  color: #fff;
}

.admin-side .brand-logo {
  width: 104px;
  height: 52px;
  padding: 4px;
  background: #fff;
  border-radius: 8px;
}

.admin-side nav a:hover,
.admin-side nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
}

.app-main {
  padding: 30px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-header h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

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

.metric-grid article,
.app-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-grid article {
  padding: 18px;
}

.metric-grid span {
  color: var(--muted);
  font-weight: 800;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 2rem;
}

.app-panel {
  margin-top: 18px;
  padding: 22px;
}

.app-view {
  display: none;
}

.app-view.is-active {
  display: block;
}

.app-panel h2 {
  margin: 0 0 14px;
  color: var(--green);
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

.panel-title span,
.app-panel p {
  color: var(--muted);
}

.table {
  display: grid;
  gap: 8px;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
}

.table-head {
  color: var(--green);
  background: var(--bg-soft);
  font-weight: 900;
}

.table-row {
  border: 1px solid var(--line);
}

.table-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-admin-cell {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.product-admin-cell small {
  grid-column: 2;
}

.admin-thumb {
  width: 56px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.admin-thumb.wide-thumb {
  display: block;
  width: 100%;
  height: 120px;
  margin-bottom: 12px;
}

.table-button {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.table-button:hover {
  background: var(--bg-soft);
}

.status {
  width: fit-content;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
}

.status.ok {
  color: #11633f;
  background: #e5f4eb;
}

.status.wait {
  color: #7b4a00;
  background: #fff0cf;
}

.status.info {
  color: #174a7c;
  background: #e6f0fb;
}

.mini-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-products article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  font-weight: 900;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.content-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.content-toolbar button.is-active {
  color: #fff;
  background: var(--green);
}

.content-table .table-row {
  align-items: start;
}

.content-preview {
  align-self: end;
}

.content-preview img {
  width: 100%;
  max-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.live-editor-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.18fr);
  gap: 18px;
  align-items: start;
}

.live-preview-panel {
  position: sticky;
  top: 24px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.live-preview-panel h3 {
  margin: 0 0 5px;
  color: var(--green);
}

.live-preview-panel iframe {
  width: 100%;
  height: min(720px, calc(100vh - 190px));
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.row-actions button:disabled {
  color: var(--muted);
  background: var(--bg-soft);
  cursor: not-allowed;
}

.dashboard-grid,
.ad-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dashboard-grid article,
.ad-slots article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.dashboard-grid h3,
.ad-slots strong {
  display: block;
  margin: 0 0 8px;
  color: var(--green);
  font-size: 1.05rem;
}

.ad-slots span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 8px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

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

.data-grid label,
.editor-grid label {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font-weight: 900;
}

.data-grid input,
.editor-grid input,
.editor-grid select,
.app-panel button,
.mini-products button {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  font: inherit;
}

.app-panel button,
.mini-products button {
  width: auto;
}

.data-grid .wide,
.editor-grid .wide {
  grid-column: 1 / -1;
}

.compact-form {
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.spaced-table {
  margin-top: 18px;
}

.order-detail {
  margin-top: 18px;
}

.detail-card {
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.detail-grid div {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-grid .wide {
  grid-column: 1 / -1;
}

.detail-grid strong {
  color: var(--green);
}

.detail-grid span {
  color: var(--muted);
  line-height: 1.5;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(23, 35, 29, 0.48);
}

.modal.is-open {
  display: flex;
}

.modal-panel {
  width: min(720px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  margin: 0;
  color: var(--green);
}

.modal-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.modal-panel button {
  min-height: 40px;
  padding: 9px 12px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.app-panel button,
.mini-products button,
.panel-actions button {
  color: #fff;
  background: var(--red);
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.app-panel .table-button,
.app-panel .table-button:hover {
  display: grid;
  min-height: auto;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 400;
}

.action-note {
  margin-top: 14px;
  padding: 12px 14px;
  color: #11633f;
  background: #e5f4eb;
  border: 1px solid #cce8d5;
  border-radius: 8px;
  font-weight: 800;
}

.admin-side nav a.is-active {
  color: #fff;
}

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

.tag-list li,
.target-list li {
  color: var(--green);
  background: #eef4eb;
  border: 1px solid #dce8d7;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
}

.target-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.page-hero {
  padding: 72px 0 52px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.page-hero p {
  max-width: 880px;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.product-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--green);
  font-weight: 900;
  font-size: 0.9rem;
}

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

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.form button {
  border: 0;
  cursor: pointer;
}

.cta-band {
  padding: 58px 0;
  color: #fff;
  background: var(--green);
}

.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band h2 {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.cta-band p {
  margin: 12px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.cta-band .btn {
  color: var(--green);
  background: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

.site-footer {
  padding: 34px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 920px) {
  .nav,
  .section-head,
  .hero-grid,
  .product-detail-grid,
  .product-info-grid,
  .split,
  .access-grid,
  .software-grid,
  .process-grid,
  .cta-band .wrap {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    padding: 14px 0;
  }

  .hero-grid,
  .split {
    display: grid;
  }

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

  .hero-media {
    min-height: 360px;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .catalog-preview,
  .shop-grid,
  .metric-grid,
  .mini-products,
  .dashboard-grid,
  .ad-slots,
  .target-list {
    grid-template-columns: 1fr 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .live-editor-grid {
    grid-template-columns: 1fr;
  }

  .live-preview-panel {
    position: static;
  }

  .content-data-table {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
  }

  .app-sidebar nav {
    display: flex;
    overflow-x: auto;
  }

  .app-header,
  .panel-title {
    display: grid;
  }

  .table-head,
  .table-row {
    grid-template-columns: 1fr;
  }

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

  .category-panel {
    position: static;
  }

  .catalog-head {
    display: grid;
  }

  .catalog-head .btn {
    max-width: none;
    width: fit-content;
  }

  .hero-note {
    left: 16px;
  }
}

@media (max-width: 620px) {
  .section,
  .hero,
  .page-hero {
    padding: 42px 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.65rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

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

  .hero-media {
    min-height: 265px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .promo-slider {
    min-height: 320px;
  }

  .promo-slide {
    padding: 26px 20px;
    background:
      linear-gradient(180deg, rgba(19, 63, 43, 0.98), rgba(19, 63, 43, 0.82)),
      url("assets/miba-katalog.jpeg") bottom right / 78% auto no-repeat,
      var(--green);
  }

  .product-image {
    height: 170px;
  }

  .product-rail-shell {
    display: block;
  }

  .rail-nav {
    display: none;
  }

  .product-rail {
    margin-right: -16px;
    padding-right: 16px;
    scroll-padding-left: 0;
  }

  .product-rail .shop-card {
    flex-basis: min(310px, 82vw);
  }

  .catalog-bar {
    position: static;
  }

  .catalog-head {
    padding: 20px;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .catalog-preview,
  .shop-grid,
  .metric-grid,
  .mini-products,
  .data-grid,
  .editor-grid,
  .dashboard-grid,
  .ad-slots,
  .target-list {
    grid-template-columns: 1fr;
  }

  .app-main {
    padding: 16px;
  }

  .catalog-bar {
    top: 130px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a {
    padding: 9px 10px;
  }

  .hero-note {
    position: static;
    max-width: none;
    margin-top: 12px;
  }
}

/* Miba campaign refresh: bold product brand styling with stable mobile layouts. */
body {
  background: #fffaf2;
}

.wrap {
  width: min(calc(100% - 40px), var(--max));
}

.site-header {
  z-index: 30;
  background: rgba(255, 250, 242, 0.96);
  border-bottom: 2px solid rgba(213, 29, 49, 0.12);
}

.nav {
  min-height: 86px;
}

.brand {
  flex: 0 0 auto;
  gap: 12px;
}

.brand-logo {
  width: 126px;
  height: 64px;
  padding: 5px;
  background: #fff;
  border: 1px solid rgba(213, 29, 49, 0.14);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(213, 29, 49, 0.12);
}

.brand-text strong {
  font-size: 1.12rem;
}

.nav-links {
  gap: 8px;
  flex-wrap: nowrap;
}

.nav-links a {
  color: var(--green);
  background: #fff;
  border: 1px solid rgba(33, 70, 49, 0.1);
  border-radius: 999px;
  padding: 11px 15px;
  box-shadow: 0 8px 18px rgba(33, 70, 49, 0.06);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.hero,
.page-hero,
.product-detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 88% 45%, rgba(213, 29, 49, 0.95) 0 28%, transparent 29%),
    radial-gradient(ellipse at 18% 12%, rgba(255, 255, 255, 0.16) 0 22%, transparent 23%),
    linear-gradient(135deg, #173724 0%, #214631 58%, #16321f 100%);
  border-bottom: 0;
}

.hero::after,
.page-hero::after,
.product-detail-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -120px;
  width: min(560px, 64vw);
  height: 180px;
  background: rgba(127, 159, 127, 0.65);
  border-radius: 999px;
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-grid,
.product-detail-grid {
  position: relative;
  z-index: 1;
}

.hero h1,
.page-hero h1,
.product-detail-copy h1 {
  color: #fff;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3.8rem, 8vw, 7.9rem);
  line-height: 0.84;
}

.hero .lead {
  color: #fff;
  font-size: clamp(1.08rem, 1.7vw, 1.45rem);
}

.hero p,
.page-hero p,
.product-detail-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.hero-eyebrow,
.sku {
  color: #fff;
  background: var(--red);
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.hero-kpis span,
.detail-facts span {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.btn {
  border-radius: 999px;
}

.btn.primary,
.nav-links .nav-cta {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.hero-media,
.product-detail-media {
  border: 10px solid #fff;
  border-radius: 34% 66% 58% 42% / 45% 33% 67% 55%;
  background: #fff;
  box-shadow: 0 24px 70px rgba(14, 36, 23, 0.28);
}

.hero-media img,
.product-detail-media img {
  object-fit: cover;
}

.hero-note {
  color: var(--green);
  background: #fff;
  border-radius: 20px;
}

.slider-dots button {
  height: 9px;
}

.promo-slider,
.cta-band {
  border-radius: 28px;
  overflow: hidden;
}

.promo-slide {
  padding: 38px 44px;
  background:
    linear-gradient(90deg, rgba(213, 29, 49, 0.96), rgba(213, 29, 49, 0.78)),
    url("assets/miba-katalog.jpeg") center right / contain no-repeat,
    var(--red);
}

.promo-slide span {
  color: var(--red);
  background: #fff;
  border-radius: 999px;
}

.promo-slide h2 {
  text-transform: uppercase;
}

.section {
  padding: 78px 0;
}

.section-title {
  text-transform: uppercase;
  line-height: 0.95;
}

.section.soft {
  background: #f1f7ed;
}

.card,
.shop-card,
.product-card,
.contact-panel,
.access-card,
.process-grid article {
  border-radius: 24px;
  border: 2px solid rgba(33, 70, 49, 0.1);
  box-shadow: 0 14px 34px rgba(33, 70, 49, 0.06);
}

.card h3,
.shop-card h3,
.product-card h2,
.product-card h3,
.contact-panel h2,
.contact-panel h3 {
  text-transform: uppercase;
}

.icon {
  background: var(--red);
  border-radius: 999px;
}

.shop-card {
  overflow: hidden;
  padding: 16px;
}

.product-image {
  height: 210px;
  margin: 0 0 16px;
  border-radius: 22px;
  background: #fff4f3;
}

.shop-meta {
  border-color: rgba(33, 70, 49, 0.12);
}

.catalog-bar {
  top: 86px;
  background: rgba(255, 250, 242, 0.97);
}

.catalog-bar .wrap {
  padding-top: 14px;
  padding-bottom: 14px;
}

.catalog-bar a,
.category-panel a,
.tag-list li,
.target-list li,
.feature-list li,
.content-data-table div {
  border-radius: 999px;
}

.category-panel {
  border-radius: 24px;
}

.catalog-head {
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 88% 50%, rgba(213, 29, 49, 0.92) 0 28%, transparent 29%),
    var(--green);
}

.field input,
.field textarea,
.data-grid input,
.editor-grid input,
.editor-grid select {
  border-radius: 16px;
}

.cta-band {
  margin: 0 auto 34px;
  width: min(calc(100% - 40px), var(--max));
  background:
    radial-gradient(ellipse at 90% 50%, rgba(213, 29, 49, 0.95) 0 26%, transparent 27%),
    var(--green);
}

.site-footer {
  background: #fffaf2;
}

.admin-side {
  background:
    radial-gradient(ellipse at 20% -6%, rgba(213, 29, 49, 0.5), transparent 32%),
    var(--ink);
}

.app-header,
.app-panel,
.metric-grid article,
.dashboard-grid article,
.ad-slots article,
.modal-panel {
  border-radius: 24px;
}

@media (max-width: 920px) {
  .wrap {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    position: sticky;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 12px 0 10px;
  }

  .brand {
    width: 100%;
    justify-content: space-between;
  }

  .brand-logo {
    width: 112px;
    height: 56px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 0 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .hero,
  .page-hero,
  .product-detail-hero {
    background:
      radial-gradient(ellipse at 70% 84%, rgba(213, 29, 49, 0.95) 0 30%, transparent 31%),
      linear-gradient(145deg, #173724 0%, #214631 100%);
  }

  .hero-grid,
  .product-detail-grid {
    gap: 30px;
  }

  .hero-media,
  .product-detail-media {
    min-height: 330px;
    border-width: 8px;
  }

  .product-detail-media img {
    min-height: 330px;
  }

  .catalog-bar {
    position: static;
  }

  .category-panel {
    display: none;
  }

  .catalog-head {
    gap: 16px;
  }

  .catalog-head .btn {
    width: 100%;
  }

  .app-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .app-sidebar nav {
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .app-sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .app-sidebar nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(calc(100% - 22px), var(--max));
  }

  .brand-logo {
    width: 102px;
    height: 51px;
  }

  .brand-text {
    text-align: right;
  }

  .brand-text strong {
    font-size: 0.98rem;
  }

  .brand small {
    font-size: 0.66rem;
  }

  .nav-links a {
    padding: 9px 12px;
    font-size: 0.82rem;
  }

  .hero,
  .page-hero,
  .product-detail-hero {
    padding: 34px 0 42px;
  }

  .hero h1,
  .page-hero h1,
  .product-detail-copy h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
    line-height: 0.86;
    overflow-wrap: anywhere;
  }

  .hero .lead,
  .hero p,
  .page-hero p,
  .product-detail-copy p,
  .section-copy,
  .copy p {
    font-size: 0.96rem;
    line-height: 1.55;
  }

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

  .hero-kpis span {
    min-height: 42px;
    display: grid;
    place-items: center;
    text-align: center;
  }

  .hero-actions,
  .cta-row {
    gap: 9px;
  }

  .hero-actions .btn,
  .cta-row .btn,
  .product-actions .btn,
  .form button {
    width: 100%;
  }

  .hero-media,
  .product-detail-media {
    min-height: 270px;
    border-width: 6px;
    border-radius: 28% 72% 60% 40% / 41% 35% 65% 59%;
  }

  .product-detail-media img {
    min-height: 270px;
  }

  .hero-note {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    margin: 0;
    max-width: none;
    padding: 11px 13px;
    text-align: center;
    font-size: 0.88rem;
  }

  .promo-section {
    padding-top: 16px;
  }

  .promo-slider {
    min-height: 360px;
    border-radius: 22px;
  }

  .promo-slide {
    align-content: start;
    padding: 24px 18px 150px;
    background:
      linear-gradient(180deg, rgba(213, 29, 49, 0.96), rgba(213, 29, 49, 0.82)),
      url("assets/miba-katalog.jpeg") bottom center / 94% auto no-repeat,
      var(--red);
  }

  .promo-slide h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    gap: 12px;
    margin-bottom: 22px;
  }

  .section-title {
    font-size: clamp(2rem, 11vw, 3.2rem);
    overflow-wrap: anywhere;
  }

  .card,
  .shop-card,
  .contact-panel,
  .category-panel {
    border-radius: 20px;
    padding: 18px;
  }

  .shop-card {
    padding: 14px;
  }

  .product-image {
    height: 185px;
    border-radius: 18px;
  }

  .shop-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .catalog-bar .wrap {
    gap: 7px;
    padding: 10px 11px;
    width: 100%;
  }

  .catalog-bar a {
    padding: 9px 11px;
    font-size: 0.82rem;
  }

  .catalog-head {
    padding: 20px 17px;
    border-radius: 22px;
  }

  .catalog-head h2 {
    font-size: 1.8rem;
  }

  .category-title {
    font-size: 1.35rem;
  }

  .content-data-table div {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .target-list,
  .tag-list {
    gap: 8px;
  }

  .tag-list li,
  .target-list li,
  .feature-list li {
    border-radius: 18px;
  }

  .contact-panel {
    margin-top: 4px;
  }

  .field textarea {
    min-height: 140px;
  }

  .cta-band {
    width: min(calc(100% - 22px), var(--max));
    padding: 38px 0;
    border-radius: 22px;
    background:
      radial-gradient(ellipse at 92% 86%, rgba(213, 29, 49, 0.92) 0 25%, transparent 26%),
      var(--green);
  }

  .cta-band .wrap {
    width: min(calc(100% - 32px), var(--max));
  }

  .cta-band h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .footer-row,
  .footer-links {
    display: grid;
    justify-items: start;
  }

  .app-main {
    padding: 12px;
  }

  .app-header,
  .app-panel,
  .metric-grid article,
  .dashboard-grid article,
  .ad-slots article,
  .modal-panel {
    border-radius: 20px;
  }

  .app-header {
    padding: 18px;
  }

  .app-header h1 {
    font-size: clamp(2.1rem, 12vw, 3rem);
  }

  .row-actions {
    display: grid;
  }

  .app-panel button,
  .mini-products button,
  .panel-actions button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .brand-text {
    display: none;
  }

  .brand {
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.78rem;
  }
}

/* Heinz-style Miba refresh: cream base, red brand surfaces, blue editorial type. */
:root {
  --bg: #fff6e4;
  --bg-soft: #f9edcf;
  --ink: #17365d;
  --muted: #526477;
  --line: #eadbb9;
  --green: #17365d;
  --green-2: #8fac95;
  --red: #c9182b;
  --amber: #f5c94c;
  --paper: #fffaf0;
  --shadow: 0 22px 55px rgba(23, 54, 93, 0.13);
}

body {
  color: var(--ink);
  background: var(--bg);
}

.site-header {
  background: rgba(255, 246, 228, 0.96);
  border-bottom: 2px solid rgba(201, 24, 43, 0.12);
}

.brand-logo {
  background: #fffaf0;
  border-color: rgba(201, 24, 43, 0.12);
  box-shadow: 0 13px 30px rgba(201, 24, 43, 0.14);
}

.brand-text strong,
.brand small,
.nav-links a {
  color: var(--ink);
}

.nav-links a {
  background: #fffaf0;
  border-color: rgba(23, 54, 93, 0.12);
  box-shadow: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fffaf0;
  background: var(--red);
  border-color: var(--red);
}

.hero,
.page-hero,
.product-detail-hero {
  background:
    radial-gradient(ellipse at 72% 44%, rgba(201, 24, 43, 0.98) 0 25%, transparent 26%),
    radial-gradient(ellipse at 86% 62%, rgba(255, 250, 240, 0.95) 0 16%, transparent 17%),
    linear-gradient(180deg, #fff6e4 0%, #f9edcf 100%);
}

.hero::after,
.page-hero::after,
.product-detail-hero::after {
  right: -8%;
  bottom: -108px;
  background: #92aa91;
  opacity: 0.78;
}

.hero h1,
.page-hero h1,
.product-detail-copy h1 {
  color: var(--red);
  letter-spacing: 0;
}

.hero .lead {
  color: var(--ink);
}

.hero p,
.page-hero p,
.product-detail-copy p,
.section-copy,
.copy p,
.card p,
.shop-card p,
.contact-panel p,
li {
  color: var(--muted);
}

.hero-eyebrow,
.sku {
  color: #fffaf0;
  background: var(--red);
}

.hero-kpis span,
.detail-facts span {
  color: var(--ink);
  background: #fffaf0;
  border-color: rgba(23, 54, 93, 0.12);
  backdrop-filter: none;
}

.btn {
  color: var(--ink);
  background: #fffaf0;
  border-color: rgba(23, 54, 93, 0.14);
}

.btn.primary,
.nav-links .nav-cta {
  color: #fffaf0;
  background: var(--red);
  border-color: var(--red);
}

.btn:hover {
  box-shadow: 0 13px 24px rgba(201, 24, 43, 0.13);
}

.hero-media,
.product-detail-media {
  border-color: #fffaf0;
  background: #fffaf0;
  border-radius: 52% 48% 48% 52% / 44% 52% 48% 56%;
  box-shadow: 0 26px 68px rgba(23, 54, 93, 0.16);
}

.hero-note {
  color: var(--ink);
  background: #fffaf0;
}

.slider-dots button {
  background: rgba(255, 250, 240, 0.58);
}

.slider-dots button.is-active {
  background: var(--amber);
}

.promo-slider {
  background: var(--red);
}

.promo-slide {
  color: #fffaf0;
  background:
    radial-gradient(ellipse at 86% 50%, rgba(255, 250, 240, 0.16) 0 28%, transparent 29%),
    linear-gradient(90deg, rgba(201, 24, 43, 1), rgba(177, 18, 36, 0.9)),
    url("assets/miba-katalog.jpeg") center right / contain no-repeat,
    var(--red);
}

.promo-slide span {
  color: var(--red);
  background: #fffaf0;
}

.promo-slide p {
  color: rgba(255, 250, 240, 0.78);
}

.section.soft {
  background: #f9edcf;
}

.section-title,
.card h3,
.shop-card h3,
.product-card h2,
.product-card h3,
.contact-panel h2,
.contact-panel h3,
.category-panel h2,
.catalog-head h2 {
  color: var(--ink);
}

.icon {
  color: #fffaf0;
  background: var(--red);
}

.card,
.shop-card,
.product-card,
.contact-panel,
.access-card,
.process-grid article,
.app-header,
.app-panel,
.metric-grid article,
.dashboard-grid article,
.ad-slots article,
.modal-panel {
  background: #fffaf0;
  border-color: rgba(23, 54, 93, 0.1);
}

.product-image {
  background: #fff0d0;
}

.shop-meta span,
.content-data-table strong,
.detail-grid strong,
.field label,
.data-grid label,
.editor-grid label {
  color: var(--ink);
}

.catalog-bar {
  background: rgba(255, 246, 228, 0.97);
}

.catalog-bar a,
.category-panel a,
.tag-list li,
.target-list li,
.feature-list li {
  color: var(--ink);
  background: #fffaf0;
  border-color: rgba(23, 54, 93, 0.1);
}

.catalog-head {
  background:
    radial-gradient(ellipse at 88% 50%, rgba(255, 250, 240, 0.18) 0 28%, transparent 29%),
    var(--red);
}

.catalog-head h2,
.catalog-head p {
  color: #fffaf0;
}

.catalog-head .btn,
.promo-slide .btn.primary {
  color: var(--red);
  background: #fffaf0;
  border-color: #fffaf0;
}

.cta-band {
  background:
    radial-gradient(ellipse at 88% 50%, rgba(255, 250, 240, 0.18) 0 25%, transparent 26%),
    var(--red);
}

.cta-band .btn {
  color: var(--red);
  background: #fffaf0;
}

.site-footer {
  background: var(--bg);
}

.admin-side {
  background:
    radial-gradient(ellipse at 20% -6%, rgba(201, 24, 43, 0.58), transparent 32%),
    #17365d;
}

.admin-side .brand,
.admin-side .brand small,
.admin-side .brand-text strong,
.admin-side nav a {
  color: #fffaf0;
}

.admin-side nav a:hover,
.admin-side nav a.is-active {
  background: rgba(255, 250, 240, 0.13);
}

@media (max-width: 920px) {
  .hero,
  .page-hero,
  .product-detail-hero {
    background:
      radial-gradient(ellipse at 70% 82%, rgba(201, 24, 43, 0.95) 0 28%, transparent 29%),
      linear-gradient(180deg, #fff6e4 0%, #f9edcf 100%);
  }
}

@media (max-width: 620px) {
  .hero,
  .page-hero,
  .product-detail-hero {
    background:
      radial-gradient(ellipse at 72% 84%, rgba(201, 24, 43, 0.9) 0 26%, transparent 27%),
      linear-gradient(180deg, #fff6e4 0%, #f9edcf 100%);
  }

  .promo-slide {
    background:
      radial-gradient(ellipse at 72% 88%, rgba(255, 250, 240, 0.16) 0 25%, transparent 26%),
      linear-gradient(180deg, rgba(201, 24, 43, 1), rgba(177, 18, 36, 0.92)),
      url("assets/miba-katalog.jpeg") bottom center / 92% auto no-repeat,
      var(--red);
  }

  .hero-media,
  .product-detail-media {
    border-radius: 48% 52% 52% 48% / 44% 50% 50% 56%;
  }
}

.product-detail-sku {
  display: block;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
}

.inquiry-box {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  transform: none;
  pointer-events: none;
}

.inquiry-tab,
.inquiry-panel {
  pointer-events: auto;
}

.inquiry-tab {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  min-height: 56px;
  padding: 10px 12px 10px 16px;
  color: #fff;
  background: #8aa68c;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(18, 54, 84, 0.18);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.inquiry-tab span {
  font-size: 0.86rem;
}

.inquiry-tab strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--ink);
  background: #fffdf8;
  border-radius: 999px;
  font-size: 0.92rem;
}

.inquiry-box.has-products .inquiry-tab {
  background: #78977b;
}

.inquiry-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(920px, calc(100vw - 44px));
  max-height: min(520px, calc(100vh - 118px));
  overflow: auto;
  padding: 18px;
  background: #fffdf8;
  border: 1px solid rgba(18, 54, 84, 0.12);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(18, 54, 84, 0.2);
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.inquiry-box.is-open .inquiry-panel {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.inquiry-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.inquiry-panel-head strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.inquiry-panel-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.inquiry-panel-head button {
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: #faefd4;
  border: 1px solid rgba(18, 54, 84, 0.1);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 900;
}

.inquiry-products {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
  max-height: 285px;
  overflow: auto;
}

.inquiry-products article,
.inquiry-empty {
  padding: 11px;
  background: #fff8ea;
  border: 1px solid rgba(18, 54, 84, 0.1);
  border-radius: 14px;
}

.inquiry-products article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.inquiry-products span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.inquiry-products small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.inquiry-products button {
  padding: 7px 9px;
  color: var(--red);
  background: #fffdf8;
  border: 1px solid rgba(201, 21, 43, 0.18);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
}

.inquiry-empty {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.inquiry-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
}

.inquiry-form input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid rgba(18, 54, 84, 0.14);
  border-radius: 14px;
  font: inherit;
}

.inquiry-form .btn {
  margin-top: 4px;
  min-width: 150px;
  background: #8aa68c;
  border-color: #8aa68c;
}

.inquiry-note {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.shop-card .btn.primary.is-selected,
.product-detail-copy .btn.primary.is-selected {
  background: #78977b;
  border-color: #78977b;
}

@media (max-width: 760px) {
  .inquiry-box {
    left: 11px;
    right: 11px;
    top: auto;
    bottom: 12px;
    transform: none;
  }

  .inquiry-tab {
    min-width: 100%;
    min-height: 52px;
    grid-template-columns: 1fr auto;
    align-items: center;
    border-radius: 16px;
  }

  .inquiry-panel {
    left: 0;
    right: 0;
    top: auto;
    bottom: 64px;
    width: auto;
    max-height: min(640px, calc(100vh - 120px));
    transform: translateY(8px);
  }

  .inquiry-box.is-open .inquiry-panel {
    transform: translateY(0);
  }

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

  .inquiry-form .btn {
    width: 100%;
  }
}

@media (min-width: 761px) {
  .inquiry-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.65fr);
    gap: 14px 18px;
    align-items: start;
  }

  .inquiry-panel-head {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .inquiry-products {
    grid-column: 1;
  }

  .inquiry-form {
    grid-column: 2;
    margin-top: 0;
  }

  .inquiry-note {
    grid-column: 2;
    margin-top: 0;
  }
}

/* Calmer type scale after brand refresh. */
.hero h1 {
  font-size: clamp(2.75rem, 6.2vw, 5.9rem);
  line-height: 0.9;
}

.page-hero h1,
.product-detail-copy h1 {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 0.94;
}

.section-title {
  font-size: clamp(1.75rem, 2.8vw, 2.95rem);
  line-height: 1;
}

.promo-slide h2,
.cta-band h2 {
  font-size: clamp(1.8rem, 3.3vw, 3.05rem);
  line-height: 1;
}

.hero .lead {
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.hero p,
.page-hero p,
.product-detail-copy p,
.section-copy,
.copy p,
.promo-slide p,
.cta-band p {
  font-size: 0.94rem;
}

.shop-card h3,
.card h3,
.contact-panel h2,
.contact-panel h3 {
  font-size: 1rem;
}

@media (max-width: 620px) {
  .hero h1,
  .page-hero h1,
  .product-detail-copy h1 {
    font-size: clamp(2.05rem, 10vw, 3.05rem);
    line-height: 0.94;
  }

  .section-title {
    font-size: clamp(1.65rem, 8.5vw, 2.35rem);
  }

  .promo-slide h2,
  .cta-band h2 {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  .hero .lead,
  .hero p,
  .page-hero p,
  .product-detail-copy p,
  .section-copy,
  .copy p,
  .promo-slide p,
  .cta-band p {
    font-size: 0.9rem;
  }
}

/* Cleaner, quieter reading layer. */
.hero h1 {
  font-size: clamp(2.25rem, 4.8vw, 4.35rem);
  line-height: 0.96;
  text-transform: none;
}

.page-hero h1,
.product-detail-copy h1 {
  font-size: clamp(2rem, 3.8vw, 3.55rem);
  line-height: 1;
  text-transform: none;
}

.section-title {
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  line-height: 1.08;
  text-transform: none;
}

.promo-slide h2,
.cta-band h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.45rem);
  line-height: 1.05;
  text-transform: none;
}

.hero .lead {
  max-width: 520px;
  font-size: clamp(0.96rem, 1.05vw, 1.08rem);
  line-height: 1.5;
}

.hero p,
.page-hero p,
.product-detail-copy p,
.section-copy,
.copy p,
.promo-slide p,
.cta-band p,
.card p,
.shop-card p,
.contact-panel p,
li {
  font-size: 0.89rem;
  line-height: 1.55;
}

.hero,
.page-hero,
.product-detail-hero {
  background:
    radial-gradient(ellipse at 76% 48%, rgba(201, 24, 43, 0.86) 0 21%, transparent 22%),
    radial-gradient(ellipse at 88% 62%, rgba(255, 250, 240, 0.92) 0 14%, transparent 15%),
    linear-gradient(180deg, #fff8eb 0%, #fbefd3 100%);
}

.hero-media,
.product-detail-media {
  border-width: 7px;
  box-shadow: 0 18px 48px rgba(23, 54, 93, 0.12);
}

.promo-slider,
.cta-band {
  border-radius: 22px;
}

.promo-slide {
  padding: 32px 36px;
}

.card,
.shop-card,
.product-card,
.contact-panel,
.access-card,
.process-grid article,
.app-header,
.app-panel,
.metric-grid article,
.dashboard-grid article,
.ad-slots article,
.modal-panel {
  border-width: 1px;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(23, 54, 93, 0.06);
}

.card h3,
.shop-card h3,
.product-card h2,
.product-card h3,
.contact-panel h2,
.contact-panel h3 {
  font-size: 0.96rem;
  text-transform: none;
}

.product-image {
  height: 185px;
  border-radius: 16px;
}

.btn {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.88rem;
}

.nav {
  min-height: 76px;
}

.brand-logo {
  width: 108px;
  height: 54px;
}

.nav-links a {
  padding: 9px 13px;
  font-size: 0.84rem;
}

.section {
  padding: 62px 0;
}

.hero {
  padding: 46px 0 50px;
}

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

.product-detail-hero {
  padding: 46px 0;
}

.hero-kpis span,
.detail-facts span,
.tag-list li,
.target-list li,
.feature-list li,
.catalog-bar a,
.category-panel a {
  font-size: 0.82rem;
}

@media (max-width: 920px) {
  .hero,
  .page-hero,
  .product-detail-hero {
    background:
      radial-gradient(ellipse at 76% 84%, rgba(201, 24, 43, 0.82) 0 23%, transparent 24%),
      linear-gradient(180deg, #fff8eb 0%, #fbefd3 100%);
  }
}

@media (max-width: 620px) {
  .hero h1,
  .page-hero h1,
  .product-detail-copy h1 {
    font-size: clamp(1.75rem, 8.5vw, 2.55rem);
    line-height: 1;
  }

  .section-title {
    font-size: clamp(1.35rem, 6.7vw, 1.9rem);
  }

  .promo-slide h2,
  .cta-band h2 {
    font-size: clamp(1.35rem, 6.8vw, 1.95rem);
  }

  .hero .lead,
  .hero p,
  .page-hero p,
  .product-detail-copy p,
  .section-copy,
  .copy p,
  .promo-slide p,
  .cta-band p,
  .card p,
  .shop-card p,
  .contact-panel p,
  li {
    font-size: 0.85rem;
  }

  .nav {
    gap: 8px;
    padding: 10px 0 8px;
  }

  .brand-logo {
    width: 92px;
    height: 46px;
  }

  .nav-links a {
    padding: 8px 11px;
    font-size: 0.78rem;
  }

  .hero,
  .page-hero,
  .product-detail-hero {
    padding: 30px 0 34px;
  }

  .hero-media,
  .product-detail-media {
    min-height: 235px;
    border-width: 5px;
  }

  .product-detail-media img {
    min-height: 235px;
  }

  .promo-slider {
    min-height: 320px;
  }

  .promo-slide {
    padding: 22px 16px 132px;
  }

  .section {
    padding: 40px 0;
  }

  .card,
  .shop-card,
  .contact-panel,
  .category-panel {
    padding: 16px;
    border-radius: 16px;
  }

  .product-image {
    height: 160px;
  }
}

/* Final Miba brand system: premium, clean, food-brand focused. */
:root {
  --bg: #fff8ea;
  --bg-soft: #f8edcf;
  --ink: #123654;
  --muted: #5b6b78;
  --line: rgba(18, 54, 84, 0.12);
  --green: #123654;
  --green-2: #8aa68c;
  --red: #c9152b;
  --amber: #f6c94f;
  --paper: #fffdf8;
  --shadow: 0 16px 42px rgba(18, 54, 84, 0.09);
  --max: 1180px;
}

body {
  background:
    linear-gradient(180deg, #fff8ea 0%, #fffaf0 34%, #fff8ea 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.wrap {
  width: min(calc(100% - 44px), var(--max));
}

.site-header {
  background: rgba(255, 248, 234, 0.92);
  border-bottom: 1px solid rgba(18, 54, 84, 0.08);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 74px;
  gap: 22px;
}

.brand-logo {
  width: 104px;
  height: 52px;
  padding: 3px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 8px 16px rgba(201, 21, 43, 0.12));
}

.brand-text strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.brand small {
  color: rgba(18, 54, 84, 0.62);
  font-size: 0.68rem;
}

.nav-links {
  gap: 4px;
  padding: 5px;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(18, 54, 84, 0.08);
  border-radius: 999px;
}

.nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  box-shadow: none;
  font-size: 0.82rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fffdf8;
  background: var(--red);
}

.hero,
.page-hero,
.product-detail-hero {
  background:
    radial-gradient(ellipse at 76% 49%, rgba(201, 21, 43, 0.92) 0 22%, transparent 23%),
    radial-gradient(ellipse at 88% 62%, rgba(255, 253, 248, 0.96) 0 13%, transparent 14%),
    linear-gradient(180deg, #fff8ea 0%, #faedcf 100%);
}

.hero::after,
.page-hero::after,
.product-detail-hero::after {
  width: min(500px, 58vw);
  height: 128px;
  right: -8%;
  bottom: -82px;
  background: rgba(138, 166, 140, 0.64);
  opacity: 1;
}

.hero-grid {
  grid-template-columns: minmax(320px, 0.86fr) minmax(460px, 1.14fr);
  gap: 52px;
}

.hero h1 {
  max-width: 520px;
  color: var(--ink);
  font-size: clamp(2.35rem, 4.35vw, 4.1rem);
  line-height: 1;
  letter-spacing: 0;
}

.page-hero h1,
.product-detail-copy h1 {
  color: var(--ink);
  font-size: clamp(2rem, 3.25vw, 3.2rem);
  line-height: 1.02;
}

.hero .lead {
  max-width: 500px;
  margin-top: 18px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.52;
  font-weight: 800;
}

.hero p,
.page-hero p,
.product-detail-copy p,
.section-copy,
.copy p,
.promo-slide p,
.cta-band p,
.card p,
.shop-card p,
.contact-panel p,
li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.56;
}

.hero-eyebrow,
.sku {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0 11px;
  color: #fffdf8;
  background: var(--red);
  border: 0;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.hero-kpis {
  gap: 7px;
}

.hero-kpis span,
.detail-facts span {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(18, 54, 84, 0.08);
  box-shadow: none;
  font-size: 0.78rem;
}

.hero-actions,
.cta-row {
  margin-top: 24px;
}

.btn {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(18, 54, 84, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: #fffdf8;
  box-shadow: none;
  font-size: 0.84rem;
}

.btn.primary,
.nav-links .nav-cta,
.app-panel button,
.mini-products button,
.panel-actions button {
  color: #fffdf8;
  background: var(--red);
  border-color: var(--red);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(201, 21, 43, 0.13);
}

.hero-media,
.product-detail-media {
  min-height: 390px;
  border: 8px solid #fffdf8;
  border-radius: 30px;
  background: #fffdf8;
  box-shadow: 0 20px 52px rgba(18, 54, 84, 0.13);
}

.hero-media img,
.product-detail-media img {
  object-fit: cover;
}

.hero-note {
  left: 18px;
  bottom: 18px;
  max-width: 240px;
  padding: 11px 13px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(18, 54, 84, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(18, 54, 84, 0.1);
  font-size: 0.86rem;
}

.slider-dots {
  bottom: 17px;
}

.slider-dots button {
  width: 24px;
  height: 6px;
  background: rgba(255, 253, 248, 0.7);
}

.slider-dots button.is-active {
  background: var(--amber);
}

.promo-section {
  padding: 20px 0 0;
}

.promo-slider {
  min-height: 220px;
  border-radius: 24px;
  background: var(--red);
  box-shadow: 0 18px 42px rgba(201, 21, 43, 0.16);
}

.promo-slide {
  padding: 30px 34px;
  background:
    radial-gradient(ellipse at 82% 50%, rgba(255, 253, 248, 0.18) 0 25%, transparent 26%),
    linear-gradient(90deg, #c9152b 0%, #b91328 100%),
    url("assets/miba-katalog.jpeg") center right / contain no-repeat,
    var(--red);
}

.promo-slide span {
  color: var(--red);
  background: #fffdf8;
  font-size: 0.72rem;
}

.promo-slide h2 {
  max-width: 510px;
  color: #fffdf8;
  font-size: clamp(1.45rem, 2.35vw, 2.15rem);
  line-height: 1.05;
}

.promo-slide p {
  max-width: 430px;
  color: rgba(255, 253, 248, 0.78);
}

.promo-slide .btn.primary {
  color: var(--red);
  background: #fffdf8;
  border-color: #fffdf8;
}

.section {
  padding: 58px 0;
}

.section.soft {
  background: #faefd4;
}

.section-head {
  gap: 24px;
  margin-bottom: 26px;
}

.section-title {
  color: var(--ink);
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.card,
.shop-card,
.product-card,
.contact-panel,
.access-card,
.process-grid article,
.app-header,
.app-panel,
.metric-grid article,
.dashboard-grid article,
.ad-slots article,
.modal-panel {
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(18, 54, 84, 0.1);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(18, 54, 84, 0.055);
}

.card,
.contact-panel {
  padding: 20px;
}

.card h3,
.shop-card h3,
.product-card h2,
.product-card h3,
.contact-panel h2,
.contact-panel h3 {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.2;
}

.icon {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: #fffdf8;
  background: var(--red);
  font-size: 0.75rem;
}

.shop-grid {
  gap: 18px;
}

.shop-card {
  padding: 14px;
}

.product-image {
  height: 178px;
  margin: 0 0 14px;
  border-radius: 18px;
  background: #fff1cf;
}

.shop-card h3 {
  margin-top: 8px;
}

.shop-card p {
  margin-bottom: 14px;
}

.shop-meta {
  gap: 8px;
  margin-bottom: 12px;
  padding-top: 12px;
  border-color: rgba(18, 54, 84, 0.08);
}

.shop-meta span {
  color: var(--ink);
  font-size: 0.78rem;
}

.product-actions {
  gap: 7px;
}

.catalog-bar {
  top: 74px;
  background: rgba(255, 248, 234, 0.96);
  border-bottom-color: rgba(18, 54, 84, 0.08);
}

.catalog-bar .wrap {
  padding-top: 10px;
  padding-bottom: 10px;
}

.catalog-bar a,
.category-panel a,
.tag-list li,
.target-list li,
.feature-list li {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(18, 54, 84, 0.1);
  font-size: 0.8rem;
}

.category-panel {
  padding: 16px;
  border-radius: 20px;
}

.catalog-head {
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 86% 50%, rgba(255, 253, 248, 0.16) 0 28%, transparent 29%),
    linear-gradient(90deg, #c9152b 0%, #b91328 100%);
}

.catalog-head h2 {
  color: #fffdf8;
  font-size: 1.55rem;
}

.catalog-head p {
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.88rem;
}

.catalog-head .btn {
  color: var(--red);
  background: #fffdf8;
  border-color: #fffdf8;
}

.category-title {
  color: var(--ink);
  font-size: 1.22rem;
}

.category-copy {
  font-size: 0.88rem;
}

.page-hero {
  padding: 52px 0 40px;
}

.page-hero p {
  max-width: 700px;
}

.product-detail-hero {
  padding: 48px 0;
}

.product-detail-grid {
  gap: 42px;
}

.product-info-grid .section-title {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.content-data-table div {
  border-radius: 18px;
}

.field input,
.field textarea,
.data-grid input,
.editor-grid input,
.editor-grid select {
  border-color: rgba(18, 54, 84, 0.12);
  background: #fffdf8;
}

.cta-band {
  padding: 44px 0;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 88% 50%, rgba(255, 253, 248, 0.18) 0 25%, transparent 26%),
    linear-gradient(90deg, #c9152b 0%, #b91328 100%);
  box-shadow: 0 18px 42px rgba(201, 21, 43, 0.16);
}

.cta-band h2 {
  color: #fffdf8;
  font-size: clamp(1.5rem, 2.45vw, 2.25rem);
}

.cta-band p {
  color: rgba(255, 253, 248, 0.78);
}

.cta-band .btn {
  color: var(--red);
  background: #fffdf8;
  border-color: #fffdf8;
}

.site-footer {
  background: #fff8ea;
  border-top-color: rgba(18, 54, 84, 0.08);
}

.admin-side {
  background:
    radial-gradient(ellipse at 26% 0%, rgba(201, 21, 43, 0.56), transparent 34%),
    #123654;
}

.admin-side .brand-logo {
  background: #fffdf8;
  border-radius: 18px;
  padding: 4px;
}

.table-head {
  color: var(--ink);
  background: #faefd4;
}

.status.ok {
  color: #1f6846;
  background: #e6f2e8;
}

@media (max-width: 920px) {
  .wrap {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav {
    gap: 10px;
    padding: 10px 0;
  }

  .nav-links {
    width: 100%;
    padding: 4px;
  }

  .hero-grid,
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero,
  .page-hero,
  .product-detail-hero {
    background:
      radial-gradient(ellipse at 78% 82%, rgba(201, 21, 43, 0.82) 0 24%, transparent 25%),
      linear-gradient(180deg, #fff8ea 0%, #faedcf 100%);
  }

  .hero-media,
  .product-detail-media {
    min-height: 310px;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(calc(100% - 22px), var(--max));
  }

  .brand-logo {
    width: 88px;
    height: 44px;
  }

  .brand-text strong {
    font-size: 0.9rem;
  }

  .brand small {
    font-size: 0.62rem;
  }

  .nav-links a {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .hero,
  .page-hero,
  .product-detail-hero {
    padding: 28px 0 34px;
  }

  .hero h1,
  .page-hero h1,
  .product-detail-copy h1 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    line-height: 1.02;
  }

  .hero .lead {
    font-size: 0.92rem;
  }

  .hero p,
  .page-hero p,
  .product-detail-copy p,
  .section-copy,
  .copy p,
  .promo-slide p,
  .cta-band p,
  .card p,
  .shop-card p,
  .contact-panel p,
  li {
    font-size: 0.84rem;
  }

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

  .hero-media,
  .product-detail-media {
    min-height: 225px;
    border-radius: 22px;
  }

  .hero-note {
    left: 10px;
    right: 10px;
    bottom: 10px;
    font-size: 0.8rem;
  }

  .promo-slider {
    min-height: 300px;
    border-radius: 20px;
  }

  .promo-slide {
    padding: 20px 16px 124px;
    background:
      radial-gradient(ellipse at 76% 88%, rgba(255, 253, 248, 0.16) 0 25%, transparent 26%),
      linear-gradient(180deg, #c9152b 0%, #b91328 100%),
      url("assets/miba-katalog.jpeg") bottom center / 90% auto no-repeat,
      var(--red);
  }

  .promo-slide h2,
  .cta-band h2,
  .section-title {
    font-size: clamp(1.28rem, 6.2vw, 1.75rem);
  }

  .section {
    padding: 38px 0;
  }

  .section-head {
    gap: 10px;
  }

  .card,
  .shop-card,
  .contact-panel,
  .category-panel {
    border-radius: 16px;
    padding: 15px;
  }

  .product-image {
    height: 150px;
    border-radius: 14px;
  }

  .catalog-head {
    padding: 18px;
    border-radius: 20px;
  }

  .catalog-head h2 {
    font-size: 1.3rem;
  }

  .cta-band {
    padding: 34px 0;
    border-radius: 20px;
  }
}

/* Final polish: calmer decorative shapes and clearer mobile header. */
.page-hero,
.product-detail-hero {
  background:
    radial-gradient(ellipse at 82% 50%, rgba(201, 21, 43, 0.58) 0 18%, transparent 19%),
    radial-gradient(ellipse at 91% 64%, rgba(255, 253, 248, 0.96) 0 11%, transparent 12%),
    linear-gradient(180deg, #fff8ea 0%, #faedcf 100%);
}

.hero {
  background:
    radial-gradient(ellipse at 78% 50%, rgba(201, 21, 43, 0.74) 0 20%, transparent 21%),
    radial-gradient(ellipse at 90% 64%, rgba(255, 253, 248, 0.98) 0 12%, transparent 13%),
    linear-gradient(180deg, #fff8ea 0%, #faedcf 100%);
}

.promo-slider,
.catalog-head,
.cta-band {
  box-shadow: 0 14px 34px rgba(201, 21, 43, 0.12);
}

.promo-slide {
  background:
    linear-gradient(90deg, rgba(201, 21, 43, 0.98) 0%, rgba(201, 21, 43, 0.9) 34%, rgba(201, 21, 43, 0.34) 58%, rgba(201, 21, 43, 0.06) 100%),
    url("assets/miba-katalog.jpeg") center 64% / 100% auto no-repeat,
    var(--red);
}

.page-hero p,
.product-detail-copy p {
  max-width: 650px;
}

@media (max-width: 620px) {
  .site-header {
    position: sticky;
  }

  .nav {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 9px;
    padding: 12px 0 10px;
  }

  .brand {
    width: auto;
    min-height: 50px;
    justify-content: center;
  }

  .brand-logo {
    width: 112px;
    height: 50px;
    object-fit: contain;
  }

  .brand-text {
    display: none;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .page-hero,
  .product-detail-hero {
    background:
      radial-gradient(ellipse at 84% 88%, rgba(201, 21, 43, 0.62) 0 20%, transparent 21%),
      linear-gradient(180deg, #fff8ea 0%, #faedcf 100%);
  }

  .promo-slide {
    background:
      linear-gradient(180deg, rgba(201, 21, 43, 0.98) 0%, rgba(201, 21, 43, 0.78) 48%, rgba(201, 21, 43, 0.12) 100%),
      url("assets/miba-katalog.jpeg") center 70% / 175% auto no-repeat,
      var(--red);
  }
}

/* Requested cleanup: simpler header, product cards, centered target section. */
.site-header .brand-text {
  display: none !important;
}

.site-header .brand {
  gap: 0;
}

.hero,
.page-hero,
.product-detail-hero {
  background: linear-gradient(135deg, #fff8ea 0%, #f8e0ad 52%, #fff7e7 100%);
}

.hero::after,
.page-hero::after,
.product-detail-hero::after {
  display: none;
}

.hero-media,
.product-detail-media {
  background: transparent;
}

.shop-card h3 {
  order: 1;
  margin: 0 0 7px;
}

.shop-card .product-description {
  order: 2;
  margin: 0 0 8px;
}

.shop-card .read-more {
  order: 3;
}

.shop-card .shop-meta {
  order: 4;
}

.shop-card .product-actions {
  order: 5;
}

.product-description.is-collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.read-more {
  width: fit-content;
  min-height: 0;
  margin: -2px 0 10px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-meta {
  display: block;
  margin-top: auto;
  padding-top: 10px;
}

.shop-meta span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.shop-card .btn.primary,
.shop-card .product-actions button.btn.primary,
.product-detail-copy button.btn.primary {
  color: #fff;
  background: #8aa68c;
  border-color: #8aa68c;
}

.shop-card .btn.primary:hover,
.shop-card .product-actions button.btn.primary:hover,
.product-detail-copy button.btn.primary:hover {
  background: #78977b;
  border-color: #78977b;
  box-shadow: 0 10px 22px rgba(120, 151, 123, 0.22);
}

.centered-targets {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.centered-targets > div {
  max-width: 680px;
}

.centered-targets .target-list {
  width: min(760px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.centered-targets .target-list li {
  display: grid;
  min-height: 48px;
  place-items: center;
}

@media (max-width: 920px) {
  .centered-targets .target-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero,
  .page-hero,
  .product-detail-hero {
    background: linear-gradient(145deg, #fff8ea 0%, #f8dfa9 58%, #fff7e7 100%);
  }

  .centered-targets .target-list {
    grid-template-columns: 1fr;
  }
}

/* Final spacing pass: titles, subtitles and product metadata. */
.section {
  padding: 76px 0;
}

.section.soft {
  padding: 76px 0;
}

.section-head {
  display: block;
  max-width: 760px;
  margin-bottom: 38px;
}

.section-head .section-copy {
  max-width: 680px;
  margin-top: 12px;
}

.catalog-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 36px;
  padding: 30px;
}

.catalog-head p {
  margin-top: 12px;
}

.catalog-head .btn {
  max-width: none;
}

.wrap.split:has(> .section-title + .copy) {
  grid-template-columns: minmax(0, 780px);
  justify-content: start;
  gap: 16px;
}

.wrap.split:has(> .section-title + .copy) .copy {
  max-width: 720px;
}

.grid-4,
.grid-3,
.grid-2,
.shop-grid,
.product-info-grid {
  gap: 22px;
}

.shop-card {
  gap: 0;
  padding: 24px;
}

.product-image {
  margin-bottom: 20px;
}

.shop-card h3 {
  order: 1;
  margin: 0;
}

.shop-card .shop-meta {
  order: 2;
  margin: 7px 0 0;
  padding-top: 0;
}

.shop-card .product-description {
  order: 3;
  margin: 14px 0 0;
}

.shop-card .read-more {
  order: 4;
  margin: 7px 0 0;
}

.shop-card .product-actions {
  order: 5;
  margin-top: 22px;
}

.shop-meta span,
.product-detail-sku {
  display: block;
  color: #657382;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.product-detail-copy h1 + .product-detail-sku {
  margin-top: 10px;
}

.product-detail-copy p {
  margin-top: 18px;
}

@media (max-width: 920px) {
  .section,
  .section.soft {
    padding: 58px 0;
  }

  .catalog-head {
    padding: 24px;
  }
}

@media (max-width: 620px) {
  .section,
  .section.soft {
    padding: 44px 0;
  }

  .section-head {
    margin-bottom: 26px;
  }

  .shop-card {
    padding: 18px;
  }
}
