/* BioBrig security release 20260715-zap-v1 */
/* BioBrig blog release 20260718-blog-v1 */
/* BioBrig Latvia dealer release 20260719-briketus-v2 */
:root {
  --ink: #10271e;
  --ink-soft: #26392f;
  --forest: #183b2e;
  --leaf: #7fb547;
  --amber: #3f7f1e;
  --brick: #a71e22;
  --paper: #fbfaf4;
  --paper-deep: #ede5d4;
  --surface: #ffffff;
  --line: #ddd4c1;
  --muted: #687068;
  --shadow: 0 18px 50px rgba(16, 39, 30, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.no-scroll {
  overflow: hidden;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 12px 40px;
  background: rgba(251, 250, 244, 0.94);
  border-bottom: 1px solid rgba(16, 39, 30, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  font-weight: 900;
}

.brand-logo {
  width: 202px;
  height: auto;
}

.brand-dealer {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.dealer-mark {
  max-width: 202px;
  color: var(--forest);
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.nav a {
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}

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

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.language-control {
  display: grid;
  gap: 2px;
  min-width: 82px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.language-control select {
  min-height: 38px;
  padding: 7px 28px 7px 10px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.button,
.ghost-button,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
}

.button {
  gap: 8px;
  padding: 12px 18px;
  color: #fffdf8;
  background: var(--forest);
  border: 1px solid var(--forest);
  box-shadow: 0 12px 24px rgba(24, 59, 46, 0.2);
}

.button:hover,
.ghost-button:hover,
.chip:hover {
  transform: translateY(-1px);
}

.button-light {
  color: var(--ink);
  background: rgba(251, 250, 244, 0.94);
  border-color: rgba(251, 250, 244, 0.82);
  box-shadow: none;
}

.button-small {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.92rem;
}

.button-full {
  width: 100%;
}

.bordered {
  border-color: var(--line);
}

.ghost-button {
  min-height: 42px;
  padding: 10px 13px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.order-phone {
  display: grid;
  align-content: center;
  gap: 1px;
  min-width: 160px;
  min-height: 44px;
  padding: 7px 12px;
  color: #fffaf0;
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 8px;
  text-align: left;
}

.order-phone span {
  color: #b5d77e;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.order-phone strong {
  font-size: 0.94rem;
  line-height: 1.15;
  white-space: nowrap;
}

.header-messengers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.messenger-link {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(16, 39, 30, 0.14);
}

.messenger-link:hover {
  transform: translateY(-1px);
}

.messenger-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.messenger-link span {
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1;
}

.messenger-link-whatsapp {
  background: #248a5a;
}

.messenger-link-viber {
  background: #7363a9;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 7px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.social-link:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link rect,
.social-link circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-link path {
  fill: currentColor;
}

.header-social {
  flex-shrink: 0;
}

.header-social .social-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  min-height: 86vh;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("assets/biobrig-loose-real-20260707.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 39, 30, 0.9), rgba(16, 39, 30, 0.57) 48%, rgba(16, 39, 30, 0.24)),
    rgba(16, 39, 30, 0.12);
}

.hero-imprint {
  position: absolute;
  z-index: 1;
  right: clamp(36px, 12vw, 190px);
  top: clamp(210px, 38vh, 360px);
  color: rgba(255, 255, 255, 0.13);
  font-size: clamp(2.8rem, 7vw, 7rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  mix-blend-mode: soft-light;
  opacity: 0.9;
  text-shadow:
    0 -2px 2px rgba(0, 0, 0, 0.72),
    0 2px 2px rgba(255, 255, 255, 0.16);
  transform: rotate(-8deg) skewX(-4deg);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  align-self: end;
  margin: 0 auto;
  padding: 116px 0 72px;
  color: #fffaf0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: 4.6rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 250, 240, 0.86);
  font-size: 1.13rem;
}

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

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 880px;
  margin: 38px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-points div {
  min-height: 112px;
  padding: 22px 24px;
  background: rgba(17, 23, 19, 0.82);
  color: #fffaf0;
}

.hero-points dt {
  color: var(--amber);
  font-size: 1.58rem;
  font-weight: 900;
  line-height: 1;
}

.hero-points dd {
  margin-top: 8px;
  margin-left: 0;
  color: rgba(255, 250, 240, 0.76);
}

.section,
.quick-order,
.production-band,
.lead-section {
  padding: 78px 0;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.quick-order {
  background: var(--ink);
  color: #fffaf0;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr 0.9fr;
  gap: 16px;
  align-items: end;
}

.quick-grid h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}

.quick-grid label {
  color: rgba(255, 250, 240, 0.82);
}

.quick-total {
  display: grid;
  gap: 4px;
  min-height: 80px;
  padding: 14px 16px;
  background: #223027;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.quick-total span,
.quick-total a {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
}

.quick-total strong {
  color: var(--amber);
  font-size: 1.5rem;
  line-height: 1;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.heading-row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
}

.heading-row > div {
  max-width: 760px;
}

.section-heading h2,
.calc-layout h2,
.production-layout h2,
.lead-layout h2 {
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.calc-layout p,
.production-layout p,
.lead-layout p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.catalog-tools,
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.chip {
  min-height: 38px;
  padding: 8px 14px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: none;
}

.chip.active {
  color: #fffaf0;
  background: var(--ink);
  border-color: var(--ink);
}

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

.product-card,
.buyer-grid article,
.article-card,
.contract-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 23, 19, 0.08);
}

.product-image {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #151512;
}

.product-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-card--biobrig-bigbag .product-image > img {
  object-position: center 52%;
}

.product-card--biobrig-pallet .product-image > img {
  object-position: center 54%;
  transform: scale(1.12);
  transform-origin: center center;
}

.product-card--bioruf .product-image > img {
  object-position: center 60%;
}

.product-card--ruf-briquettes .product-image > img {
  object-position: center 48%;
}

.product-card--dried-firewood .product-image > img {
  object-position: center 46%;
}

.product-card--torf-frez .product-image > img,
.product-card--biobrig-granule .product-image > img {
  object-position: center 58%;
}

.product-body {
  display: grid;
  gap: 13px;
  padding: 18px;
}

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

.tag {
  padding: 5px 8px;
  color: var(--forest);
  background: #eef1e9;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 900;
}

.product-card h3 {
  min-height: 58px;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.18;
}

.product-card p {
  min-height: 72px;
  margin: 0;
  color: var(--muted);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price strong {
  font-size: 1.55rem;
}

.price strong:only-child {
  font-size: 1.28rem;
}

.spec-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid #ece6dc;
}

.spec-list span:last-child {
  font-weight: 900;
  text-align: right;
}

.product-pickup {
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  background: #f7f3eb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-pickup span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-pickup strong {
  color: var(--forest);
  font-weight: 900;
}

.product-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--forest);
  font-weight: 900;
  text-align: center;
}

.product-map-link:hover {
  border-color: var(--forest);
  background: #f7f3eb;
}

.section-heading p:empty,
.payment-layout > div > p:empty {
  display: none;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.calc-section {
  background: var(--paper-deep);
}

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr) minmax(300px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.equivalent-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.equivalent-row div {
  min-height: 82px;
  padding: 14px;
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.equivalent-row strong,
.equivalent-row span {
  display: block;
}

.equivalent-row strong {
  color: var(--brick);
  font-size: 1.35rem;
}

.equivalent-row span {
  color: var(--muted);
  font-weight: 800;
}

.calculator,
.lead-form,
.payment-form,
.admin-panel,
.article-editor {
  display: grid;
  gap: 14px;
}

.calculator,
.payment-form {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(47, 92, 65, 0.12);
}

.calc-result,
.payment-summary {
  padding: 22px;
  color: #fffaf0;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.calc-result {
  position: sticky;
  top: 96px;
}

.result-label {
  margin: 0;
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
}

.calc-result > strong,
.payment-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--amber);
  font-size: 2.8rem;
  line-height: 1;
}

.calc-result > span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 250, 240, 0.72);
}

.calc-result dl {
  display: grid;
  gap: 1px;
  margin: 22px 0;
  background: rgba(255, 255, 255, 0.15);
}

.calc-result dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  background: var(--ink);
}

.calc-result dt,
.calc-result dd {
  margin: 0;
}

.calc-result dd {
  color: var(--amber);
  font-weight: 900;
  text-align: right;
}

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

.dealers-section {
  background: #fffaf1;
}

.dealer-heading {
  max-width: 860px;
  margin-bottom: 24px;
}

.dealer-heading h2 {
  max-width: 760px;
}

.dealer-heading p {
  max-width: 720px;
}

.dealer-layout {
  display: block;
}

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

.map-panel {
  min-height: 420px;
  overflow: hidden;
  background: #dfe5d6;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 23, 19, 0.08);
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.dealer-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 23, 19, 0.08);
}

.dealer-card > span {
  color: var(--brick);
  font-weight: 900;
  text-transform: uppercase;
}

.dealer-card h3,
.dealer-card p,
.dealer-card dl {
  margin: 0;
}

.dealer-card p {
  color: var(--muted);
}

.dealer-card dl {
  display: grid;
  gap: 1px;
  background: #ece6dc;
}

.dealer-card dl div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  background: var(--surface);
}

.dealer-card dt,
.dealer-card dd {
  margin: 0;
}

.dealer-card dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dealer-card dd {
  font-weight: 900;
}

.map-link {
  justify-self: start;
  color: var(--forest);
  font-weight: 900;
}

.map-link:hover {
  text-decoration: underline;
}

.dealer-apply-row {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.dealer-apply-button {
  min-width: 280px;
}

.dealer-cta-section {
  color: #fffaf0;
  background: var(--ink);
}

.dealer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr) auto;
  gap: 22px;
  align-items: center;
}

.dealer-cta p {
  color: rgba(255, 250, 240, 0.74);
}

.dealer-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.dealer-benefits div {
  min-height: 116px;
  padding: 16px;
  background: #223027;
}

.dealer-benefits strong,
.dealer-benefits span {
  display: block;
}

.dealer-benefits strong {
  color: var(--amber);
  font-size: 1.25rem;
}

.dealer-benefits span {
  margin-top: 8px;
  color: rgba(255, 250, 240, 0.72);
}

.investor-programs {
  display: grid;
  gap: 10px;
  min-width: 240px;
}

.investor-programs .button {
  width: 100%;
  min-height: 48px;
  padding-inline: 16px;
  box-shadow: none;
}

.investor-programs .button-light {
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.08);
  border-color: rgba(255, 250, 240, 0.28);
}

.investor-programs .button-light:hover {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}

.buyer-grid article {
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: 22px;
}

.buyer-grid span {
  color: var(--brick);
  font-weight: 900;
}

.buyer-grid h3,
.article-card h3,
.contract-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.buyer-grid p,
.article-card p,
.contract-card p {
  margin: 0;
  color: var(--muted);
}

.buyer-grid a,
.article-card a {
  align-self: end;
  color: var(--forest);
  font-weight: 900;
}

.production-band {
  background: #dfe5d6;
}

.production-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: center;
}

.production-layout img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.check-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  background: var(--forest);
  border-radius: 50%;
  content: "";
}

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

.delivery-timeline div {
  min-height: 190px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.delivery-timeline span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
  place-items: center;
  color: #fffaf0;
  background: var(--forest);
  border-radius: 50%;
  font-weight: 900;
}

.delivery-timeline h3,
.delivery-timeline p {
  margin: 0;
}

.delivery-timeline p {
  margin-top: 8px;
  color: var(--muted);
}

.contract-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.contract-card .button {
  align-self: end;
}

.payment-section {
  background: var(--paper-deep);
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.payment-summary p {
  margin: 0;
  color: rgba(255, 250, 240, 0.72);
}

.payment-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.payment-status {
  margin-top: 14px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.95rem;
}

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

.article-card {
  counter-increment: blog-card;
  display: grid;
  min-height: 100%;
  padding: 0;
  border-top: 4px solid var(--forest);
}

.article-card-body {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 24px;
}

.article-card-body::before {
  content: counter(blog-card, decimal-leading-zero);
  position: absolute;
  top: 20px;
  right: 22px;
  color: rgba(16, 39, 30, 0.16);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.article-card span {
  padding-right: 42px;
  color: var(--brick);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-section {
  color: #fffaf0;
  background: var(--ink);
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr);
  gap: 34px;
  align-items: start;
}

.lead-layout p {
  color: rgba(255, 250, 240, 0.74);
}

.lead-form {
  padding: 22px;
  background: #223027;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.lead-form label {
  color: rgba(255, 250, 240, 0.84);
}

.form-note {
  margin: 0;
  color: rgba(255, 250, 240, 0.68);
  font-size: 0.92rem;
}

.site-footer {
  padding: 40px 0;
  color: #fffaf0;
  background: #0d110f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 28px;
}

.footer-grid p,
.footer-grid a {
  display: block;
  margin: 8px 0 0;
  color: rgba(255, 250, 240, 0.72);
}

.footer-grid h3 {
  margin: 0 0 8px;
}

.footer-brand {
  margin-bottom: 10px;
}

.brand-logo-reverse {
  width: 210px;
}

.footer-social {
  margin-top: 16px;
  flex-wrap: wrap;
}

.footer-grid .footer-social .social-link {
  display: inline-flex;
  width: auto;
  min-width: 0;
  height: 40px;
  gap: 8px;
  margin: 10px 6px 0 0;
  padding: 0 12px;
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.07);
  border-color: rgba(255, 250, 240, 0.18);
}

.footer-grid .footer-social .social-link:hover {
  background: rgba(181, 215, 126, 0.12);
  border-color: rgba(181, 215, 126, 0.45);
}

.footer-social .social-label {
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-dialog {
  width: min(1040px, calc(100% - 24px));
  max-height: calc(100vh - 30px);
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-dialog::backdrop {
  background: rgba(17, 23, 19, 0.72);
}

.admin-standalone-page,
.admin-login-page {
  min-height: 100vh;
  margin: 0;
  background: #eef1e9;
}

.admin-standalone-page {
  padding: 24px 12px;
}

.admin-standalone-page .admin-dialog[open] {
  position: relative;
  inset: auto;
  display: block;
  max-height: none;
  margin: 0 auto;
}

.admin-login-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-shell {
  display: grid;
  gap: 22px;
  width: min(420px, 100%);
}

.admin-login-logo {
  width: 190px;
  height: auto;
  margin: 0 auto;
}

.admin-login-surface {
  padding: 24px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-login-surface h1 {
  margin: 6px 0 20px;
  font-size: 1.8rem;
}

.admin-login-surface form {
  display: grid;
  gap: 14px;
}

.admin-login-status {
  min-height: 22px;
  margin: 0;
  color: #a12c24;
}

.admin-login-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 28, 22, 0.58);
  backdrop-filter: blur(8px);
}

.admin-login-card {
  width: min(390px, 100%);
  padding: 24px;
  border: 1px solid rgba(47, 107, 60, 0.18);
  border-radius: 8px;
  background: #fffaf1;
  color: #172019;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.admin-login-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.admin-login-card p {
  margin: 0 0 18px;
  color: #5f665d;
  line-height: 1.45;
}

.admin-login-card label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.admin-login-card input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #d8cdb9;
  border-radius: 6px;
  background: #fff;
  color: #172019;
  font: inherit;
}

.admin-login-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.admin-login-actions button {
  min-height: 44px;
  border: 1px solid rgba(47, 107, 60, 0.2);
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-login-actions button[type="submit"] {
  border-color: #2f6b3c;
  background: #2f6b3c;
  color: #fff;
}

.admin-login-actions button[type="button"] {
  background: transparent;
  color: #172019;
}

.admin-back-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
}

.admin-panel {
  padding: 22px;
}

.admin-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-head h2 {
  margin: 0;
  font-size: 1.8rem;
}

.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: grid;
  gap: 16px;
}

.admin-add-product {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: #f7f4ee;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-add-product label:nth-child(4) {
  grid-column: span 2;
}

.admin-product-list,
.admin-articles,
.admin-leads {
  display: grid;
  gap: 10px;
}

.admin-row,
.lead-row {
  display: grid;
  grid-template-columns: 1.1fr 0.5fr 0.7fr 1fr;
  gap: 10px;
  padding: 12px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-description {
  grid-column: 1 / -1;
}

.admin-security {
  display: grid;
  gap: 16px;
  max-width: 720px;
  padding: 18px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-security h3,
.admin-security p {
  margin: 0;
}

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

.admin-security-note,
.admin-security-status {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-security-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.admin-security-status[data-state="error"] {
  color: #a12c24;
}

.admin-security-status[data-state="success"] {
  color: var(--green);
}

.lead-row {
  grid-template-columns: 0.8fr 0.8fr 1.4fr;
}

.lead-row span {
  color: var(--muted);
}

.empty-state {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.footer-consent-button {
  width: fit-content;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-panel {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px;
  color: #fffdf8;
  background: #10271e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.consent-panel[hidden] {
  display: none;
}

.consent-copy {
  min-width: 0;
}

.consent-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.consent-copy p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 253, 248, 0.8);
  font-size: 0.9rem;
}

.consent-copy a {
  color: #b5d77e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 8px;
}

.consent-actions .button {
  background: #3f7f1e;
  border-color: #3f7f1e;
  white-space: nowrap;
}

.consent-actions .ghost-button {
  color: #fffdf8;
  border-color: rgba(255, 255, 255, 0.32);
  white-space: nowrap;
}

.consent-essential {
  padding: 8px 10px;
  color: rgba(255, 253, 248, 0.76);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.privacy-main {
  min-height: 70vh;
  padding: 72px 0;
}

.privacy-content {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

.privacy-content h1 {
  margin: 16px 0 22px;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1;
}

.privacy-content h2 {
  margin: 34px 0 10px;
  font-size: 1.35rem;
}

.privacy-content p,
.privacy-content li {
  color: var(--ink-soft);
}

.privacy-content .button {
  margin-top: 22px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.article-page {
  background: #f7f6ef;
}

.article-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 10px 34px;
  background: rgba(251, 250, 244, 0.96);
  border-bottom: 1px solid rgba(16, 39, 30, 0.12);
  backdrop-filter: blur(18px);
}

.article-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

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

.article-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-language select {
  min-height: 40px;
  padding: 8px 30px 8px 10px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.article-main {
  padding: 58px 0 76px;
}

.article-story {
  width: min(100% - 36px, 980px);
  margin: 0 auto;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.article-breadcrumbs a {
  color: var(--forest);
}

.article-heading {
  max-width: 880px;
}

.article-heading h1 {
  max-width: 900px;
  margin: 12px 0 18px;
  font-size: 3.45rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.article-deck {
  max-width: 780px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.25rem;
  line-height: 1.55;
}

.article-body {
  width: min(100%, 760px);
  margin: 44px auto 0;
  color: #26392f;
  font-size: 1.08rem;
  line-height: 1.78;
}

.article-body h2 {
  margin: 42px 0 12px;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding-left: 24px;
}

.article-body li {
  padding-left: 4px;
}

.article-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin: 56px 0 34px;
  padding: 28px;
  color: #fffaf0;
  background: var(--forest);
  border-radius: 8px;
}

.article-cta h2,
.article-cta p {
  margin: 0;
}

.article-cta h2 {
  margin: 5px 0 8px;
  font-size: 1.65rem;
}

.article-cta > div > p:last-child {
  color: rgba(255, 250, 240, 0.76);
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-cta .button {
  color: var(--ink);
  background: #fffaf0;
  border-color: #fffaf0;
  box-shadow: none;
}

.article-cta .ghost-button {
  color: #fffaf0;
  border-color: rgba(255, 250, 240, 0.4);
}

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

.article-pager a {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-pager a:last-child {
  text-align: right;
}

.article-pager span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.article-pager strong {
  align-self: end;
  line-height: 1.25;
}

.article-footer p {
  max-width: 680px;
}

@media (max-width: 1320px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 24px;
  }

  .nav,
  .header-actions {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .hero-points,
  .quick-grid,
  .calc-layout,
  .payment-layout,
  .lead-layout,
  .production-layout,
  .dealer-cta {
    grid-template-columns: 1fr 1fr;
  }

  .quick-grid > div:first-child,
  .calc-layout > div:first-child {
    grid-column: 1 / -1;
  }

  .product-grid,
  .article-grid,
  .dealer-list,
  .dealer-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .buyer-grid,
  .delivery-timeline,
  .contract-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-site-header {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    gap: 12px;
    padding: 10px 14px 14px;
  }

  .brand-logo {
    width: 160px;
  }

  .dealer-mark {
    max-width: 160px;
    font-size: 0.58rem;
  }

  .article-site-header {
    position: static;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 14px 14px;
  }

  .article-site-header .brand-logo {
    width: 150px;
  }

  .article-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    order: 3;
  }

  .article-nav a {
    display: grid;
    min-height: 38px;
    padding: 7px 4px;
    place-items: center;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.74rem;
    line-height: 1.08;
    text-align: center;
  }

  .article-header-actions .button {
    display: none;
  }

  .article-main {
    padding: 34px 0 54px;
  }

  .article-story {
    width: min(100% - 28px, 980px);
  }

  .article-heading h1 {
    font-size: 2.35rem;
    line-height: 1.08;
  }

  .article-deck {
    font-size: 1.06rem;
  }

  .article-body {
    margin-top: 32px;
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-body h2 {
    margin-top: 34px;
    font-size: 1.42rem;
  }

  .article-cta,
  .article-pager {
    grid-template-columns: 1fr;
  }

  .article-cta {
    padding: 22px;
  }

  .article-cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .article-pager a:last-child {
    text-align: left;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    overflow: visible;
    font-size: 0.74rem;
  }

  .nav a {
    display: grid;
    min-height: 38px;
    padding: 7px 5px;
    place-items: center;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 8px;
    line-height: 1.08;
    text-align: center;
  }

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

  .header-actions {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    align-items: end;
    width: 100%;
    gap: 8px;
    overflow: visible;
  }

  .language-control {
    min-width: 0;
  }

  .order-phone {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 7px 9px;
  }

  .order-phone strong {
    font-size: 0.88rem;
  }

  .header-messengers {
    align-self: end;
  }

  .messenger-link {
    width: 52px;
    height: 52px;
  }

  .header-social {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .header-social .social-link {
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .header-social .social-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background: rgba(17, 23, 19, 0.72);
  }

  .hero-content {
    width: min(100% - 28px, 1180px);
    padding: 82px 0 52px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

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

  .hero-points {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .hero-points div {
    min-height: 76px;
    padding: 14px;
  }

  .section,
  .quick-order,
  .production-band,
  .lead-section {
    padding: 56px 0;
  }

  .buyers-section {
    padding-bottom: 38px;
  }

  .dealers-section {
    padding-top: 42px;
  }

  .section-inner {
    width: min(100% - 28px, 1180px);
  }

  .heading-row,
  .quick-grid,
  .calc-layout,
  .payment-layout,
  .lead-layout,
  .production-layout,
  .dealer-layout,
  .dealer-cta,
  .dealer-list,
  .dealer-benefits,
  .product-grid,
  .buyer-grid,
  .delivery-timeline,
  .contract-grid,
  .article-grid,
  .footer-grid,
  .admin-add-product,
  .admin-row,
  .lead-row,
  .admin-security-fields {
    grid-template-columns: 1fr;
  }

  .investor-programs {
    width: 100%;
  }

  .heading-row {
    align-items: start;
  }

  .dealer-heading {
    margin-bottom: 18px;
  }

  .dealer-heading h2 {
    max-width: 100%;
  }

  .dealer-heading p {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .dealer-card {
    gap: 14px;
    padding: 18px;
  }

  .dealer-card dl div {
    padding: 10px 0;
  }

  .dealer-apply-row {
    margin-top: 14px;
  }

  .dealer-apply-button {
    width: 100%;
    min-width: 0;
    min-height: 50px;
  }

  .section-heading h2,
  .calc-layout h2,
  .production-layout h2,
  .lead-layout h2 {
    font-size: 2rem;
  }

  .product-card h3,
  .product-card p {
    min-height: 0;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .calc-result {
    position: static;
  }

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

  .footer-grid .footer-social .social-link {
    justify-content: flex-start;
    margin-right: 0;
  }

  .admin-add-product label:nth-child(4) {
    grid-column: auto;
  }

  .consent-panel {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 1fr;
    gap: 14px;
    width: auto;
    max-height: calc(100vh - 24px);
    padding: 16px;
    overflow-y: auto;
  }

  .consent-actions {
    grid-template-columns: 1fr 1fr;
  }

  .consent-actions .button,
  .consent-actions .ghost-button {
    min-width: 0;
    white-space: normal;
  }

  .consent-essential {
    grid-column: 1 / -1;
  }
}

@media (max-width: 460px) {
  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 340px) {
  .header-actions {
    grid-template-columns: 66px minmax(0, 1fr) auto;
    gap: 6px;
  }

  .order-phone {
    padding-right: 4px;
    padding-left: 4px;
  }

  .order-phone strong {
    font-size: 0.68rem;
  }

  .messenger-link {
    width: 46px;
  }
}
[hidden] {
  display: none !important;
}
