/* Kolhoz Ferma — publiskā sākumlapa (pēc maketa 01) */
:root {
    --bg: #080D11; --panel: #10181E; --panel-2: #131F27; --text: #F4EBDD; --muted: #8A97A0; --soft: #B9C3C9;
    --gold: #D8AC50; --gold-2: #F0CA76; --green: #67D5A3; --red: #E96C71; --blue: #77B8ED;
    --line: rgba(244,235,221,.08); --line-2: rgba(244,235,221,.14); --r: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: clamp(14px, 0.4vw + 8.3px, 22px); background: var(--bg); scroll-behavior: smooth; }
html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; }
body.kfh { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
svg { flex: none; }

/* Augša */
.kfh-top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; gap: 32px; padding: 22px max(28px, calc((100% - 1600px) / 2)); }
.kfh-logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.2rem 'Manrope', sans-serif; letter-spacing: .02em; color: var(--text); white-space: nowrap; }
.kfh-logo svg { color: var(--gold); }
.kfh-logo b { color: var(--gold-2); margin-left: 6px; }
.kfh-logo.sm { font-size: .95rem; }
.kfh-links { display: flex; gap: 26px; margin-right: auto; }
.kfh-links a { font-size: .86rem; font-weight: 500; color: var(--soft); padding: 6px 0; border-bottom: 2px solid transparent; }
.kfh-links a:hover { color: var(--text); }
.kfh-links a.on { color: var(--gold-2); border-bottom-color: var(--gold); }

/* Pogas */
.kfh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 10px; font: 700 .92rem 'Inter', sans-serif; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.kfh-btn:hover { transform: translateY(-1px); }
.kfh-btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1A1407; box-shadow: 0 8px 24px rgba(216,172,80,.25); }
.kfh-btn-gold:hover { box-shadow: 0 10px 30px rgba(216,172,80,.4); }
.kfh-btn-ghost { background: rgba(8,13,17,.55); border-color: var(--line-2); color: var(--text); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.kfh-btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.kfh-btn-sm { padding: 9px 16px; font-size: .84rem; }
.kfh-btn-block { width: 100%; margin-top: 18px; }

/* Hero */
.kfh-hero {
    position: relative; padding: 112px max(28px, calc((100% - 1600px) / 2)) 22px;
    background:
        radial-gradient(ellipse 70% 60% at 75% 35%, rgba(216,172,80,.16), transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(103,213,163,.08), transparent 60%),
        linear-gradient(180deg, #0B1620 0%, #0A1218 55%, var(--bg) 100%);
    overflow: hidden;
}
.kfh-hero::before { /* lauku rindas */
    content: ''; position: absolute; inset: auto 0 0 0; height: 55%;
    background: repeating-linear-gradient(100deg, rgba(216,172,80,.05) 0 2px, transparent 2px 38px);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); mask-image: linear-gradient(180deg, transparent, #000 60%);
    transform: perspective(600px) rotateX(55deg); transform-origin: bottom; pointer-events: none;
}
.kfh-hero.has-img { background: var(--bg); }
.kfh-hero.has-img::before { /* tieši tāds pats aptumšojums kā pirms kastes (bez tuvinājuma) */
    content: ''; display: block; position: absolute; inset: 0; height: auto; z-index: 1; transform: none;
    -webkit-mask-image: none; mask-image: none;
    background: linear-gradient(90deg, rgba(8,13,17,.92) 0%, rgba(8,13,17,.55) 45%, rgba(8,13,17,.25) 100%), linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.kfh-slides { position: absolute; inset: 0; z-index: 0; }
.kfh-slides span { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transition: opacity 1.8s ease; }
.kfh-slides span.on { opacity: 1; }
.kfh-hero-in, .kfh-stats { z-index: 2; }
.kfh-hero-in { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.kfh-hero-text { max-width: 760px; }
.kfh-eyebrow { display: flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin-bottom: 18px; }
.kfh-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.kfh-hero h1 { font: 800 clamp(2.2rem, 3.4vw, 3.9rem)/1.06 'Manrope', sans-serif; letter-spacing: -.02em; margin-bottom: 20px; }
.kfh-hero h1 em { font-style: normal; color: var(--gold-2); }
.kfh-hero p { font-size: 1.08rem; color: var(--soft); max-width: 640px; margin-bottom: 28px; }
.kfh-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.kfh-error { margin-bottom: 18px; padding: 12px 16px; border-radius: 10px; background: rgba(233,108,113,.12); border: 1px solid rgba(233,108,113,.35); color: var(--red); font-size: .9rem; }
.kfh-hero-badge { text-align: right; padding-top: 10px; text-shadow: 0 1px 8px rgba(0,0,0,.85); }
.kfh-fs { font: italic 800 2rem/1 'Manrope', sans-serif; letter-spacing: -.02em; color: var(--text); text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.kfh-fs b { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 8px; background: var(--green); color: #08201A; font-style: normal; }
.kfh-hero-meta { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; font-size: .95rem; color: var(--soft); }
.kfh-hero-meta .g { color: var(--gold-2); font-weight: 600; }

.kfh-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.kfh-stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: rgba(16,24,30,.82); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.kfh-stat .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(103,213,163,.12); color: var(--green); flex: none; }
.kfh-stat b { display: block; font: 800 1.25rem 'Manrope', sans-serif; font-variant-numeric: tabular-nums; }
.kfh-stat b.sm { font-size: .98rem; }
.kfh-stat small { font-size: .74rem; color: var(--muted); }
.kfh-stat .dot { width: 14px; height: 14px; border-radius: 50%; margin: 0 13px; flex: none; }
.kfh-stat .dot.on { background: var(--green); box-shadow: 0 0 0 6px rgba(103,213,163,.18); }
.kfh-stat .dot.off { background: var(--red); box-shadow: 0 0 0 6px rgba(233,108,113,.18); }

/* Saturs */
.kfh-main { padding: 14px max(28px, calc((100% - 1600px) / 2)) 40px; display: grid; gap: 18px; }
.kfh-row3 { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 18px; }
.kfh-row2 { display: grid; grid-template-columns: 2.2fr 1fr; gap: 18px; }
.kfh-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; scroll-margin-top: 20px; }
.kfh-card h2 { font: 800 1.05rem 'Manrope', sans-serif; margin-bottom: 16px; }
.kfh-card h2.gold { color: var(--gold-2); }
.kfh-card-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.kfh-card-h h2 { margin: 0; }
.kfh-card-h a { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--gold-2); }
.kfh-empty { color: var(--muted); font-size: .88rem; padding: 18px 0; }

.kfh-dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-size: .88rem; margin-bottom: 18px; }
.kfh-dl dt { color: var(--muted); }
.kfh-dl dd { text-align: right; font-weight: 600; }
.kfh-dl .gold { color: var(--gold-2); }
.kfh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kfh-chips span { padding: 5px 10px; border-radius: 8px; font-size: .74rem; font-weight: 600; background: rgba(244,235,221,.05); border: 1px solid var(--line); color: var(--soft); }
.kfh-chips .off { opacity: .45; text-decoration: line-through; }
.kfh-chips .gold { background: rgba(216,172,80,.16); border-color: rgba(216,172,80,.35); color: var(--gold-2); }

.kfh-prices { list-style: none; }
.kfh-prices li { display: grid; grid-template-columns: 1fr auto 70px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(244,235,221,.05); font-size: .9rem; }
.kfh-prices li:last-child { border-bottom: 0; }
.kfh-prices .n { display: flex; align-items: center; gap: 10px; }
.kfh-prices .n svg { color: var(--gold); }
.kfh-prices .p { font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.kfh-prices .t { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: .8rem; font-weight: 700; }
.t.up, .pct.hi { color: var(--green); } .t.down { color: var(--red); } .t.flat { color: var(--muted); }

.kfh-best { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kfh-best-item { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.kfh-best-item .ic { color: var(--gold); margin-bottom: 4px; }
.kfh-best-item small { color: var(--soft); font-size: .8rem; }
.kfh-best-item b { font: 800 1.35rem 'Manrope', sans-serif; font-variant-numeric: tabular-nums; }
.kfh-best-item .pct { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--gold-2); }
.kfh-best-item em { font-style: normal; font-size: .74rem; color: var(--muted); margin-top: 6px; }

.kfh-feat { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.kfh-feat-item { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); transition: border-color .15s; }
.kfh-feat-item:hover { border-color: rgba(216,172,80,.35); }
.kfh-feat-item .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(103,213,163,.1); color: var(--green); flex: none; }
.kfh-feat-item b { display: block; font-size: .86rem; font-weight: 700; margin-bottom: 2px; }
.kfh-feat-item small { display: block; font-size: .74rem; color: var(--muted); line-height: 1.35; }

.kfh-steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.kfh-steps li { counter-increment: s; position: relative; padding-left: 44px; }
.kfh-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1A1407; font: 800 .85rem 'Manrope', sans-serif; }
.kfh-steps b { display: block; font-size: .9rem; }
.kfh-steps small { color: var(--muted); font-size: .8rem; }
.kfh-note { margin-top: 12px; font-size: .78rem; color: var(--muted); text-align: center; }
.kfh-note a { color: var(--gold-2); text-decoration: underline; }

.kfh-foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 22px max(28px, calc((100% - 1600px) / 2)) 30px; border-top: 1px solid var(--line); }
.kfh-foot nav { display: flex; gap: 22px; flex-wrap: wrap; margin-right: auto; }
.kfh-foot nav a { font-size: .82rem; color: var(--soft); }
.kfh-foot nav a:hover { color: var(--gold-2); }
.kfh-foot small { font-size: .74rem; color: var(--muted); }

/* Planšete */
@media (max-width: 1300px) {
    .kfh-feat { grid-template-columns: repeat(3, 1fr); }
    .kfh-row3 { grid-template-columns: 1fr 1fr; }
    .kfh-row3 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
    .kfh-links { display: none; }
    .kfh-top { justify-content: space-between; }
    .kfh-hero-badge { display: none; }
    .kfh-stats { grid-template-columns: repeat(2, 1fr); max-width: none; }
    .kfh-row2 { grid-template-columns: 1fr; }
}
/* Telefons */
@media (max-width: 640px) {
    .kfh-top { padding: 16px 14px; }
    .kfh-top .kfh-btn-sm { padding: 8px 12px; font-size: .78rem; }
    .kfh-hero { padding: 92px 14px 24px; }
    .kfh-hero h1 { font-size: 2rem; }
    .kfh-hero p { font-size: .95rem; }
    .kfh-cta .kfh-btn { flex: 1; padding: 12px 14px; font-size: .84rem; }
    .kfh-stats { gap: 10px; margin-top: 28px; }
    .kfh-stat { flex-direction: column; text-align: center; gap: 8px; padding: 12px 8px; }
    .kfh-stat .dot { margin: 13px; }
    .kfh-stat b { font-size: 1rem; }
    .kfh-main { padding: 18px 14px 28px; gap: 14px; }
    .kfh-row3 { grid-template-columns: 1fr; }
    .kfh-card { padding: 18px 16px; }
    .kfh-best { grid-template-columns: 1fr; }
    .kfh-best-item { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
    .kfh-best-item em { width: 100%; margin: 0; }
    .kfh-feat { grid-template-columns: 1fr 1fr; gap: 8px; }
    .kfh-feat-item { flex-direction: column; gap: 8px; padding: 12px; }
    .kfh-foot { padding: 20px 14px 28px; gap: 14px; }
}

/* Emblēma (caurspīdīgs PNG no ChatGPT) — hero labajā pusē, bez kastes */
.kfh-emblem { display: block; margin-left: auto; width: clamp(150px, 13vw, 260px); height: auto; filter: drop-shadow(0 6px 24px rgba(0,0,0,.55)); }


/* Funkciju ikonas no ChatGPT (assets/img/ikonas/*.png) */
.kfh-feat-item:has(.ic.img) { flex-direction: column; gap: 10px; padding: 16px; }
.kfh-feat-item .ic.img { width: 72px; height: 72px; background: none; border-radius: 0; transition: transform .2s; }
.kfh-feat-item:hover .ic.img { transform: translateY(-3px) scale(1.05); }
.kfh-feat-item .ic.img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,.45)); }
html { scroll-behavior: smooth; }

/* Statistikas kartīšu ikonas (assets/img/ikonas/stat-*.png) */
.kfh-stat .ic.img { position: relative; width: 56px; height: 56px; background: none; border-radius: 0; }
.kfh-stat .ic.img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,.45)); }
.kfh-stat .dot-wrap { position: relative; width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.kfh-stat .dot-wrap .dot { margin: 0; }
.kfh-stat.is-off .ic.img img { filter: grayscale(1) brightness(.7); }
.kfh-stat.is-off b { color: var(--red); }
