:root {
  --g: #2e7d32; --g-dark: #1b5e20; --g-deep: #123d16; --g2: #e6f2e4; --g3: #f1f8ef; --leaf: #9be28f; --sun: #f4b400;
  --bg: #f6f8f3; --card: #ffffff; --ink: #18241a; --mut: #5f6e61; --line: #dfe7dc;
  --warn: #9a4a00; --warn-bg: #fff3de; --bad: #b3261e; --bad-bg: #fdeceb; --ok: #1e6b2a; --blue: #1a56c4; --blue-bg: #e9f0ff;
  --r: 18px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 50, 20, .06), 0 6px 18px rgba(20, 50, 20, .07);
  --shadow-lg: 0 10px 30px rgba(20, 60, 20, .18);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg); padding-bottom: 88px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--g); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1 { font-size: 1.8rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; margin: .6rem 0 .4rem; }
h2 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 750; margin: 1.3rem 0 .6rem; }
h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
img { max-width: 100%; }

/* ---------- başlıq ---------- */
.bk-top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .7rem 1rem; color: #fff;
  background: linear-gradient(120deg, var(--g-deep), var(--g) 70%, #3f9a45);
  box-shadow: 0 2px 12px rgba(10, 40, 10, .25);
}
.bk-logo { color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.bk-leaf { width: 26px; height: 26px; border-radius: 0 65% 0 65%; background: linear-gradient(135deg, #c8f5bd, var(--leaf)); display: inline-block; transform: rotate(-10deg); box-shadow: inset -3px -3px 0 rgba(0,0,0,.08); }
.bk-sponsor { color: #e5f6e1; font-size: .75rem; text-decoration: none; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .2rem .65rem; white-space: nowrap; }
.bk-sponsor:hover { background: rgba(255,255,255,.12); }

.bk-top-r { display: flex; align-items: center; gap: .45rem; }
.bk-install-btn { display: inline-flex; align-items: center; gap: .3rem; background: #fff; color: var(--g-dark); border: 0; border-radius: 999px;
  padding: .38rem .8rem; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.bk-install-btn svg { width: 16px; height: 16px; }
.bk-install-btn[hidden], .bk-install-bar[hidden], .bk-ios[hidden] { display: none; }
.bk-install-bar { max-width: 820px; margin: .7rem auto 0; display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem;
  background: linear-gradient(120deg, #ffffff, var(--g2)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); font-size: .88rem; }
.bk-install-bar > div { flex: 1; line-height: 1.35; }
.bk-install-bar span:not(.bk-leaf) { color: var(--mut); font-size: .8rem; }
.bk-install-bar .bk-leaf { flex: none; width: 34px; height: 34px; }
.bk-x { background: none; border: 0; font-size: 1.4rem; color: var(--mut); cursor: pointer; padding: 0 .2rem; line-height: 1; }
@media (max-width: 820px) { .bk-install-bar { margin: .7rem 1rem 0; } }
.bk-ios { position: fixed; inset: 0; z-index: 20; background: rgba(10,25,10,.55); display: flex; align-items: flex-end; justify-content: center; padding: 1rem; }
.bk-ios-box { background: #fff; border-radius: 22px; padding: 1.2rem 1.3rem; max-width: 420px; width: 100%; box-shadow: var(--shadow-lg); margin-bottom: 70px; }
.bk-ios-box h2 { margin-top: 0; }
.bk-ios-box li { margin-bottom: .45rem; }
.bk-ios-box a.bk-btn { display: block; text-align: center; text-decoration: none; }
.bk-ios-box p { margin: 0 0 .6rem; }
@media (max-width: 380px) { .bk-sponsor { display: none; } }
.bk-main { max-width: 820px; margin: 0 auto; padding: .7rem 1rem 1rem; }
.bk-lead { color: var(--mut); margin-top: 0; font-size: 1.02rem; }
.bk-muted { color: var(--mut); }
.bk-small { font-size: .85rem; color: var(--mut); line-height: 1.5; }
.bk-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; margin: .9rem 0; box-shadow: var(--shadow); }
.bk-card h2 { margin-top: 0; }
.bk-warn { font-size: .8rem; color: var(--mut); border-top: 1px solid var(--line); padding-top: .8rem; margin-top: 1.6rem; }

/* ---------- alt naviqasiya ---------- */
.bk-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 6; display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(20, 50, 20, .08);
}
.bk-nav a { text-decoration: none; color: var(--mut); font-size: .7rem; font-weight: 600; text-align: center; padding: .2rem 0; display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.bk-nav svg { width: 24px; height: 24px; padding: 3px 14px; box-sizing: content-box; border-radius: 999px; transition: background .2s, color .2s; }
.bk-nav a.on { color: var(--g-dark); }
.bk-nav a.on svg { background: var(--g2); color: var(--g); }
.bk-nav a:active svg { transform: scale(.94); }

.bk-foot { max-width: 820px; margin: 0 auto 1rem; padding: 0 1rem; font-size: .82rem; color: var(--mut); }
.bk-ver { font-size: .72rem; margin-top: .2rem; }

/* ---------- formalar ---------- */
.bk-form label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .75rem; }
.bk-form input:not([type=checkbox]), .bk-form select, .bk-search, .bk-calc input {
  display: block; width: 100%; margin-top: .3rem; font: inherit; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; transition: border-color .15s, box-shadow .15s; }
.bk-form input:focus, .bk-form select:focus, .bk-search:focus, .bk-calc input:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 4px rgba(46,125,50,.15); }
.bk-check { display: flex !important; gap: .55rem; align-items: center; font-weight: 500 !important; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--g); }

/* ---------- düymələr ---------- */
.bk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: linear-gradient(180deg, #388e3c, var(--g-dark)); color: #fff; border: 0; border-radius: 999px;
  padding: .8rem 1.35rem; font: inherit; font-weight: 700; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(27, 94, 32, .3); transition: transform .12s, box-shadow .12s, filter .12s;
}
.bk-btn:hover { filter: brightness(1.06); box-shadow: 0 6px 18px rgba(27, 94, 32, .38); }
.bk-btn:active { transform: translateY(1px) scale(.99); }
.bk-btn-ghost { background: var(--g2); color: var(--g-dark); box-shadow: none; }
.bk-btn-ghost:hover { background: #d8ebd5; box-shadow: none; }
.bk-btn-sm { padding: .38rem .8rem; font-size: .84rem; }
.bk-btn-wide { display: flex; width: 100%; margin: 1.2rem 0 .4rem; }

/* ---------- kataloq ---------- */
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 1fr; gap: .7rem; }
.bk-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0 0 .7rem; text-decoration: none; color: var(--ink);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.bk-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.bk-tile:hover .bk-tile-img img { transform: scale(1.04); }
.bk-tile-img img { transition: transform .3s; }
.bk-tile b { padding: .55rem .75rem 0; font-size: .95rem; line-height: 1.3; min-height: calc(2 * 1.3em + .55rem); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bk-tile small { display: block; color: var(--mut); font-size: .76rem; padding: .15rem .75rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-tile-img { display: block; aspect-ratio: 4/3; width: 100%; flex: none; overflow: hidden; background: linear-gradient(135deg, var(--g2), var(--g3)); }
.bk-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-search { margin: .4rem 0 .8rem; border-radius: 999px; padding-left: 2.6rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235f6e61' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='m14 14 4 4'/%3E%3C/svg%3E") no-repeat .9rem center; }
.bk-credits { font-size: .72rem; color: var(--mut); margin-top: 1.2rem; }
.bk-credits a { color: var(--mut); }

/* ---------- bitki səhifəsi ---------- */
.bk-hero { margin: .2rem -1rem .6rem; position: relative; }
.bk-hero-pics { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; height: 260px; }
.bk-hero-pics img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--g2); }
.bk-hero-pics img:first-child { grid-row: span 2; }
.bk-hero-pics img:only-child { grid-column: span 2; }
.bk-hero-pics img:first-child:nth-last-child(2) ~ img { grid-row: span 2; }
.bk-hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .8rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.bk-hero-pics + .bk-hero-text h1 { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); margin: .3rem 0 0; font-size: 2rem; }
.bk-hero-text:only-child { position: static; background: none; color: var(--ink); padding: 0 1rem; }
.bk-chip { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em; background: rgba(255,255,255,.9); color: var(--g-dark); border-radius: 999px; padding: .15rem .6rem; margin-right: .25rem; }
.bk-hero-text:only-child .bk-chip { background: var(--g2); }
.bk-jump { display: flex; gap: .4rem; overflow-x: auto; padding: .2rem 0 .4rem; scrollbar-width: none; position: sticky; top: 62px; z-index: 4; background: var(--bg); }
.bk-jump::-webkit-scrollbar { display: none; }
.bk-jump a { flex: none; text-decoration: none; font-size: .85rem; font-weight: 600; color: var(--g-dark); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; }
.bk-jump a:hover { background: var(--g2); }
.bk-explain { margin-top: .9rem; background: var(--g3); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .7rem .9rem; }
.bk-explain summary { font-weight: 700; cursor: pointer; color: var(--g-dark); }
.bk-explain ol { padding-left: 1.2rem; margin: .6rem 0; }
.bk-explain li { margin-bottom: .55rem; }

.bk-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.bk-table th, .bk-table td { text-align: left; padding: .5rem .45rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.bk-table th { font-size: .76rem; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.bk-table tbody tr:nth-child(even) { background: var(--g3); }
.bk-plan { padding-left: 1.2rem; } .bk-plan li { margin-bottom: .45rem; }
.bk-dis { border-top: 1px solid var(--line); padding: .6rem 0; }
.bk-dis summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.bk-dis summary::-webkit-details-marker { display: none; }
.bk-dis summary::after { content: "+"; font-size: 1.2rem; color: var(--g); width: 26px; height: 26px; border-radius: 50%; background: var(--g2); display: grid; place-items: center; flex: none; }
.bk-dis[open] summary::after { content: "–"; }
.bk-back { font-size: .9rem; text-decoration: none; font-weight: 600; display: inline-block; margin-top: .3rem; }

.bk-alert { border-radius: var(--r-sm); padding: .6rem .8rem; margin: .4rem 0; font-size: .92rem; border-left: 4px solid currentColor; }
.bk-alert.bad { background: var(--bad-bg); color: var(--bad); }
.bk-alert.warn { background: var(--warn-bg); color: var(--warn); }
.bk-alert.info { background: var(--blue-bg); color: var(--blue); }
.bk-alert.ok { background: var(--g2); color: var(--ok); }
.bk-task { padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.bk-task:last-child { border-bottom: 0; }
.bk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: .72rem; text-align: center; margin: .6rem 0; }
.bk-days div { background: var(--g3); border: 1px solid var(--line); border-radius: 10px; padding: .35rem 0; }
.bk-days b { display: block; font-size: .82rem; }
.bk-field-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.bk-field-head h2 { margin: 0; }
.bk-tag { font-size: .75rem; font-weight: 600; background: var(--g2); color: var(--g-dark); border-radius: 999px; padding: .15rem .65rem; }
.bk-calc-out { font-size: .92rem; margin-top: .5rem; }
fieldset { border: 0; padding: 0; margin: 0; } legend { font-size: .9rem; font-weight: 700; margin-bottom: .4rem; }
.bk-sym { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400 !important; font-size: .93rem !important; margin-bottom: .45rem !important; }
.bk-sym input { margin-top: .2rem; }
.bk-bar { height: 8px; background: var(--g2); border-radius: 4px; overflow: hidden; margin: .3rem 0 .45rem; }
.bk-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--g), #66bb6a); border-radius: 4px; }
.bk-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.bk-stages figure { margin: 0; font-size: .88rem; }
.bk-stages img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r-sm); display: block; margin-bottom: .4rem; box-shadow: var(--shadow); }

@media (min-width: 820px) {
  .bk-nav { max-width: 820px; margin: 0 auto; border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; }
  .bk-hero { margin: .4rem 0 .8rem; border-radius: var(--r); overflow: hidden; }
  .bk-hero-pics { height: 340px; }
  h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- bağlı qeydlər (default bağlı, toxunanda açılır) ---------- */
.bk-note { margin: .7rem 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--g3); }
.bk-note > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .55rem; padding: .55rem .75rem;
  font-size: .88rem; font-weight: 700; color: var(--g-dark); user-select: none; -webkit-tap-highlight-color: transparent; }
.bk-note > summary::-webkit-details-marker { display: none; }
.bk-note > summary::before { content: "i"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font: 800 .75rem/1 Georgia, serif; background: var(--g); color: #fff; }
.bk-note > summary::after { content: ""; margin-left: auto; flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; opacity: .7; }
.bk-note[open] > summary::after { transform: rotate(-135deg); }
.bk-note-b { padding: 0 .85rem .75rem 2.55rem; font-size: .88rem; color: var(--ink); line-height: 1.55; }
.bk-note.warn { background: var(--warn-bg); border-color: #f1d6a8; }
.bk-note.warn > summary { color: var(--warn); }
.bk-note.warn > summary::before { content: "!"; background: var(--warn); font-family: inherit; }
.bk-note.bad { background: var(--bad-bg); border-color: #f3c2bf; }
.bk-note.bad > summary { color: var(--bad); }
.bk-note.bad > summary::before { content: "!"; background: var(--bad); font-family: inherit; }
.bk-note.info { background: var(--blue-bg); border-color: #c9d8fb; }
.bk-note.info > summary { color: var(--blue); }
.bk-note.info > summary::before { background: var(--blue); }
.bk-note .bk-alert { margin: .3rem 0; }
.bk-warn-note { margin-top: 1.6rem; }
/* açılan hissələr: hamısında eyni ox işarəsi və toxunma hissi */
.bk-explain summary { list-style: none; display: flex; align-items: center; gap: .5rem; }
.bk-explain summary::-webkit-details-marker { display: none; }
.bk-explain summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.bk-explain[open] summary::after { transform: rotate(-135deg); }
details > summary:focus-visible, .bk-btn:focus-visible, a:focus-visible { outline: 3px solid rgba(46,125,50,.45); outline-offset: 2px; border-radius: 8px; }
.bk-dis summary, .bk-note > summary, .bk-explain summary { min-height: 44px; }

/* ---------- çap / PDF ---------- */
.bk-print-btn { margin: .2rem 0 .6rem; }
.bk-print-btn svg { flex: none; }
.bk-print-head { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; padding: 0; font-size: 11pt; color: #000; }
  .bk-top, .bk-nav, .bk-jump, .bk-foot, .bk-install-bar, .bk-ios, .bk-print-btn, .bk-back, .bk-btn, .bk-calc, .bk-credits a::after { display: none !important; }
  .bk-print-head { display: block; font-size: 9pt; color: #444; border-bottom: 1px solid #999; padding-bottom: 4px; margin-bottom: 6px; }
  .bk-main { max-width: none; padding: 0; }
  .bk-card { box-shadow: none; border: 1px solid #bbb; border-radius: 6px; margin: 6px 0; padding: 8px 10px; }
  .bk-card h2 { break-after: avoid; }
  .bk-table tr, .bk-stages figure, .bk-plan li { break-inside: avoid; }
  .bk-hero { margin: 0 0 6px; border-radius: 6px; overflow: hidden; }
  .bk-hero-pics { height: 150px; }
  .bk-hero-text { padding: 1.2rem .6rem .4rem; }
  .bk-stages { grid-template-columns: repeat(3, 1fr); }
  .bk-stages img { max-height: 160px; }
  .bk-note, .bk-explain, .bk-dis { break-inside: avoid; }
  .bk-note > summary::after, .bk-explain summary::after, .bk-dis summary::after { display: none; }
  .bk-table tbody tr:nth-child(even) { background: #f2f2f2; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bk-hero, .bk-chip, .bk-note { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: #000; text-decoration: none; }
  h1 { font-size: 18pt; } h2 { font-size: 13pt; }
}
