/* Articles page (artikel.html) — dark hero, floating toolbar, dark featured card, image-top tiles */
.articles-page main{position:relative;background:#fff;overflow-x:clip}
.articles-page main::before{content:"";position:absolute;inset:520px 0 auto 0;height:900px;pointer-events:none;
  background:repeating-linear-gradient(118deg,transparent 0 160px,rgba(10,42,34,.035) 160px 162px,transparent 162px 320px);z-index:0}
.articles-page main>*{position:relative;z-index:1}

/* Hero */
.articles-hero{position:relative;overflow:hidden;color:#fff;min-height:340px;display:flex;align-items:center;background:radial-gradient(70% 120% at 0% 100%,rgba(18,178,79,.16),transparent 60%),linear-gradient(180deg,#0e1a16,#0a1411)}
.articles-hero__art{position:absolute;top:0;bottom:0;right:0;width:54%;background:var(--green2);clip-path:polygon(22% 0,100% 0,100% 100%,0 100%)}
.articles-hero__art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 40%;clip-path:polygon(calc(22% + 14px) 0,100% 0,100% 100%,14px 100%)}
.articles-hero__art::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(10,20,17,.55) 0%,rgba(10,20,17,.15) 35%,rgba(10,20,17,0) 60%);clip-path:polygon(calc(22% + 14px) 0,100% 0,100% 100%,14px 100%)}
.articles-hero__art::after{content:"";position:absolute;top:0;bottom:0;left:calc(22% + 40px);width:10px;z-index:2;background:rgba(95,107,102,.9);transform:skewX(-11.5deg);transform-origin:bottom left;display:none}
.articles-hero__inner{position:relative;z-index:3;padding:44px 0 80px}
.articles-hero__copy{max-width:min(620px,46%)}
.articles-crumb{margin:0 0 10px;font-size:.8rem;color:#a9bab3}
.articles-crumb a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.articles-hero h1{font-size:clamp(3rem,5.4vw,4.6rem);color:#fff;letter-spacing:-.005em}
.articles-hero h1 em{font-style:normal;color:#19d865}
.articles-hero__title{margin:0;font:700 clamp(3rem,5.4vw,4.6rem)/.96 "Barlow Condensed",Arial,sans-serif;color:#fff;letter-spacing:-.005em}
.articles-hero__title em{font-style:normal;color:#19d865}

.articles-hero__bar{display:block;width:78px;height:4px;margin:16px 0 14px;border-radius:2px;background:var(--green2)}
.articles-hero__copy>p:last-child{margin:0;font-size:1.08rem;line-height:1.5;color:#e2ebe7}

/* Floating toolbar */
.articles-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:-36px;padding:16px 18px;border-radius:12px;background:#fff;box-shadow:0 18px 40px rgba(5,39,29,.14);position:relative;z-index:4}
.article-search{flex:1 1 300px;display:flex;align-items:center;gap:10px;padding:0 14px;height:46px;border:1px solid #d5dfda;border-radius:8px;background:#fff;color:#56625d;transition:border-color .2s,box-shadow .2s}
.article-search:focus-within{border-color:var(--green2);box-shadow:0 0 0 3px rgba(18,178,79,.15)}
.article-search svg{width:20px;height:20px;flex:0 0 20px}
.article-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;color:var(--text);height:100%}
.article-filters{display:flex;flex-wrap:wrap;gap:10px}
.article-filter{height:42px;padding:0 18px;border:1px solid #d5dfda;border-radius:8px;background:#fff;color:var(--text);font:500 .9rem Inter,Arial,sans-serif;cursor:pointer;transition:.2s}
.article-filter:hover{border-color:var(--green2);color:var(--green2)}
.article-filter.active{background:#0e8a3e;border-color:#0e8a3e;color:#fff}

/* Section headings with green underline */
.articles-heading{position:relative;font-size:clamp(2rem,3.4vw,2.6rem);margin:0 0 26px;padding-bottom:10px;color:var(--text)}
.articles-heading::after{content:"";position:absolute;left:0;bottom:0;width:56px;height:4px;border-radius:2px;background:var(--green2)}
.articles-heading em{font-style:normal;color:var(--green2)}
.featured-block{margin-top:42px}
.latest-block{margin-top:42px;padding-bottom:56px}

/* Category badge */
.cat-badge{display:inline-flex;align-items:center;align-self:flex-start;height:22px;padding:0 12px;border-radius:999px;background:#0e8a3e;color:#fff;font:600 .7rem/1 Inter,Arial,sans-serif;letter-spacing:.02em;white-space:nowrap}

/* Featured (dark panel with green diagonal) */
.featured-card{position:relative;display:grid;grid-template-columns:55% 45%;min-height:240px;border-radius:12px;overflow:hidden;background:#141d1a;color:#fff;box-shadow:0 18px 40px rgba(5,39,29,.18);transition:transform .25s,box-shadow .25s}
.featured-card:hover{transform:translateY(-3px);box-shadow:0 24px 50px rgba(5,39,29,.24)}
.featured-card__img{position:relative;min-height:240px;background:var(--green2);clip-path:polygon(0 0,100% 0,86% 100%,0 100%)}
.featured-card__img img{clip-path:polygon(0 0,calc(100% - 9px) 0,calc(86% - 9px) 100%,0 100%)}
.featured-card__img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

.featured-card::after{content:"";position:absolute;right:0;bottom:0;width:70px;height:34px;background:linear-gradient(135deg,transparent 50%,var(--green2) 50%);opacity:.9}
.featured-card__body{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;gap:12px;padding:28px 34px 28px 10px}
.featured-card__body strong{font:700 clamp(1.4rem,2.2vw,1.85rem)/1.12 "Barlow Condensed",Arial,sans-serif;color:#fff;letter-spacing:.005em}
.featured-card .article-meta{color:#b9c7c1}
.featured-card__excerpt{color:#d9e3df;line-height:1.55}
.featured-card__cta.btn{align-self:flex-start;margin-top:4px;padding:10px 20px}
.featured-card__cta b{transition:margin .2s}
.featured-card:hover .featured-card__cta b{margin-left:4px}

/* Meta line */
.article-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:#6b7772;font-size:.82rem}
.article-meta i{font-style:normal;font-size:.7rem}

/* Tiles: image on top, badge on the image edge, arrow button */
.articles-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.article-tile{position:relative;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 6px 18px rgba(5,39,29,.06);transition:box-shadow .25s,transform .25s,border-color .25s}
.article-tile:hover{box-shadow:0 16px 34px rgba(5,39,29,.13);transform:translateY(-3px);border-color:#c9e3d4}
.article-tile__img{position:relative;display:block;aspect-ratio:16/6.4;overflow:hidden;background:#eef2f0}
.article-tile__img img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.article-tile:hover .article-tile__img img{transform:scale(1.04)}
.article-tile__img .cat-badge{position:absolute;left:0;bottom:0;height:26px;padding:0 16px 0 12px;border-radius:0 14px 0 0;background:#fff;color:#0e8a3e;box-shadow:none}
.article-tile__img .cat-badge::before{content:"";display:inline-block;margin-right:0}
.article-tile__body{position:relative;flex:1;display:flex;flex-direction:column;gap:10px;padding:12px 64px 16px 16px}
.article-tile__body strong{font:600 .98rem/1.35 Inter,Arial,sans-serif;color:var(--text)}
.article-tile .article-meta{margin-top:auto;font-size:.78rem}
.tile-arrow{position:absolute;right:14px;top:50%;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#f1f5f3;color:var(--text);transform:translateY(-50%);transition:background .2s,color .2s}
.tile-arrow svg{width:16px;height:16px}
.article-tile:hover .tile-arrow{background:var(--green2);color:#fff}
/* Row variant (last row in the design): image left, text right */
.article-tile--row{flex-direction:row;min-height:120px}
.article-tile--row .article-tile__img{flex:0 0 44%;aspect-ratio:auto}
.article-tile--row .article-tile__body{padding:12px 56px 14px 14px}
.article-tile--row .cat-badge{height:22px}
.articles-empty{padding:30px;border:1px dashed #c6d8cf;border-radius:10px;text-align:center;color:var(--muted);background:#fff}

/* Pager */
.articles-pager{display:flex;justify-content:center;gap:10px;margin-top:28px}
.pager-btn{width:40px;height:40px;border-radius:50%;border:1px solid #d5dfda;background:#fff;color:var(--text);font:600 .92rem Inter,Arial,sans-serif;cursor:pointer;transition:.2s}
.pager-btn:hover:not(:disabled){border-color:var(--green2);color:var(--green2)}
.pager-btn.active{background:#0e8a3e;border-color:#0e8a3e;color:#fff}
.pager-btn:disabled{opacity:.4;cursor:default}

/* Reading view */
.article-read{padding:34px 0 70px;max-width:880px}
.article-back{display:inline-block;margin-bottom:22px;color:var(--green2);font-weight:700}
.article-read__cat{display:inline-block;padding:5px 12px;border-radius:999px;background:#e9f7ef;color:#137a3c;font-size:.78rem;font-weight:700;letter-spacing:.04em}
.article-read__head h1{margin:14px 0 12px;font:800 clamp(2.1rem,4vw,3.2rem)/1.02 "Barlow Condensed",Arial,sans-serif;color:var(--text)}
.article-read__lead{margin:0 0 14px;font-size:1.12rem;line-height:1.55;color:#3c4a45}
.article-read__img{margin:26px 0;border-radius:14px;overflow:hidden;aspect-ratio:16/8;background:#eef2f0}
.article-read__img img{width:100%;height:100%;object-fit:cover}
.article-read__img:has(video){aspect-ratio:16/9;background:#0d1512}
.article-read__img video{display:block;width:100%;height:100%;object-fit:cover}
.article-read__body p{margin:0 0 18px;font-size:1.04rem;line-height:1.75;color:#2a3632}
.article-points{margin:26px 0;padding:20px 24px;border-left:4px solid var(--green2);border-radius:0 10px 10px 0;background:#f2f8f5}
.article-points h2{font:700 1rem Inter,Arial,sans-serif;margin:0 0 10px}
.article-points ul{margin:0;padding-left:20px}
.article-points li{margin:6px 0;line-height:1.5}
.article-cta{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:30px;padding:22px 24px;border-radius:12px;background:#071d18;color:#fff}
.article-cta p{margin:6px 0 0;color:#b7c8c1;font-size:.92rem}
.article-cta .btn{white-space:nowrap}
.article-related{margin-top:54px}

/* Newsletter (dark with green glow) */
.newsletter{position:relative;overflow:hidden;background:#0d1714;color:#fff;border-bottom:2px solid #0e8a3e}
.newsletter::before{content:"";position:absolute;inset:0;background:radial-gradient(60% 140% at 0% 50%,rgba(18,178,79,.35),transparent 60%),linear-gradient(115deg,transparent 40%,rgba(18,178,79,.18) 40.3%,transparent 46%);pointer-events:none}
.newsletter__inner{position:relative;z-index:2;padding:34px 0 36px}
.newsletter__copy{max-width:560px}
.newsletter h2{font-size:clamp(2rem,3.4vw,2.6rem);color:#fff}
.newsletter h2 em{font-style:normal;color:#19d865}
.newsletter__copy>p{margin:8px 0 16px;color:#d2ddd8}
.newsletter__form{display:flex;gap:12px}
.newsletter__field{flex:1;display:flex;align-items:center;gap:10px;height:44px;padding:0 14px;border-radius:6px;background:#fff;color:#6b7772}
.newsletter__field svg{width:18px;height:18px;flex:0 0 18px}
.newsletter__field input{flex:1;min-width:0;border:0;outline:0;font:inherit;color:var(--text)}
.newsletter__form .btn{min-width:124px;min-height:44px}
.newsletter__status{min-height:1.2em;margin:10px 0 0;font-size:.88rem}
.newsletter__status.ok{color:#5fe39a}
.newsletter__status.err{color:#ff9b91}
.newsletter__art{position:absolute;inset:0 0 0 auto;width:40%}
.newsletter__art img{width:100%;height:100%;object-fit:cover}
.newsletter__art::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0d1714 0%,rgba(13,23,20,.55) 30%,rgba(13,23,20,0) 70%);z-index:1}
.apply-honeypot{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Responsive */
@media(max-width:1100px){.articles-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.article-tile--row{flex-direction:column}.article-tile--row .article-tile__img{flex:none;aspect-ratio:16/6.4}.newsletter__art{width:32%}}
@media(max-width:850px){
  .articles-hero{min-height:0}
  .articles-hero__art{width:100%;clip-path:none;background:none}
  .articles-hero__art img,.articles-hero__art::before{clip-path:none}
  .articles-hero__art::before{background:linear-gradient(180deg,rgba(10,20,17,.93) 0%,rgba(10,20,17,.84) 60%,rgba(10,20,17,.6) 100%)}
  .articles-hero__copy{max-width:none}
  .articles-hero__inner{padding:36px 0 64px}
  .featured-card{grid-template-columns:1fr}
  .featured-card::after{display:none}
  .featured-card__img img{clip-path:none}
  .featured-card__img{clip-path:none;min-height:0;aspect-ratio:16/8}
  .featured-card__body{padding:22px}
  .newsletter__art{display:none}
  .article-cta{flex-direction:column;align-items:flex-start}
}
@media(max-width:640px){
  .articles-grid{grid-template-columns:1fr}
  .articles-toolbar{padding:12px}
  .article-filters{flex-wrap:nowrap;overflow-x:auto;width:100%;padding-bottom:4px}
  .article-filter{flex:0 0 auto;height:38px;padding:0 14px}
  .newsletter__form{flex-direction:column}
  .newsletter__form .btn{width:100%}
}
.article-related .article-tile__img{aspect-ratio:16/8}
.article-tile--row .article-tile__body{padding:12px 14px 14px}
.article-tile--row .tile-arrow{top:auto;bottom:10px;transform:none}
.article-tile--row .article-meta{padding-right:40px}

/* Rich article blocks: subheadings, tables, notes, conclusion */
.article-read__h2{margin:34px 0 12px;font:800 clamp(1.5rem,2.6vw,1.9rem)/1.1 "Barlow Condensed",Arial,sans-serif;color:var(--text)}
.article-table-wrap{margin:8px 0 18px;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:10px}
.article-table{width:100%;min-width:560px;border-collapse:collapse;font-size:.95rem;line-height:1.5}
.article-table thead th{padding:12px 14px;background:#071d18;color:#fff;text-align:left;font-weight:600}
.article-table tbody th,.article-table td{padding:11px 14px;border-top:1px solid var(--line);text-align:left;vertical-align:top}
.article-table tbody th{width:24%;background:#f4f8f6;font-weight:600;color:#2a3632}
.article-note{padding:14px 18px;border-radius:10px;background:#fff8e6;border:1px solid #f1dfa9;color:#5a4a16;font-size:.97rem!important}
.article-conclusion{margin:28px 0 8px;padding:20px 24px;border-radius:12px;background:#f2f8f5;border-left:4px solid var(--green2)}
.article-conclusion strong{display:block;margin-bottom:6px;font:800 1.3rem "Barlow Condensed",Arial,sans-serif;color:#0e7a37}
.article-conclusion p{margin:0!important}
.article-read__h3{margin:24px 0 8px;font:700 1.12rem/1.3 Inter,Arial,sans-serif;color:var(--text)}
.article-list{margin:0 0 18px;padding-left:22px;font-size:1.02rem;line-height:1.7;color:#2a3632}
.article-list li{margin:3px 0}
.article-list li::marker{color:var(--green2)}
.article-read__body p strong,.article-list strong{color:var(--text)}
.article-faq{display:grid;gap:10px;margin:8px 0 18px}
.article-faq details{border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
.article-faq summary{position:relative;padding:14px 44px 14px 16px;font-weight:600;cursor:pointer;list-style:none}
.article-faq summary::-webkit-details-marker{display:none}
.article-faq summary::after{content:"+";position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:1.3rem;color:var(--green2)}
.article-faq details[open] summary::after{content:"−"}
.article-faq details[open] summary{background:#f4f8f6}
.article-faq details p{margin:0!important;padding:12px 16px 16px;font-size:.98rem!important}

/* Formulas and inline symbols in articles */
.article-read__body code{font:600 .92em/1.4 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;background:#eef4f1;color:#0a2a22;padding:1px 6px;border-radius:5px;white-space:nowrap}
.article-read__body .article-formula{margin:18px 0;padding:16px 20px;border:1px solid #cfe3d8;border-left:4px solid var(--green2);border-radius:10px;background:#f5faf7;overflow-x:auto}
.article-read__body .article-formula code{display:inline-block;background:none;padding:0;font-size:1.08rem;white-space:pre}
.article-read__body a:not(.btn){color:var(--green2);text-decoration:underline;text-underline-offset:3px}
.article-table code{white-space:nowrap}

/* Cutting-parameters article: the tool line-up photo is 4:3, so show it whole instead of cropping to 2:1 */
.article-read__img:has(img[src*="parameter-cutting-v2"]){aspect-ratio:4/3;background:#f3f4f4}
