:root {
  --green: #087b6b;
  --green-dark: #075b50;
  --green-soft: #e9f5f1;
  --mint: #d7efe7;
  --ink: #132d2a;
  --text: #415b57;
  --border: #dce8e4;
  --off-white: #fbfcf9;
  --sand: #f5f1e8;
  --accent: #e89338;
  --shadow: 0 14px 44px rgba(12, 63, 55, .09);
  --radius: 26px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--off-white);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  line-height: 1.85;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 42px)); margin: 0 auto; }
.section { padding: 94px 0; scroll-margin-top: 88px; }
.skip-link { position: fixed; inset-inline-start: 20px; top: -60px; background: var(--green); color: white; padding: 8px 16px; border-radius: 10px; z-index: 999; }
.skip-link:focus { top: 10px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: .92rem; font-weight: 700; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 4px; }
.eyebrow.light { color: #bde9dc; }
.btn { min-height: 54px; padding: 12px 27px; border-radius: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; transition: .2s ease; }
.btn-primary { color: white; background: var(--green); box-shadow: 0 10px 25px rgba(8,123,107,.20); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-secondary { border: 1px solid var(--border); background: white; color: var(--green-dark); }
.btn-secondary:hover { border-color: var(--green); }
.btn.full { width: 100%; border: 0; }

/* Header */
.site-header { background: rgba(251,252,249,.92); backdrop-filter: blur(15px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(220,232,228,.7); }
.nav { height: 82px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 43px; height: 43px; background: var(--green); color: #fff; border-radius: 13px; font-size: 27px; line-height: 1; font-weight: 800; font-family: Arial, sans-serif; }
.brand strong { display: block; font-size: 1.27rem; line-height: 1.1; color: var(--green-dark); }
.brand small { font-size: .7rem; color: var(--text); line-height: 1; }
.main-nav { display: flex; align-items: center; gap: 27px; font-weight: 500; color: var(--text); }
.main-nav a:hover { color: var(--green); }
.header-phone { direction: ltr; background: var(--green-soft); color: var(--green-dark); font-weight: 700; padding: 8px 17px; border-radius: 99px; }
.menu-toggle { display: none; background: white; border: 1px solid var(--border); border-radius: 10px; padding: 7px 14px; }
.language-switch { display: inline-flex; align-items: center; padding: 4px; gap: 3px; border: 1px solid var(--border); background: #fff; border-radius: 999px; white-space: nowrap; }
.language-switch a { min-width: 48px; text-align: center; padding: 5px 10px; border-radius: 999px; color: var(--text); font-size: .8rem; font-weight: 700; line-height: 1.45; }
.language-switch a.active { background: var(--green); color: #fff; }
.language-switch a:not(.active):hover { background: var(--green-soft); color: var(--green-dark); }

/* Hero */
.hero { padding: 52px 0 74px; overflow: hidden; background: radial-gradient(circle at 75% 18%, #d9f2ea 0, transparent 33%), linear-gradient(180deg,#fbfcf9 0%,#f5f9f6 100%); }
.hero-grid { min-height: 620px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 25px; }
.hero h1 { margin: 0 0 20px; font-size: clamp(2.5rem,4.6vw,3.65rem); line-height: 1.28; letter-spacing: -.05em; }
.hero h1 span { color: var(--green); }
.hero p { color: var(--text); font-size: 1.08rem; max-width: 590px; margin: 0 0 32px; }
.shipping-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--green-dark); background: var(--green-soft); border: 1px solid #d0e9e1; padding: 7px 14px; border-radius: 999px; font-size: .84rem; font-weight: 700; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 13px; margin-bottom: 42px; }
.hero-info { display: flex; gap: 0; max-width: 630px; background: #fff; padding: 16px 9px; border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.hero-info div { flex: 1; padding: 3px 17px; border-inline-end: 1px solid var(--border); }
.hero-info div:last-child { border-inline-end: 0; }
.hero-info strong { display: block; color: var(--green-dark); font-size: 1rem; }
.hero-info span { color: var(--text); font-size: .82rem; }
.hero-visual { position: relative; height: 590px; }
.shape { position: absolute; inset: 56px 5% 42px 7%; border-radius: 46% 54% 50% 50%; background: #e6f3ef; }
.shape::after { content: ""; position: absolute; bottom: 18px; right: 18%; width: 62%; height: 28px; background: rgba(7,91,80,.10); filter: blur(17px); border-radius: 50%; }
.product-hero { position: absolute; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(18,45,42,.13)); }
.product-a { width: 380px; top: 36px; right: 62px; z-index: 3; }
.product-b { width: 252px; bottom: 30px; right: 2px; z-index: 4; }
.product-c { width: 245px; bottom: 17px; left: 8px; z-index: 2; }

/* Features */
.features { margin-top: -28px; position: relative; z-index: 4; }
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.feature-grid article { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 25px 22px 21px; box-shadow: 0 8px 22px rgba(18,45,42,.04); }
.feature-grid article span { color: var(--green); background: var(--green-soft); display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-weight: 800; margin-bottom: 13px; }
.feature-grid h2 { font-size: 1.05rem; margin: 0 0 5px; }
.feature-grid p { color: var(--text); font-size: .89rem; margin: 0; line-height: 1.8; }

/* Products */
.products { background: white; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 34px; }
.section-heading h2, .consult h2, .order h2, .about h2 { margin: 0; font-size: clamp(1.7rem,3vw,2.25rem); line-height: 1.45; letter-spacing: -.04em; }
.catalog-link { white-space: nowrap; color: var(--green); font-weight: 700; border-bottom: 1px dashed var(--green); padding-bottom: 3px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filter { border: 1px solid var(--border); background: #fff; color: var(--text); padding: 9px 19px; border-radius: 99px; transition: .2s; }
.filter.active, .filter:hover { color: #fff; background: var(--green); border-color: var(--green); }
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.product-card { border: 1px solid var(--border); border-radius: 22px; background: #fff; overflow: hidden; transition: .2s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.product-image { background: #f7faf8; aspect-ratio: 1 / .88; display: grid; place-items: center; padding: 8px; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-body { padding: 17px 17px 16px; display: flex; flex-direction: column; flex: 1; }
.product-tag { width: max-content; font-size: .73rem; color: var(--green-dark); background: var(--green-soft); border-radius: 99px; padding: 2px 10px; margin-bottom: 9px; }
.product-body h3 { font-size: 1.04rem; margin: 0 0 6px; }
.product-body p { color: var(--text); font-size: .86rem; line-height: 1.8; margin: 0 0 17px; flex: 1; }
.card-actions { display: flex; gap: 7px; }
.card-actions button { flex: 1; border-radius: 10px; min-height: 42px; font-size: .82rem; font-weight: 700; border: 1px solid var(--border); background: white; color: var(--green-dark); }
.card-actions .request { background: var(--green); color: white; border-color: var(--green); }

/* Consultation */
.consult { background: var(--green-dark); color: #fff; }
.consult-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 62px; align-items: center; }
.consult p { color: #d0e8e2; margin: 20px 0; font-size: 1.02rem; }
.consult ul { margin: 25px 0 0; padding-inline-start: 20px; padding-inline-end: 0; color: #e5f3ef; line-height: 2.2; }
.panel-form, .order-form { background: #fff; color: var(--ink); padding: 28px; border-radius: 25px; display: grid; gap: 16px; box-shadow: 0 19px 48px rgba(1,34,29,.18); }
label { display: grid; gap: 6px; color: var(--ink); font-size: .9rem; font-weight: 600; }
input:not([type="checkbox"]), textarea, select { width: 100%; border: 1px solid #d6e3df; border-radius: 11px; padding: 10px 13px; min-height: 48px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(8,123,107,.12); }
.two-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.privacy { color: #758b87; font-size: .77rem; line-height: 1.7; text-align: center; margin: 0; }
.honey { display: none !important; }

/* Order */
.order { background: #f4f8f5; }
.order-grid { display: grid; grid-template-columns: .83fr 1.17fr; gap: 58px; align-items: flex-start; }
.order-copy { position: sticky; top: 122px; }
.order-copy p { color: var(--text); font-size: 1.01rem; margin: 19px 0 31px; }
.contact-card { background: white; border: 1px solid var(--border); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 5px; max-width: 355px; }
.contact-card span { color: var(--text); font-size: .88rem; }
.contact-card a { color: var(--green); font-size: 1.8rem; font-weight: 800; text-align: start; }
.contact-card small { color: var(--text); }
.checkbox-field { grid-template-columns: 22px 1fr; align-items: center; align-content: center; gap: 8px; margin-top: 23px; font-size: .84rem; font-weight: 500; }
.checkbox-field input { width: 18px; height: 18px; accent-color: var(--green); }

/* About */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 52px; }
.about-grid img { border: 1px solid var(--border); border-radius: 25px; background: white; }
.about-grid p { color: var(--text); margin: 18px 0; }
.about-grid .note { background: var(--sand); padding: 14px 17px; border-radius: 14px; font-size: .9rem; margin-bottom: 27px; }

/* Contact/Footer */
.contact { padding-top: 0; }
.contact-inner { border-radius: 29px; background: var(--green); color: white; padding: 42px 52px; display: flex; align-items: center; gap: 40px; }
.contact-inner h2 { font-size: 1.55rem; margin: 0 0 3px; }
.contact-inner p { margin: 0; color: #cde9e3; }
.large-phone { direction: ltr; margin-inline-start: auto; font-size: clamp(1.35rem,3vw,2rem); font-weight: 800; white-space: nowrap; }
.contact-inner .btn-primary { background: white; color: var(--green-dark); }
.footer { border-top: 1px solid var(--border); padding: 42px 0 84px; color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr .7fr; align-items: center; gap: 25px; }
.footer strong { color: var(--ink); font-size: 1.1rem; }
.footer p { margin: 4px 0 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 19px; }
.footer nav a:hover { color: var(--green); }
.footer-phone { display: grid; justify-content: end; }
.footer-phone a { color: var(--green); font-weight: 800; font-size: 1.14rem; }
.copyright { text-align: center; font-size: .8rem; margin-top: 39px; color: #718682; }
.mobile-actions { display: none; }

/* Dialog */
.product-dialog { width: min(820px, calc(100% - 30px)); border: 0; border-radius: 25px; padding: 0; overflow: hidden; box-shadow: 0 28px 75px rgba(0,0,0,.23); }
.product-dialog::backdrop { background: rgba(4,26,22,.62); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; border: 0; background: white; box-shadow: 0 2px 13px rgba(0,0,0,.1); width: 40px; height: 40px; border-radius: 50%; font-size: 25px; color: var(--green-dark); }
.dialog-content { display: grid; grid-template-columns: 46% 54%; min-height: 420px; }
.dialog-image { display: grid; place-items: center; padding: 20px; background: #f5faf7; }
.dialog-image img { width: 100%; max-height: 390px; object-fit: contain; }
.dialog-text { padding: 43px 31px 32px; }
.dialog-text h2 { margin: 0 0 10px; font-size: 1.55rem; }
.dialog-text p { color: var(--text); margin: 0 0 17px; }
.dialog-text ul { padding-inline-start: 19px; padding-inline-end: 0; margin: 0 0 25px; color: var(--text); }


/* Direction-aware refinements for English and Arabic pages */
html[dir="ltr"] body { font-family: "Vazirmatn", Arial, sans-serif; }
html[dir="ltr"] .hero h1, html[dir="ltr"] .section-heading h2, html[dir="ltr"] .consult h2, html[dir="ltr"] .order h2, html[dir="ltr"] .about h2 { letter-spacing: -.03em; }
html[dir="ltr"] .shape::after { right: auto; inset-inline-start: 18%; }
html[dir="ltr"] .product-a { right: auto; inset-inline-end: 62px; }
html[dir="ltr"] .product-b { right: auto; inset-inline-end: 2px; }
html[dir="ltr"] .product-c { left: auto; inset-inline-start: 8px; }

@media (max-width: 1020px) {
  .main-nav, .header-phone { display: none; }
  .nav { gap: 12px; }
  .language-switch a { min-width: 42px; padding-inline: 8px; }
  .menu-toggle { display: block; }
  .main-nav.open { position: absolute; top: 81px; inset-inline: 21px; display: flex; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border: 1px solid var(--border); padding: 10px; border-radius: 16px; box-shadow: var(--shadow); }
  .main-nav.open a { padding: 9px 14px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { padding-top: 28px; }
  .hero-visual { height: 500px; max-width: 560px; margin: 0 auto; width: 100%; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .consult-grid, .order-grid, .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .order-copy { position: static; }
  .contact-inner { flex-wrap: wrap; }
  .large-phone { margin-inline-start: 0; }
}
@media (max-width: 720px) {
  body { padding-bottom: 66px; }
  .container { width: min(100% - 30px, 1180px); }
  .section { padding: 65px 0; }
  .nav { height: 70px; }
  .main-nav.open { top: 70px; }
  .brand strong { font-size: 1.1rem; }
  .brand small { display: none; }
  .language-switch a { min-width: auto; padding-inline: 8px; font-size: .75rem; }
  .brand-mark { width: 39px; height: 39px; }
  .hero { padding: 24px 0 35px; }
  .hero-grid { min-height: auto; }
  .hero h1 { font-size: 2.04rem; }
  .hero p { font-size: .95rem; }
  .shipping-badge { display: flex; width: fit-content; font-size: .77rem; line-height: 1.6; border-radius: 16px; }
  .hero-actions { flex-direction: column; margin-bottom: 25px; }
  .hero-info { display: grid; grid-template-columns: 1fr; }
  .hero-info div { border-inline-end: 0; border-bottom: 1px solid var(--border); }
  .hero-info div:last-child { border-bottom: 0; }
  .hero-visual { height: 370px; }
  .product-a { width: 255px; right: 36px; }
  .product-b { width: 162px; }
  .product-c { width: 162px; }
  .features { margin-top: 0; padding-top: 24px; }
  .feature-grid, .product-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .feature-grid article { padding: 18px 15px; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .product-body { padding: 13px; }
  .card-actions { flex-direction: column; }
  .panel-form, .order-form { padding: 18px 15px; border-radius: 18px; }
  .two-fields { grid-template-columns: 1fr; }
  .checkbox-field { margin-top: 0; }
  .about-grid { gap: 28px; }
  .contact-inner { padding: 28px 19px; gap: 17px; flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-phone { justify-content: flex-start; }
  .mobile-actions { position: fixed; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr 1.15fr 1fr; background: white; border-top: 1px solid var(--border); z-index: 60; padding: 7px 8px; gap: 7px; }
  .mobile-actions a { height: 48px; display: grid; place-items: center; border-radius: 10px; font-size: .82rem; font-weight: 700; color: var(--green-dark); background: var(--green-soft); }
  .mobile-actions .main-action { color: white; background: var(--green); }
  .dialog-content { grid-template-columns: 1fr; }
  .dialog-image { height: 245px; }
  .dialog-text { padding: 25px 19px; }
}
@media (max-width: 460px) {
  .product-grid { grid-template-columns: 1fr; }
}


/* Knowledge Centre and educational article pages */
.blog-hero {
  padding: 82px 0 66px;
  background: radial-gradient(circle at 18% 10%, #ddf3ec 0, transparent 38%), linear-gradient(180deg,#fbfcf9,#f3f8f5);
  border-bottom: 1px solid var(--border);
}
.blog-hero h1 { margin: 0 0 18px; font-size: clamp(2.15rem,4vw,3.25rem); line-height: 1.35; letter-spacing: -.04em; }
.blog-hero p { color: var(--text); max-width: 840px; font-size: 1.07rem; margin: 0 0 28px; }
.blog-stats { display: inline-flex; align-items: center; gap: 12px; background: white; border: 1px solid var(--border); padding: 12px 20px; border-radius: 999px; color: var(--text); }
.blog-stats strong { color: var(--green); font-size: 1.55rem; }
.blog-library { padding-top: 58px; }
.blog-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 33px; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: 23px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card-image { height: 205px; display: grid; place-items: center; background: #f3f8f5; }
.blog-card-image img { height: 192px; width: 100%; object-fit: contain; padding: 12px; }
.blog-card-body { padding: 22px 21px 19px; display: flex; flex-direction: column; height: 100%; }
.article-category { display: inline-flex; align-items: center; width: fit-content; background: var(--green-soft); color: var(--green-dark); border-radius: 99px; padding: 4px 12px; font-size: .78rem; font-weight: 700; margin-bottom: 13px; }
.blog-card h2 { font-size: 1.13rem; line-height: 1.55; margin: 0 0 12px; }
.blog-card h2 a:hover { color: var(--green); }
.blog-card p { color: var(--text); font-size: .9rem; margin: 0 0 21px; line-height: 1.8; }
.card-bottom { margin-top: auto; border-top: 1px solid var(--border); padding-top: 13px; display: flex; justify-content: space-between; color: #70827f; font-size: .82rem; }
.card-bottom a { color: var(--green); font-weight: 700; }
.blog-contact-strip { background: var(--green); color: white; padding: 54px 0 62px; }
.blog-contact-strip .container { max-width: 850px; text-align: center; }
.blog-contact-strip h2 { font-size: 1.85rem; margin: 0 0 9px; }
.blog-contact-strip p { color: #cae9e1; margin: 0 auto 28px; max-width: 690px; }
.blog-contact-strip .btn-primary { background: white; color: var(--green-dark); }

/* Article layout */
.article-header { padding-top: 44px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; color: #70827f; font-size: .83rem; margin-bottom: 36px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--green); }
.article-head-grid { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 52px; align-items: center; padding-bottom: 56px; border-bottom: 1px solid var(--border); }
.article-head-grid h1 { margin: 0 0 19px; font-size: clamp(2rem,3.4vw,2.75rem); line-height: 1.42; letter-spacing: -.045em; }
.article-lead { margin: 0 0 24px; color: var(--text); font-size: 1.04rem; max-width: 740px; }
.article-meta { display: flex; gap: 10px; color: #70827f; font-size: .87rem; flex-wrap: wrap; }
.article-cover { height: 350px; background: #f1f7f4; display: grid; place-items: center; border-radius: 28px; border: 1px solid var(--border); }
.article-cover img { max-height: 330px; width: 100%; object-fit: contain; padding: 12px; }
.article-layout { display: grid; grid-template-columns: minmax(0,755px) minmax(260px,340px); gap: 54px; align-items: start; padding-top: 52px; padding-bottom: 86px; }
.article-body { color: var(--ink); }
.article-body p { color: var(--text); margin: 0 0 18px; }
.article-body .opening { font-size: 1.08rem; color: var(--ink); line-height: 2.05; margin: 0 0 36px; }
.article-body section { margin-bottom: 42px; }
.article-body h2 { font-size: 1.43rem; line-height: 1.55; margin: 0 0 15px; }
.article-body ul, .article-body ol { color: var(--text); margin: 0; padding-inline-start: 23px; }
.article-body li { margin-bottom: 9px; padding-inline-start: 4px; }
.check-list { list-style: none; padding-inline-start: 0 !important; }
.check-list li { position: relative; padding-inline-start: 29px; }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: var(--green); font-weight: 900; }
.decision-box { background: var(--green-soft); border-radius: 22px; padding: 28px 29px 22px; border: 1px solid #d6ebe4; }
.decision-box h2 { color: var(--green-dark); }
.warning-list li::marker { color: var(--accent); }
.faq details { border-bottom: 1px solid var(--border); padding: 13px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq details p { margin: 10px 0 0; }
.related-products { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 20px 0 14px; }
.related-product { display: grid; grid-template-columns: 70px 1fr; gap: 8px; align-items: center; padding: 10px 9px; border: 1px solid var(--border); background: #fff; border-radius: 15px; font-weight: 700; color: var(--green-dark); font-size: .86rem; }
.related-product:hover { border-color: var(--green); }
.related-product img { height: 62px; width: 65px; object-fit: contain; }
.small-note { font-size: .84rem; background: #fbf6ed; border-radius: 13px; padding: 12px 15px; border: 1px solid #efe5d3; }
.article-references { background: #f6f8f5; padding: 27px 27px 19px; border-radius: 20px; }
.article-references a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-references p { font-size: .87rem; margin-top: 18px; }
.article-pagination { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--border); padding-top: 25px; margin-top: 54px; }
.article-pagination a { color: var(--green); font-weight: 700; }
.article-aside { position: sticky; top: 113px; }
.cta-panel { background: white; padding: 29px 25px; border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.cta-panel h2 { margin: 0 0 13px; font-size: 1.3rem; line-height: 1.55; }
.cta-panel p { color: var(--text); font-size: .9rem; margin: 0 0 22px; }
.cta-panel .btn { font-size: .9rem; margin-bottom: 17px; }
.aside-phone { display: block; color: var(--green-dark); font-size: 1.25rem; font-weight: 800; text-align: center; padding: 11px 0 5px; direction: ltr; }
.cta-panel small { display: block; color: var(--text); text-align: center; }
.all-articles-link { display: block; margin-top: 14px; text-align: center; color: var(--green); font-weight: 700; }

/* Home knowledge teaser */
.knowledge-teaser { background: #f2f8f5; }
.knowledge-teaser .section-heading { margin-bottom: 34px; }
.teaser-articles { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.teaser-article { background: white; border: 1px solid var(--border); border-radius: 19px; padding: 23px; }
.teaser-article span { color: var(--green); font-size: .8rem; font-weight: 700; }
.teaser-article h3 { font-size: 1.11rem; line-height: 1.65; margin: 10px 0 9px; }
.teaser-article p { color: var(--text); font-size: .89rem; margin: 0 0 13px; }
.teaser-article a { color: var(--green); font-weight: 700; font-size: .88rem; }

@media (max-width: 1020px) {
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .article-head-grid { grid-template-columns: 1fr 270px; gap: 27px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .cta-panel { max-width: 590px; }
  .teaser-articles { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .blog-hero { padding: 48px 0 44px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-image { height: 184px; }
  .article-header { padding-top: 22px; }
  .breadcrumb { margin-bottom: 22px; }
  .article-head-grid { grid-template-columns: 1fr; padding-bottom: 33px; }
  .article-cover { height: 265px; order: -1; }
  .article-cover img { max-height: 250px; }
  .article-layout { padding-top: 32px; padding-bottom: 53px; gap: 28px; }
  .article-body section { margin-bottom: 34px; }
  .article-body h2 { font-size: 1.24rem; }
  .decision-box, .article-references { padding: 21px 18px 15px; }
  .related-products { grid-template-columns: 1fr; }
  .article-pagination { flex-direction: column; }
}

/* V4: content-rich editorial article components */
.expanded-toc { margin: 34px 0; padding: 24px 28px; background: #f3f8f4; border: 1px solid #d9e9de; border-radius: 20px; }
.expanded-toc strong { display: block; margin-bottom: 12px; color: var(--green-dark); font-size: 1.08rem; }
.expanded-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 29px; margin: 0; padding-inline-start: 21px; }
.expanded-toc a { color: var(--text); text-decoration: none; line-height: 1.75; }
.expanded-toc a:hover { color: var(--green); }
.article-body section { scroll-margin-top: 96px; }
.article-body p { line-height: 2.05; }
.longform-highlight, .technical-callout, .regional-callout { margin: 31px 0; padding: 25px 28px; border-radius: 20px; }
.longform-highlight { background: #edf8f1; border: 1px solid #d1ead8; }
.technical-callout { background: #f5f9f6; border-inline-start: 5px solid #177450; }
.regional-callout { background: #fff8e8; border: 1px solid #eddcad; }
.article-table-wrap { overflow-x: auto; margin: 18px 0 27px; border-radius: 15px; }
.article-table { width: 100%; min-width: 590px; border-collapse: collapse; font-size: .94rem; line-height: 1.8; }
.article-table th { padding: 13px 15px; background: #155c45; color: #fff; text-align: start; }
.article-table td { padding: 13px 15px; border: 1px solid #deebe2; vertical-align: top; }
.article-table tbody tr:nth-child(even) { background: #f7faf8; }
.expanded-sources { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 25px; }
.expanded-sources li { margin-bottom: 9px; }
@media (max-width: 720px) {
  .expanded-toc { padding: 19px 18px; }
  .expanded-toc ol { grid-template-columns: 1fr; }
  .longform-highlight, .technical-callout, .regional-callout { padding: 20px 17px; }
}

/* V5: German brand badge and official email contacts */
.german-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 8px;
  padding: 9px 14px;
  border: 1px solid rgba(21, 92, 69, .18);
  background: rgba(255, 255, 255, .82);
  border-radius: 999px;
  color: #164734;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}
.german-flag-circle {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, .18);
  flex: 0 0 auto;
}
.german-flag-circle span { display: block; width: 100%; height: 33.333%; }
.german-flag-circle span:nth-child(1) { background: #000; }
.german-flag-circle span:nth-child(2) { background: #dd0000; }
.german-flag-circle span:nth-child(3) { background: #ffce00; }
.email-contact-stack {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.email-line {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.email-line:hover { text-decoration: underline; }

/* V6: move official emails below the large contact/order CTA block */
.header .email-contact-stack,
.topbar .email-contact-stack,
.site-header .email-contact-stack,
.navbar .email-contact-stack {
  display: none !important;
}
.post-cta-email-panel {
  padding: 0 24px 58px;
  margin-top: -18px;
}
.post-cta-email-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 28px;
  border-radius: 22px;
  background: #f4fbf7;
  border: 1px solid #d7ebe1;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .045);
}
.post-cta-email-card h2 {
  margin: 0 0 14px;
  color: #12624d;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}
.post-cta-email-card p {
  margin: 8px 0;
  overflow-wrap: anywhere;
  line-height: 1.85;
}
.post-cta-email-card a {
  color: #075f4c;
  font-weight: 800;
  text-decoration: none;
}
.post-cta-email-card a:hover {
  text-decoration: underline;
}
@media (max-width: 720px) {
  .post-cta-email-panel { padding: 0 14px 42px; margin-top: -10px; }
  .post-cta-email-card { padding: 20px 16px; text-align: start; }
}

/* V7: contact email belongs inside the main green CTA block */
.post-cta-email-panel { display: none !important; }
.contact-inner .cta-email {
  direction: ltr;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
}
.contact-inner .cta-email span {
  direction: rtl;
  unicode-bidi: isolate;
  font-weight: 700;
  opacity: .86;
}
html[lang="en"] .contact-inner .cta-email span {
  direction: ltr;
}
.contact-inner .cta-email:hover {
  background: rgba(255, 255, 255, .18);
}
@media (max-width: 900px) {
  .contact-inner .cta-email {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* V8: place contact email and social ID directly under the phone number in the green CTA */
.contact-inner .cta-email {
  display: none !important;
}
.contact-inner .cta-contact-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  min-width: 310px;
}
.contact-inner .cta-contact-stack .large-phone {
  margin: 0;
  line-height: 1.1;
}
.contact-inner .cta-email-under-phone {
  direction: ltr;
  unicode-bidi: isolate;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  overflow-wrap: anywhere;
  line-height: 1.55;
  font-size: clamp(.86rem, 1.25vw, 1rem);
}
.contact-inner .cta-email-under-phone span {
  direction: rtl;
  unicode-bidi: isolate;
  font-weight: 700;
  opacity: .9;
}
html[lang="en"] .contact-inner .cta-email-under-phone span {
  direction: ltr;
}
.contact-inner .cta-email-under-phone:hover {
  text-decoration: underline;
}
.contact-inner .cta-social-line {
  color: rgba(255, 255, 255, .94);
  font-weight: 700;
  line-height: 1.75;
  max-width: 430px;
  font-size: clamp(.86rem, 1.2vw, 1rem);
}
.contact-inner .cta-social-line span {
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .contact-inner .cta-contact-stack {
    min-width: 0;
    width: 100%;
    order: 2;
  }
}

/* V9: larger contact email and social follow text */
.contact-inner .cta-email-under-phone {
  font-size: clamp(1.05rem, 1.75vw, 1.35rem) !important;
  font-weight: 900 !important;
  letter-spacing: .01em;
}
.contact-inner .cta-social-line {
  font-size: clamp(1.02rem, 1.55vw, 1.25rem) !important;
  font-weight: 850 !important;
}
@media (max-width: 720px) {
  .contact-inner .cta-email-under-phone {
    font-size: 1.02rem !important;
  }
  .contact-inner .cta-social-line {
    font-size: 1rem !important;
  }
}

/* V10: smaller single-line social text + smooth scroll reveal */
.contact-inner .cta-social-line {
  font-size: clamp(.72rem, .92vw, .88rem) !important;
  font-weight: 750 !important;
  white-space: nowrap !important;
  max-width: none !important;
  line-height: 1.35 !important;
}
.contact-inner .cta-social-line span {
  white-space: nowrap !important;
}

/* Smooth entrance animation when elements enter the viewport */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .85s ease,
    transform .85s ease;
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-on-scroll.reveal-delay-1 { transition-delay: .08s; }
.reveal-on-scroll.reveal-delay-2 { transition-delay: .16s; }
.reveal-on-scroll.reveal-delay-3 { transition-delay: .24s; }

@media (max-width: 720px) {
  .contact-inner .cta-social-line {
    font-size: clamp(.58rem, 2.45vw, .72rem) !important;
    letter-spacing: -.02em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-on-scroll.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* V14: mobile scroll-reveal spacing fix */
@media (max-width: 760px) {
  /* Prevent whole-section reveal from creating perceived blank areas on phones */
  main > section.reveal-on-scroll,
  .contact-strip.reveal-on-scroll,
  .contact-cta.reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Keep reveal subtle on mobile for cards/images only */
  .reveal-on-scroll {
    transform: translateY(10px);
    transition:
      opacity .48s ease,
      transform .48s ease;
  }

  .reveal-on-scroll.reveal-delay-1,
  .reveal-on-scroll.reveal-delay-2,
  .reveal-on-scroll.reveal-delay-3 {
    transition-delay: 0s !important;
  }

  /* Tighten the common gap around article/knowledge and consultation blocks */
  #articles,
  #knowledge,
  .articles-section,
  .blog-section,
  .knowledge-section,
  section[id*="article"],
  section[id*="blog"],
  section[id*="knowledge"] {
    padding-bottom: 24px !important;
    margin-bottom: 0 !important;
  }

  #consultation,
  #order,
  .consultation-section,
  .order-section,
  .form-section,
  .contact-strip,
  .contact-cta {
    padding-top: 24px !important;
    margin-top: 0 !important;
  }

  .section + .section,
  main section + section {
    margin-top: 0 !important;
  }
}

/* V15: Gabrist catalogue standards section */
.standards-section{padding:64px 24px;background:radial-gradient(circle at 8% 10%,rgba(25,131,100,.08),transparent 26%),linear-gradient(180deg,#fff 0%,#f5fbf7 100%)}
.standards-inner{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:28px;align-items:center}
.standards-copy{background:#fff;border:1px solid #dceee4;border-radius:28px;padding:34px;box-shadow:0 16px 34px rgba(0,0,0,.045)}
.standards-copy .eyebrow{display:inline-flex;margin-bottom:12px;padding:7px 13px;border-radius:999px;background:#e9f7ef;color:#0d765f;font-weight:900;letter-spacing:.02em}
.standards-copy h2{margin:0 0 14px;color:#0d604d;font-size:clamp(1.65rem,3vw,2.35rem)}
.standards-copy p{color:#28473d;line-height:2;font-weight:650}
.standards-note{margin-top:14px;padding:14px 16px;border-radius:18px;background:#fff8e9;border:1px solid #ead9aa}
.standards-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.standard-card{background:#fff;border:1px solid #dceee4;border-radius:24px;padding:19px 16px;text-align:center;box-shadow:0 14px 30px rgba(0,0,0,.045)}
.standard-card img{width:76px;height:76px;object-fit:contain;margin-bottom:9px}
.standard-card h3{color:#0f604d;font-size:1rem;margin:6px 0 8px}
.standard-card p{margin:0;color:#36584f;font-size:.92rem;line-height:1.75}
@media(max-width:920px){.standards-section{padding:44px 16px}.standards-inner{grid-template-columns:1fr}.standards-copy{padding:26px 20px}}
@media(max-width:560px){.standards-grid{grid-template-columns:1fr 1fr;gap:10px}.standard-card{padding:14px 8px;border-radius:18px}.standard-card img{width:58px;height:58px}.standard-card h3{font-size:.82rem}.standard-card p{font-size:.74rem;line-height:1.55}}

/* V16: exact standards images from catalogue */
.standards-section{
  padding:64px 24px;
  background:linear-gradient(180deg,#ffffff 0%,#f6fbf8 100%);
}
.standards-header{
  max-width:920px;
  margin:0 auto 24px;
  text-align:center;
}
.standards-header .eyebrow{
  display:inline-flex;
  margin-bottom:12px;
  padding:7px 13px;
  border-radius:999px;
  background:#e9f7ef;
  color:#0d765f;
  font-weight:900;
}
.standards-header h2{
  margin:0 0 12px;
  color:#0d604d;
  font-size:clamp(1.65rem,3vw,2.35rem);
}
.standards-header p{
  line-height:1.95;
  color:#2a493f;
  font-weight:650;
}
.standards-note{
  display:inline-block;
  margin-top:8px;
  padding:12px 16px;
  border-radius:18px;
  background:#fff8e9;
  border:1px solid #ead9aa;
}
.standards-exact-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
}
.standard-exact-card{
  margin:0;
  padding:16px;
  border-radius:24px;
  background:#ffffff;
  border:1px solid #dceee4;
  box-shadow:0 14px 30px rgba(0,0,0,.045);
}
.standard-exact-card img{
  display:block;
  width:100%;
  height:auto;
  border-radius:18px;
}
@media (max-width: 720px){
  .standards-section{padding:42px 14px;}
  .standards-exact-grid{grid-template-columns:1fr;gap:12px;}
  .standard-exact-card{padding:10px;border-radius:18px;}
}

/* V17: internet-sourced standard logo cards */
.standards-internet-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
}
.standard-internet-card{
  margin:0;
  padding:18px;
  border-radius:26px;
  background:#ffffff;
  border:1px solid #dceee4;
  box-shadow:0 14px 30px rgba(0,0,0,.045);
  display:flex;
  flex-direction:column;
  gap:14px;
}
.standard-internet-image{
  min-height:142px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  border-radius:20px;
  background:#f8fbf9;
  border:1px solid #edf5ef;
}
.standard-internet-image > img{
  max-width:100%;
  max-height:118px;
  object-fit:contain;
}
.standard-internet-card figcaption h3{
  margin:0 0 8px;
  color:#0d604d;
  font-size:1.02rem;
}
.standard-internet-card figcaption p{
  margin:0 0 10px;
  color:#35584f;
  line-height:1.65;
  font-size:.9rem;
}
.standard-internet-card figcaption a{
  color:#0c7761;
  font-weight:800;
  text-decoration:none;
  font-size:.86rem;
}
.standard-internet-card figcaption a:hover{text-decoration:underline}
.made-germany-internet-mark{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  width:100%;
}
.made-germany-internet-mark img{
  width:82px;
  height:auto;
  border-radius:8px;
  box-shadow:0 6px 14px rgba(0,0,0,.10);
}
.made-germany-internet-mark strong{
  direction:ltr;
  color:#111;
  font-size:1.25rem;
  line-height:1.08;
  letter-spacing:.04em;
  font-weight:950;
}
@media (max-width:1050px){
  .standards-internet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
  .standards-internet-grid{grid-template-columns:1fr;gap:12px}
  .standard-internet-image{min-height:120px}
  .standard-internet-image > img{max-height:96px}
}

/* V18: local standard image files, clean text */
.clean-standards-header {
  margin-bottom: 24px !important;
}
.clean-standards-header h2 {
  margin-bottom: 0 !important;
}
.standards-local-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.standard-local-card {
  margin: 0;
  padding: 18px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid #dceee4;
  box-shadow: 0 14px 30px rgba(0,0,0,.045);
}
.standard-local-card img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: contain;
  padding: 10px;
  border-radius: 20px;
  background: #f8fbf9;
  border: 1px solid #edf5ef;
}
.standard-local-card figcaption h3 {
  margin: 14px 0 7px;
  color: #0d604d;
  font-size: 1.02rem;
}
.standard-local-card figcaption p {
  margin: 0;
  color: #35584f;
  line-height: 1.65;
  font-size: .9rem;
}
@media (max-width: 1050px) {
  .standards-local-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .standards-local-grid { grid-template-columns: 1fr; gap: 12px; }
  .standard-local-card { padding: 12px; }
  .standard-local-card img { height: 112px; }
}


/* V19: logo image, guidance icon refresh, and dark mode */
.brand-mark { overflow: hidden; background: #fff; border: 1px solid rgba(8,123,107,.12); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.feature-grid article .feature-icon { padding: 0; }
.feature-grid article .feature-icon svg { width: 22px; height: 22px; fill: currentColor; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--green-dark);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.theme-toggle:hover { background: var(--green-soft); }
.theme-toggle-icon { font-size: 1rem; }
.theme-toggle-text { font-size: .82rem; }
body[data-theme="dark"] {
  --green: #2ab7a3;
  --green-dark: #d6fff7;
  --green-soft: #153732;
  --mint: #102825;
  --ink: #edf7f5;
  --text: #b3cac5;
  --border: #28423f;
  --off-white: #0d1716;
  --sand: #162120;
  --accent: #f1a44c;
  --shadow: 0 18px 48px rgba(0,0,0,.34);
}
body[data-theme="dark"] .site-header,
body[data-theme="dark"] .language-switch,
body[data-theme="dark"] .menu-toggle,
body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .hero-info,
body[data-theme="dark"] .feature-grid article,
body[data-theme="dark"] .product-card,
body[data-theme="dark"] .contact-card,
body[data-theme="dark"] .panel-form,
body[data-theme="dark"] .order-form,
body[data-theme="dark"] .mobile-actions,
body[data-theme="dark"] .dialog-close,
body[data-theme="dark"] .about-grid img,
body[data-theme="dark"] .standard-local-card,
body[data-theme="dark"] .teaser-article,
body[data-theme="dark"] .blog-card,
body[data-theme="dark"] .blog-index-hero,
body[data-theme="dark"] .article-card,
body[data-theme="dark"] .toc,
body[data-theme="dark"] .share-card,
body[data-theme="dark"] .related-card,
body[data-theme="dark"] .author-card,
body[data-theme="dark"] .article-wrap {
  background: #12201f !important;
  color: var(--ink);
  border-color: var(--border);
}
body[data-theme="dark"] .site-header { background: rgba(13,23,22,.92); border-bottom-color: rgba(40,66,63,.9); }
body[data-theme="dark"] .hero { background: radial-gradient(circle at 75% 18%, rgba(42,183,163,.18) 0, transparent 33%), linear-gradient(180deg,#0d1716 0%,#12201f 100%); }
body[data-theme="dark"] .shape { background: #16312d; }
body[data-theme="dark"] .shape::after { background: rgba(0,0,0,.35); }
body[data-theme="dark"] .products,
body[data-theme="dark"] .footer,
body[data-theme="dark"] .blog-index-main,
body[data-theme="dark"] .article-main { background: #0d1716 !important; }
body[data-theme="dark"] .order,
body[data-theme="dark"] .about,
body[data-theme="dark"] .contact { background: #101c1b !important; }
body[data-theme="dark"] .product-image,
body[data-theme="dark"] .dialog-image,
body[data-theme="dark"] .language-switch a.active,
body[data-theme="dark"] .main-nav.open,
body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .btn-secondary,
body[data-theme="dark"] .contact-inner,
body[data-theme="dark"] .feature-grid article .feature-icon,
body[data-theme="dark"] .shipping-badge,
body[data-theme="dark"] .product-tag,
body[data-theme="dark"] .filter,
body[data-theme="dark"] .about-grid .note,
body[data-theme="dark"] .header-phone,
body[data-theme="dark"] .footer-phone,
body[data-theme="dark"] .language-switch a:not(.active):hover { background: #153732 !important; }
body[data-theme="dark"] .feature-grid article .feature-icon,
body[data-theme="dark"] .shipping-badge,
body[data-theme="dark"] .product-tag,
body[data-theme="dark"] .header-phone,
body[data-theme="dark"] .filter,
body[data-theme="dark"] .language-switch a:not(.active):hover,
body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .btn-secondary,
body[data-theme="dark"] .mobile-actions a { color: var(--green-dark) !important; }
body[data-theme="dark"] .btn-secondary,
body[data-theme="dark"] .filter,
body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .menu-toggle,
body[data-theme="dark"] input:not([type="checkbox"]),
body[data-theme="dark"] textarea,
body[data-theme="dark"] select { background: #12201f; color: var(--ink); border-color: var(--border); }
body[data-theme="dark"] .main-nav.open a:hover,
body[data-theme="dark"] .main-nav a:hover,
body[data-theme="dark"] .catalog-link,
body[data-theme="dark"] .contact-card a,
body[data-theme="dark"] .large-phone { color: #5ce7d4; }
body[data-theme="dark"] .dialog-text p,
body[data-theme="dark"] .dialog-text ul,
body[data-theme="dark"] .consult p,
body[data-theme="dark"] .consult ul,
body[data-theme="dark"] .privacy,
body[data-theme="dark"] .footer p,
body[data-theme="dark"] .copyright { color: var(--text); }
body[data-theme="dark"] .brand small,
body[data-theme="dark"] .hero p,
body[data-theme="dark"] .order-copy p,
body[data-theme="dark"] .about-grid p,
body[data-theme="dark"] .feature-grid p,
body[data-theme="dark"] .product-body p,
body[data-theme="dark"] .contact-card span,
body[data-theme="dark"] .contact-card small,
body[data-theme="dark"] .hero-info span,
body[data-theme="dark"] .section-intro p,
body[data-theme="dark"] .teaser-article p { color: var(--text); }
body[data-theme="dark"] .hero-info strong,
body[data-theme="dark"] .brand strong,
body[data-theme="dark"] .feature-grid h2,
body[data-theme="dark"] .product-body h3,
body[data-theme="dark"] .footer strong { color: var(--ink); }
body[data-theme="dark"] .btn-primary,
body[data-theme="dark"] .filter.active,
body[data-theme="dark"] .card-actions .request,
body[data-theme="dark"] .mobile-actions .main-action,
body[data-theme="dark"] .language-switch a.active { color: #08221f !important; }
body[data-theme="dark"] .product-dialog,
body[data-theme="dark"] .dialog-content { background: #12201f; color: var(--ink); }
body[data-theme="dark"] .dialog-close { color: var(--ink); }
@media (max-width: 1020px) {
  .theme-toggle-text { display: none; }
  .theme-toggle { padding: 9px 11px; }
}


/* V20: complete dark-mode correction for all home-page sections */
body[data-theme="dark"] {
  --green: #35c5b0;
  --green-dark: #d8fff8;
  --green-soft: #133632;
  --mint: #102825;
  --ink: #f4fbf9;
  --text: #b9cbc7;
  --border: #284943;
  --off-white: #081312;
  --sand: #13201f;
  --accent: #f0a24b;
  --shadow: 0 20px 48px rgba(0,0,0,.36);
  background: #081312 !important;
  color: #f4fbf9 !important;
}

/* Page and section backgrounds */
body[data-theme="dark"] .hero,
body[data-theme="dark"] .standards-section,
body[data-theme="dark"] .features,
body[data-theme="dark"] .knowledge-teaser,
body[data-theme="dark"] .products,
body[data-theme="dark"] .order,
body[data-theme="dark"] .about,
body[data-theme="dark"] .contact,
body[data-theme="dark"] .footer,
body[data-theme="dark"] main {
  background: #081312 !important;
  color: #f4fbf9 !important;
}
body[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 75% 18%, rgba(53,197,176,.20) 0, transparent 32%),
    linear-gradient(180deg,#081312 0%,#0d1b19 100%) !important;
}
body[data-theme="dark"] .standards-section {
  background:
    radial-gradient(circle at 8% 10%, rgba(53,197,176,.14), transparent 28%),
    linear-gradient(180deg,#081312 0%,#0c1b19 100%) !important;
}
body[data-theme="dark"] .knowledge-teaser {
  background:
    radial-gradient(circle at 50% 0%, rgba(53,197,176,.10), transparent 34%),
    #081312 !important;
}
body[data-theme="dark"] .consult {
  background:
    radial-gradient(circle at 12% 18%, rgba(53,197,176,.18), transparent 30%),
    linear-gradient(135deg,#081312 0%,#0d2421 100%) !important;
  color: #f7fffd !important;
}

/* Cards and panels */
body[data-theme="dark"] .hero-info,
body[data-theme="dark"] .feature-grid article,
body[data-theme="dark"] .standard-local-card,
body[data-theme="dark"] .teaser-article,
body[data-theme="dark"] .product-card,
body[data-theme="dark"] .contact-card,
body[data-theme="dark"] .panel-form,
body[data-theme="dark"] .order-form,
body[data-theme="dark"] .about-grid .note,
body[data-theme="dark"] .product-dialog,
body[data-theme="dark"] .dialog-content,
body[data-theme="dark"] .toc,
body[data-theme="dark"] .share-card,
body[data-theme="dark"] .related-card,
body[data-theme="dark"] .author-card,
body[data-theme="dark"] .article-wrap,
body[data-theme="dark"] .blog-card,
body[data-theme="dark"] .blog-index-hero,
body[data-theme="dark"] .article-card {
  background: #10211f !important;
  color: #f4fbf9 !important;
  border-color: #284943 !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.24) !important;
}
body[data-theme="dark"] .standard-local-card img,
body[data-theme="dark"] .product-image,
body[data-theme="dark"] .dialog-image {
  background: #153a35 !important;
  border-color: #2b5049 !important;
}
body[data-theme="dark"] .shape {
  background: #123631 !important;
}
body[data-theme="dark"] .shape::after {
  background: rgba(0,0,0,.36) !important;
}

/* Header and navigation */
body[data-theme="dark"] .site-header {
  background: rgba(8,19,18,.94) !important;
  border-bottom-color: #284943 !important;
}
body[data-theme="dark"] .main-nav,
body[data-theme="dark"] .main-nav a,
body[data-theme="dark"] .footer nav a {
  color: #d8ebe7 !important;
}
body[data-theme="dark"] .main-nav a:hover,
body[data-theme="dark"] .footer nav a:hover,
body[data-theme="dark"] .catalog-link,
body[data-theme="dark"] .teaser-article a,
body[data-theme="dark"] .contact-card a,
body[data-theme="dark"] .large-phone,
body[data-theme="dark"] .eyebrow {
  color: #35c5b0 !important;
}
body[data-theme="dark"] .brand strong {
  color: #f4fbf9 !important;
}
body[data-theme="dark"] .brand small {
  color: #b9cbc7 !important;
}
body[data-theme="dark"] .brand-mark {
  background: #f7fffc !important;
  border-color: rgba(255,255,255,.22) !important;
}
body[data-theme="dark"] .language-switch,
body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .menu-toggle,
body[data-theme="dark"] .header-phone,
body[data-theme="dark"] .main-nav.open {
  background: #10211f !important;
  color: #d8fff8 !important;
  border-color: #284943 !important;
}
body[data-theme="dark"] .language-switch a {
  color: #c9ddd9 !important;
}
body[data-theme="dark"] .language-switch a.active {
  background: #1d5f55 !important;
  color: #effffb !important;
}

/* Text contrast fixes */
body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] h4,
body[data-theme="dark"] .section-heading h2,
body[data-theme="dark"] .consult h2,
body[data-theme="dark"] .order h2,
body[data-theme="dark"] .about h2,
body[data-theme="dark"] .feature-grid h2,
body[data-theme="dark"] .product-body h3,
body[data-theme="dark"] .teaser-article h3,
body[data-theme="dark"] .standard-local-card figcaption h3,
body[data-theme="dark"] .footer strong,
body[data-theme="dark"] label {
  color: #f4fbf9 !important;
}
body[data-theme="dark"] p,
body[data-theme="dark"] li,
body[data-theme="dark"] small,
body[data-theme="dark"] .hero p,
body[data-theme="dark"] .section-heading p,
body[data-theme="dark"] .consult p,
body[data-theme="dark"] .consult ul,
body[data-theme="dark"] .knowledge-teaser p,
body[data-theme="dark"] .teaser-article p,
body[data-theme="dark"] .feature-grid p,
body[data-theme="dark"] .product-body p,
body[data-theme="dark"] .hero-info span,
body[data-theme="dark"] .standard-local-card figcaption p,
body[data-theme="dark"] .order-copy p,
body[data-theme="dark"] .about-grid p,
body[data-theme="dark"] .contact-card span,
body[data-theme="dark"] .contact-card small,
body[data-theme="dark"] .privacy,
body[data-theme="dark"] .footer,
body[data-theme="dark"] .footer p,
body[data-theme="dark"] .copyright {
  color: #b9cbc7 !important;
}
body[data-theme="dark"] .hero h1 span,
body[data-theme="dark"] .hero-info strong {
  color: #35c5b0 !important;
}
body[data-theme="dark"] .eyebrow.light {
  color: #7cebdc !important;
}

/* Forms */
body[data-theme="dark"] input:not([type="checkbox"]),
body[data-theme="dark"] textarea,
body[data-theme="dark"] select {
  background: #0a1716 !important;
  color: #f4fbf9 !important;
  border-color: #2c504a !important;
}
body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder {
  color: #7f9691 !important;
  opacity: 1 !important;
}
body[data-theme="dark"] select option {
  background: #0a1716 !important;
  color: #f4fbf9 !important;
}
body[data-theme="dark"] input:focus,
body[data-theme="dark"] textarea:focus,
body[data-theme="dark"] select:focus {
  border-color: #35c5b0 !important;
  box-shadow: 0 0 0 3px rgba(53,197,176,.18) !important;
}

/* Badges, filters, buttons */
body[data-theme="dark"] .shipping-badge,
body[data-theme="dark"] .product-tag,
body[data-theme="dark"] .feature-grid article span,
body[data-theme="dark"] .german-brand-badge,
body[data-theme="dark"] .filter,
body[data-theme="dark"] .mobile-actions a {
  background: #153a35 !important;
  color: #d8fff8 !important;
  border-color: #2b5049 !important;
}
body[data-theme="dark"] .filter.active,
body[data-theme="dark"] .filter:hover,
body[data-theme="dark"] .btn-primary,
body[data-theme="dark"] .card-actions .request,
body[data-theme="dark"] .mobile-actions .main-action {
  background: #35c5b0 !important;
  border-color: #35c5b0 !important;
  color: #061b18 !important;
}
body[data-theme="dark"] .btn-primary:hover {
  background: #57deca !important;
}
body[data-theme="dark"] .btn-secondary,
body[data-theme="dark"] .card-actions button:not(.request),
body[data-theme="dark"] .contact-inner .btn-primary {
  background: #f2fffb !important;
  color: #063c35 !important;
  border-color: #d3eee8 !important;
}
body[data-theme="dark"] .btn-secondary:hover,
body[data-theme="dark"] .card-actions button:not(.request):hover {
  background: #d9fff7 !important;
  color: #063c35 !important;
}

/* Contact/footer refinements */
body[data-theme="dark"] .contact-inner {
  background:
    radial-gradient(circle at 15% 20%, rgba(53,197,176,.18), transparent 36%),
    linear-gradient(135deg,#10211f 0%,#123b35 100%) !important;
  color: #f4fbf9 !important;
  border: 1px solid #284943 !important;
}
body[data-theme="dark"] .contact-inner p {
  color: #c9ddd9 !important;
}
body[data-theme="dark"] .footer-phone {
  background: #123b35 !important;
  color: #d8fff8 !important;
}
body[data-theme="dark"] .footer-phone span {
  color: #c9ddd9 !important;
}
body[data-theme="dark"] .footer-phone a {
  color: #35c5b0 !important;
}

/* Dialog */
body[data-theme="dark"] .product-dialog::backdrop {
  background: rgba(0,0,0,.72) !important;
}
body[data-theme="dark"] .dialog-close {
  background: #f2fffb !important;
  color: #063c35 !important;
}

/* Avoid unreadable text in any dark section caused by old hard-coded colors */
body[data-theme="dark"] .standards-section *,
body[data-theme="dark"] .knowledge-teaser *,
body[data-theme="dark"] .consult *,
body[data-theme="dark"] .footer * {
  text-shadow: none;
}


/* V21: requested dark-mode refinement: solid black, one-line phone, black footer phone, cleaner guide icon */
body[data-theme="dark"] {
  --off-white: #050807;
  --ink: #f6fffc;
  --text: #c5d4d0;
  --border: #263b37;
  background: #050807 !important;
}

/* Remove the green haze/gradient and make dark mode visually solid black */
body[data-theme="dark"] main,
body[data-theme="dark"] .hero,
body[data-theme="dark"] .standards-section,
body[data-theme="dark"] .features,
body[data-theme="dark"] .knowledge-teaser,
body[data-theme="dark"] .products,
body[data-theme="dark"] .consult,
body[data-theme="dark"] .order,
body[data-theme="dark"] .about,
body[data-theme="dark"] .contact,
body[data-theme="dark"] .footer,
body[data-theme="dark"] .blog-index-main,
body[data-theme="dark"] .article-main {
  background: #050807 !important;
  background-image: none !important;
  color: #f6fffc !important;
}

/* Keep cards readable but remove the green wash */
body[data-theme="dark"] .hero-info,
body[data-theme="dark"] .feature-grid article,
body[data-theme="dark"] .standard-local-card,
body[data-theme="dark"] .teaser-article,
body[data-theme="dark"] .product-card,
body[data-theme="dark"] .contact-card,
body[data-theme="dark"] .panel-form,
body[data-theme="dark"] .order-form,
body[data-theme="dark"] .about-grid .note,
body[data-theme="dark"] .product-dialog,
body[data-theme="dark"] .dialog-content,
body[data-theme="dark"] .toc,
body[data-theme="dark"] .share-card,
body[data-theme="dark"] .related-card,
body[data-theme="dark"] .author-card,
body[data-theme="dark"] .article-wrap,
body[data-theme="dark"] .blog-card,
body[data-theme="dark"] .blog-index-hero,
body[data-theme="dark"] .article-card {
  background: #0b1513 !important;
  background-image: none !important;
  border-color: #263b37 !important;
}

/* Product/logo image wells can stay slightly green-tinted, but no large page haze */
body[data-theme="dark"] .standard-local-card img,
body[data-theme="dark"] .product-image,
body[data-theme="dark"] .dialog-image {
  background: #10231f !important;
  border-color: #263b37 !important;
}

/* Header phone: keep it in one line */
.header-phone,
body[data-theme="dark"] .header-phone {
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  line-height: 1.1 !important;
  font-size: .86rem !important;
  padding: 8px 13px !important;
  min-width: max-content !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Footer phone box should be black, not green */
body[data-theme="dark"] .footer-phone {
  background: #050807 !important;
  border: 1px solid #263b37 !important;
  border-radius: 0 !important;
  padding: 12px 16px !important;
}
body[data-theme="dark"] .footer-phone span {
  color: #d8e6e2 !important;
}
body[data-theme="dark"] .footer-phone a {
  color: #35c5b0 !important;
  white-space: nowrap !important;
}

/* Cleaner guidance icon */
.feature-grid article .guidance-sprout-icon,
body[data-theme="dark"] .feature-grid article .guidance-sprout-icon {
  color: #35c5b0 !important;
  background: #123c35 !important;
}
.feature-grid article .guidance-sprout-icon svg {
  width: 24px !important;
  height: 24px !important;
  fill: currentColor !important;
}

/* Make CTA/contact panel black too, no green gradient */
body[data-theme="dark"] .contact-inner {
  background: #0b1513 !important;
  background-image: none !important;
  border-color: #263b37 !important;
}


/* V22: final small fixes requested */
/* In light mode, keep the guidance icon light, not dark-mode styled */
.feature-grid article .guidance-sprout-icon {
  background: var(--green-soft) !important;
  color: var(--green) !important;
}

/* In dark mode, keep the guidance icon dark and readable */
body[data-theme="dark"] .feature-grid article .guidance-sprout-icon {
  background: #123c35 !important;
  color: #35c5b0 !important;
}

/* Remove the rectangle around the footer phone in dark mode */
body[data-theme="dark"] .footer-phone {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}


/* V23: mobile fit fix + light default support */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 14px !important;
    margin-inline: auto !important;
  }

  .site-header {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible;
  }

  .nav {
    width: 100% !important;
    max-width: 100% !important;
    height: 64px !important;
    padding-inline: 8px !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
  }

  .brand {
    margin-inline-end: 0 !important;
    gap: 6px !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
  }

  .brand-mark {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    flex: 0 0 34px !important;
  }

  .brand strong {
    font-size: .95rem !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  .brand small {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 6px 9px !important;
    border-radius: 10px !important;
    font-size: .82rem !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }

  .language-switch {
    gap: 1px !important;
    padding: 3px !important;
    flex: 0 0 auto !important;
  }

  .language-switch a {
    min-width: 34px !important;
    padding: 4px 7px !important;
    font-size: .68rem !important;
  }

  .theme-toggle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 34px !important;
  }

  .theme-toggle-text {
    display: none !important;
  }

  .header-phone {
    font-size: .67rem !important;
    min-height: 34px !important;
    padding: 5px 7px !important;
    border-radius: 999px !important;
    line-height: 1 !important;
    max-width: 104px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .main-nav.open {
    top: 64px !important;
    inset-inline: 10px !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
  }

  .hero {
    padding-top: 26px !important;
  }

  .hero-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    display: block !important;
  }

  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 18px !important;
    text-align: start !important;
  }

  .hero h1 {
    max-width: 100% !important;
    font-size: clamp(1.75rem, 8.2vw, 2.15rem) !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
  }

  .hero p {
    max-width: 100% !important;
    font-size: .95rem !important;
  }

  .hero-actions,
  .hero-info,
  .shipping-badge,
  .german-brand-badge {
    max-width: 100% !important;
  }

  .hero-visual {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    margin-inline: auto !important;
  }

  .product-a {
    right: 18px !important;
    max-width: 72vw !important;
  }

  .product-b,
  .product-c {
    max-width: 46vw !important;
  }

  .feature-grid,
  .product-grid,
  .teaser-articles,
  .standards-local-grid {
    width: 100% !important;
    max-width: 100% !important;
  }

  .mobile-actions {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    grid-template-columns: 1fr 1.05fr 1fr !important;
    padding: 7px 8px !important;
    box-sizing: border-box !important;
  }

  .mobile-actions a {
    min-width: 0 !important;
    font-size: .76rem !important;
    padding-inline: 4px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 390px) {
  .nav {
    gap: 4px !important;
    padding-inline: 6px !important;
  }

  .brand strong {
    font-size: .88rem !important;
  }

  .brand-mark {
    width: 31px !important;
    height: 31px !important;
    flex-basis: 31px !important;
  }

  .language-switch a {
    min-width: 30px !important;
    padding-inline: 5px !important;
    font-size: .63rem !important;
  }

  .theme-toggle {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
    flex-basis: 31px !important;
  }

  .menu-toggle {
    padding-inline: 7px !important;
    font-size: .76rem !important;
  }

  .header-phone {
    max-width: 92px !important;
    font-size: .62rem !important;
    padding-inline: 5px !important;
  }
}


/* V24: compact globe language dropdown */
.language-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  overflow: visible;
  z-index: 80;
}

.language-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--green-dark);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.language-globe {
  font-size: 1.05rem;
  line-height: 1;
}

.language-current {
  font-size: .82rem;
}

.language-menu {
  position: absolute;
  top: calc(100% + 9px);
  inset-inline-end: 0;
  min-width: 148px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: .16s ease;
  z-index: 100;
}

.language-dropdown.open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-menu a {
  display: block;
  min-width: 0 !important;
  padding: 9px 12px !important;
  border-radius: 11px !important;
  color: var(--text) !important;
  text-align: start !important;
  font-size: .85rem !important;
  font-weight: 800;
  line-height: 1.35;
}

.language-menu a.active,
.language-menu a:hover {
  background: var(--green-soft) !important;
  color: var(--green-dark) !important;
}

/* Dark mode dropdown */
body[data-theme="dark"] .language-button,
body[data-theme="dark"] .language-menu {
  background: #10211f !important;
  border-color: #284943 !important;
  color: #d8fff8 !important;
}

body[data-theme="dark"] .language-menu a {
  color: #d8ebe7 !important;
}

body[data-theme="dark"] .language-menu a.active,
body[data-theme="dark"] .language-menu a:hover {
  background: #153a35 !important;
  color: #d8fff8 !important;
}

/* Mobile: show only the globe to save header space */
@media (max-width: 720px) {
  .language-dropdown {
    flex: 0 0 auto !important;
  }

  .language-button {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-grid !important;
    place-items: center !important;
  }

  .language-current {
    display: none !important;
  }

  .language-globe {
    font-size: .98rem !important;
  }

  .language-menu {
    top: calc(100% + 8px);
    inset-inline-end: -6px;
    min-width: 132px;
  }

  .language-menu a {
    font-size: .78rem !important;
    padding: 8px 10px !important;
  }
}

@media (max-width: 390px) {
  .language-button {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
    min-height: 31px !important;
  }
}


/* V27: fix blog/knowledge-centre dark mode hero and cards */
body[data-theme="dark"] .blog-hero,
body[data-theme="dark"] .blog-library,
body[data-theme="dark"] .blog-contact-strip,
body[data-theme="dark"] .article-header,
body[data-theme="dark"] .article-main {
  background: #050807 !important;
  background-image: none !important;
  color: #f6fffc !important;
  border-color: #263b37 !important;
}

body[data-theme="dark"] .blog-hero h1,
body[data-theme="dark"] .blog-hero h2,
body[data-theme="dark"] .blog-card h2,
body[data-theme="dark"] .blog-card h2 a,
body[data-theme="dark"] .blog-contact-strip h2,
body[data-theme="dark"] .article-head-grid h1 {
  color: #f6fffc !important;
}

body[data-theme="dark"] .blog-hero p,
body[data-theme="dark"] .blog-contact-strip p,
body[data-theme="dark"] .blog-card p,
body[data-theme="dark"] .article-lead,
body[data-theme="dark"] .breadcrumb,
body[data-theme="dark"] .article-meta,
body[data-theme="dark"] .card-bottom {
  color: #c5d4d0 !important;
}

body[data-theme="dark"] .blog-stats,
body[data-theme="dark"] .blog-card {
  background: #0b1513 !important;
  background-image: none !important;
  border-color: #263b37 !important;
  color: #c5d4d0 !important;
}

body[data-theme="dark"] .blog-stats strong,
body[data-theme="dark"] .card-bottom a,
body[data-theme="dark"] .blog-card h2 a:hover,
body[data-theme="dark"] .breadcrumb a:hover {
  color: #35c5b0 !important;
}

body[data-theme="dark"] .blog-card-image,
body[data-theme="dark"] .article-cover {
  background: #10231f !important;
  border-color: #263b37 !important;
}

body[data-theme="dark"] .article-category {
  background: #123c35 !important;
  color: #d8fff8 !important;
}

body[data-theme="dark"] .blog-contact-strip .btn-primary {
  background: #35c5b0 !important;
  color: #061b18 !important;
}


/* V28: replace Telegram/Rubika line with Follow button */
.btn-follow {
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid var(--border);
  font-size: .9rem;
  font-weight: 800;
  box-shadow: none;
}

.btn-follow:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translateY(-1px);
}

body[data-theme="dark"] .btn-follow {
  background: #10231f !important;
  color: #d8fff8 !important;
  border-color: #263b37 !important;
}

body[data-theme="dark"] .btn-follow:hover {
  background: #35c5b0 !important;
  color: #061b18 !important;
  border-color: #35c5b0 !important;
}


/* V29: hero follow button */
.hero-follow-btn {
  white-space: nowrap;
}

body[data-theme="dark"] .hero-follow-btn {
  background: #10231f !important;
  color: #d8fff8 !important;
  border-color: #263b37 !important;
}

body[data-theme="dark"] .hero-follow-btn:hover {
  background: #35c5b0 !important;
  color: #061b18 !important;
  border-color: #35c5b0 !important;
}


/* V30: product descriptions and guaranteed analyses from the catalogue */
.product-dialog {
  max-height: min(90vh, 860px);
  overflow: auto;
}

.dialog-content {
  align-items: stretch;
}

.dialog-text {
  overflow-wrap: anywhere;
}

.catalog-detail-section {
  margin: 18px 0 0;
}

.catalog-detail-section h3 {
  margin: 0 0 9px;
  font-size: .98rem;
  color: var(--green-dark);
}

.benefits-list,
.analysis-list {
  margin: 0 !important;
  padding-inline-start: 20px !important;
  padding-inline-end: 0 !important;
  color: var(--text);
}

.benefits-list {
  margin-bottom: 17px !important;
}

.analysis-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
  padding: 14px 18px 14px 34px !important;
  background: var(--green-soft);
  border: 1px solid var(--border);
  border-radius: 15px;
  font-size: .82rem;
  line-height: 1.65;
  list-style-position: outside;
}

html[dir="rtl"] .analysis-list {
  padding: 14px 34px 14px 18px !important;
}


body[data-theme="dark"] .catalog-detail-section h3 {
  color: #d8fff8 !important;
}

body[data-theme="dark"] .analysis-list {
  background: #10231f !important;
  border-color: #263b37 !important;
  color: #c5d4d0 !important;
}


@media (max-width: 720px) {
  .product-dialog {
    max-height: 92vh;
  }

  .analysis-list {
    grid-template-columns: 1fr;
    gap: 5px;
    font-size: .8rem;
  }
}


/* V31: spacing between catalogue detail blocks and action button */
.catalog-detail-section + .catalog-detail-section {
  margin-top: 24px;
}

.dialog-text .order-from-dialog {
  margin-top: 24px;
}

@media (max-width: 720px) {
  .catalog-detail-section + .catalog-detail-section {
    margin-top: 20px;
  }

  .dialog-text .order-from-dialog {
    margin-top: 22px;
  }
}


/* V33: multilingual custom 404 page */
.error-page {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  padding: 64px 0 76px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(8,123,107,.13) 0, transparent 30%),
    linear-gradient(180deg,#fbfcf9 0%,#f3f8f5 100%);
}

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

.error-copy {
  position: relative;
  z-index: 2;
}

.error-code {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 15px;
  color: var(--green);
  font-size: clamp(4.7rem,11vw,8.4rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.08em;
}

.error-code .leaf-zero {
  width: .76em;
  height: .76em;
  display: inline-grid;
  place-items: center;
  border-radius: 45% 55% 48% 52%;
  background: var(--green-soft);
  border: 2px solid var(--green);
  transform: rotate(-12deg);
}

.error-code .leaf-zero::before {
  content: "";
  width: 42%;
  height: 60%;
  border-radius: 100% 0 100% 0;
  background: var(--green);
  transform: rotate(34deg);
}

.error-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem,4vw,3.25rem);
  line-height: 1.4;
  letter-spacing: -.045em;
}

.error-copy p {
  max-width: 660px;
  margin: 0 0 28px;
  color: var(--text);
  font-size: 1.05rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-visual {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.error-visual::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 48% 52% 44% 56%;
  background: var(--mint);
  transform: rotate(8deg);
}

.error-visual::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 34px;
  bottom: 54px;
  border-radius: 50%;
  background: rgba(7,91,80,.12);
  filter: blur(16px);
}

.error-plant-card {
  position: relative;
  z-index: 2;
  width: min(330px,86%);
  padding: 28px 24px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.error-plant-card img {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 24px;
}

.error-plant-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 1.12rem;
}

.error-plant-card span {
  color: var(--text);
  font-size: .9rem;
}

.error-paths {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.error-paths a {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 800;
}

body[data-theme="dark"] .error-page {
  background: #050807 !important;
  background-image: none !important;
}

body[data-theme="dark"] .error-visual::before {
  background: #0b1513;
  border: 1px solid var(--border);
}

body[data-theme="dark"] .error-visual::after {
  background: rgba(0,0,0,.5);
}

body[data-theme="dark"] .error-plant-card {
  background: #0b1513;
  border-color: var(--border);
}

body[data-theme="dark"] .error-plant-card strong {
  color: #f6fffc;
}

body[data-theme="dark"] .error-paths a {
  background: #10231f;
  color: #d8fff8;
  border-color: #263b37;
}

@media (max-width: 900px) {
  .error-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .error-visual {
    min-height: 350px;
  }
}

@media (max-width: 720px) {
  .error-page {
    min-height: calc(100vh - 64px);
    padding: 38px 0 54px;
  }

  .error-copy {
    text-align: center;
  }

  .error-copy p {
    margin-inline: auto;
  }

  .error-actions,
  .error-paths {
    justify-content: center;
  }

  .error-actions {
    flex-direction: column;
  }

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

  .error-visual {
    min-height: 300px;
  }

  .error-visual::before {
    width: 270px;
    height: 270px;
  }

  .error-plant-card {
    width: min(300px,92%);
  }
}


/* V34: form sender selection dialog */
.sender-choice-dialog {
  width: min(620px, calc(100% - 30px));
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
  overflow: visible;
}

.sender-choice-dialog::backdrop {
  background: rgba(4,26,22,.66);
  backdrop-filter: blur(4px);
}

.sender-dialog-body {
  padding: 32px;
}

.sender-dialog-body h2 {
  margin: 0 0 9px;
  font-size: clamp(1.45rem,3vw,2rem);
  line-height: 1.45;
}

.sender-dialog-body > p {
  margin: 0 0 23px;
  color: var(--text);
}

.sender-dialog-close {
  position: absolute;
  top: 13px;
  inset-inline-end: 13px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 3px 14px rgba(0,0,0,.11);
  font-size: 25px;
  line-height: 1;
}

.sender-provider-grid {
  display: grid;
  gap: 11px;
}

.sender-provider {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  text-align: start;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f7faf8;
  color: var(--ink);
  transition: .18s ease;
}

.sender-provider strong {
  color: var(--green-dark);
  font-size: 1rem;
}

.sender-provider span {
  color: var(--text);
  font-size: .83rem;
}

.sender-provider:hover:not(:disabled) {
  border-color: var(--green);
  background: var(--green-soft);
  transform: translateY(-1px);
}

.sender-provider:disabled,
.sender-dialog-close:disabled {
  cursor: wait;
  opacity: .58;
}

.sender-status {
  min-height: 25px;
  margin: 16px 0 0 !important;
  color: var(--green-dark) !important;
  font-weight: 800;
  text-align: center;
}

body[data-theme="dark"] .sender-choice-dialog,
body[data-theme="dark"] .sender-dialog-close {
  background: #0b1513;
  color: #f6fffc;
}

body[data-theme="dark"] .sender-provider {
  background: #10231f;
  color: #f6fffc;
  border-color: #263b37;
}

body[data-theme="dark"] .sender-provider strong,
body[data-theme="dark"] .sender-status {
  color: #d8fff8 !important;
}

body[data-theme="dark"] .sender-provider span,
body[data-theme="dark"] .sender-dialog-body > p {
  color: #c5d4d0;
}

body[data-theme="dark"] .sender-provider:hover:not(:disabled) {
  background: #123c35;
  border-color: #35c5b0;
}

@media (max-width: 600px) {
  .sender-dialog-body {
    padding: 26px 17px 20px;
  }

  .sender-provider {
    padding: 14px;
  }
}


/* V35: simplified provider selector with bundled logos */
.sender-dialog-body > p:not(.sender-status) {
  display: none !important;
}

.sender-provider {
  display: flex !important;
  align-items: center;
  gap: 15px;
  min-height: 82px;
  padding: 14px 18px !important;
}

.sender-provider-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
  border-radius: 13px;
}

.sender-provider-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.sender-provider-copy strong {
  margin: 0;
  font-size: 1.04rem;
}

.sender-recommended {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green);
  color: #fff !important;
  font-size: .72rem !important;
  font-weight: 800;
  line-height: 1.2;
}

.sender-provider-recommended {
  border-color: rgba(8,123,107,.46);
  background: rgba(8,123,107,.055);
}

.sender-provider-recommended:hover:not(:disabled) {
  border-color: var(--green);
}

body[data-theme="dark"] .sender-provider-recommended {
  background: rgba(53,197,176,.09);
  border-color: rgba(53,197,176,.5);
}

body[data-theme="dark"] .sender-recommended {
  background: #35c5b0;
  color: #061b18 !important;
}

@media (max-width: 600px) {
  .sender-provider {
    min-height: 72px;
    gap: 12px;
    padding: 12px 13px !important;
  }

  .sender-provider-logo {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .sender-provider-copy {
    gap: 7px;
  }
}
