/* sellveg.eu — "Data desk": czysta, nowoczesna platforma notowań/cen dla profesjonalnych
   dostawców. Biel + profesjonalny niebieski, Manrope + Inter, tabela danych jak w nowoczesnym
   fintechu. CELOWO zupełnie inna od zielonego rolniczego .com. */

:root {
  --font-head: 'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --blue: #2563EB;
  --blue-deep: #1D4ED8;
  --blue-soft: #EFF4FF;
  --ink: #0F172A;
  --ink-soft: #475569;
  --up: #16A34A;
  --down: #DC2626;

  --accent: #2563EB;
  --accent-deep: #1D4ED8;
  --accent-soft: #EFF4FF;
  --cta: #2563EB;
  --cta-ink: #FFFFFF;
  --bg: #FFFFFF;
  --bg-tint: #F8FAFC;
  --card: #FFFFFF;
  --head: #0F172A;
  --label: #334155;
  --line: #E2E8F0;
  --line-soft: #F1F5F9;
  --link: #2563EB;
  --sec-ink: #2563EB;
  --nav-ink: #0F172A;
  --topbar-bg: rgba(255,255,255,.9);
  --thead: #F8FAFC;
  --footer-bg: #0B1220;
  --footer-ink: #94A3B8;
  --focus: rgba(37, 99, 235, .28);
  --radius-card: 14px;
  --radius-btn: 10px;
  --radius-in: 10px;
  --shadow: 0 10px 36px rgba(15, 23, 42, .10);
  --shadow-soft: 0 2px 12px rgba(15, 23, 42, .06);
  --muted: #64748B;
  --hero-shade: linear-gradient(180deg, rgba(15,23,42,.8) 0%, rgba(15,23,42,.5) 60%, rgba(15,23,42,.35) 100%);
  --stats-bg: #0F172A;
  --stats-ink: #FFFFFF;
  --stats-accent: #60A5FA;
  --season-bar: #2563EB;
  --ring: rgba(37,99,235,.5);
  --in-h: 52px;
}

body { font-size: 16px; background: var(--bg-tint); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em; }
.num, .term-table .num, .tc-price, .term-updated, .live-time, .tick b { font-variant-numeric: tabular-nums; }
::selection { background: rgba(37,99,235,.16); }

/* header — clean, sticky, blur */
.topbar { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { min-height: 68px; }
.logo-img { height: 30px; }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.topnav { display: flex; gap: 22px; }
.topnav a { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.topnav a:hover { color: var(--blue); }
.header-cta { display: inline-flex; align-items: center; gap: 7px; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: 10px; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 16px rgba(37,99,235,.28); transition: background .2s; }
.header-cta::after { content: "→"; }
.header-cta:hover { background: var(--blue-deep); }
.langsw-btn { border-color: var(--line); border-radius: 999px; }

/* ticker — clean slate strip */
.ticker { background: #fff; color: var(--ink-soft); overflow: hidden; white-space: nowrap; font-size: 13px; border-bottom: 1px solid var(--line); }
.ticker-track { display: inline-block; padding: 9px 0; animation: tick 48s linear infinite; }
.tick { margin-right: 32px; }
.tick b { color: var(--up); font-weight: 700; }
@keyframes tick { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* hero — price table is the hero, modern & clean */
.hero-term { padding: 20px 0 60px; background: var(--bg-tint); }
.term-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.term-head-compact { justify-content: flex-end; padding-bottom: 14px; margin-bottom: 18px; }
.term-head h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.06; margin: 0 0 12px; max-width: 680px; color: var(--ink); }
.term-sub { margin: 0; color: var(--muted); font-size: 16px; max-width: 620px; line-height: 1.55; }
.term-updated { text-align: right; font-size: 13px; color: var(--muted); }
.term-live { display: inline-flex; align-items: center; gap: 6px; color: var(--up); margin-top: 4px; font-weight: 700; }

.term-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; align-items: start; }
.term-table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft); }
.term-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.term-table th { font-family: var(--font-body); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: left; padding: 16px 18px 12px; background: var(--thead); border-bottom: 1px solid var(--line); }
.term-table td { padding: 15px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.term-table tr:last-child td { border-bottom: 0; }
.term-table tbody tr:hover { background: var(--bg-tint); }
.term-table .num { text-align: right; }
.term-table th.num { text-align: right; }
.term-table .strong { font-weight: 700; color: var(--ink); font-size: 16px; }
.term-prod { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); }
.term-sell { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.term-sell:hover { color: var(--blue-deep); }
.term-note { font-size: 13px; color: var(--muted); padding: 14px 18px; margin: 0; border-top: 1px solid var(--line); background: var(--thead); }
.term-note a { color: var(--blue); font-weight: 600; }

.term-form { position: sticky; top: 88px; }
.term-form-head { margin: 0 0 14px; }
.term-form-title { font-size: 21px; margin: 0 0 6px; color: var(--ink); }
.term-form-sub { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.term-form-kicker { font-family: var(--font-body); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); font-weight: 700; margin: 0 0 12px; }
.leadform.card { border: 1px solid var(--line); padding: 24px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); }

/* RFQ explainer strip — makes clear this is a request-for-quote, not just a price list */
.rfq-strip { display: flex; align-items: center; gap: 18px; background: var(--blue-soft); border: 1px solid #DBE6FF; border-radius: 14px; padding: 18px 22px; margin-bottom: 22px; }
.rfq-ic { font-size: 26px; flex: 0 0 auto; }
.rfq-title { margin: 0 0 3px; font-family: var(--font-head); font-weight: 800; font-size: 16.5px; color: var(--ink); }
.rfq-d { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.rfq-btn { flex: 0 0 auto; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 20px; border-radius: 10px; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 16px rgba(37,99,235,.28); transition: background .2s; }
.rfq-btn:hover { background: var(--blue-deep); }
@media (max-width: 720px) {
  .rfq-strip { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rfq-btn { width: 100%; text-align: center; }
}

/* value cards — modern, soft */
.term-vals { border-top: 1px solid var(--line); background: var(--card); padding: 76px 0; }
.term-vals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tval { padding: 28px 22px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 14px; }
.tval-n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-family: var(--font-head); font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.tval h3 { font-size: 18px; margin: 0 0 6px; color: var(--ink); }
.tval p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* process */
.term-how { padding: 70px 0; border-top: 1px solid var(--line); background: var(--bg-tint); }
.term-how h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 30px; color: var(--ink); }
.term-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.thow { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: var(--shadow-soft); }
.thow h3 { font-size: 19px; margin: 0 0 8px; color: var(--ink); }
.thow h3 span { color: var(--blue); }
.thow p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }

/* live feed */
.live { padding: 60px 0 72px; border-top: 1px solid var(--line); background: var(--card); }
.live h2 { font-size: clamp(24px, 3vw, 34px); color: var(--ink); }
.live-sub { color: var(--muted); }
.live-item { border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; background: var(--bg-tint); box-shadow: var(--shadow-soft); font-size: 14.5px; }
.live-time { font-size: 12px; color: var(--muted); }
.live-stage { border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.live-stage.searching { background: #FEF3C7; color: #92400E; }
.live-stage.offers { background: #DCFCE7; color: #166534; }
.live-stage.chosen { background: var(--blue); color: #fff; }
.live-stage.price { background: var(--blue-soft); color: var(--blue-deep); }

/* form controls — modern, 52px */
.field label { font-family: var(--font-body); font-weight: 600; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea { background: #fff; border-color: var(--line); border-width: 1.5px; min-height: 52px; border-radius: 10px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.segments .seg { border-radius: 10px; border-color: var(--line); border-width: 1.5px; min-height: 46px; }
.segments .seg.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary { border-radius: 10px; min-height: 54px; line-height: 54px; font-size: 16px; font-weight: 700; text-transform: none; font-family: var(--font-head); background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.28); }
.btn-primary:hover { background: var(--blue-deep); filter: none; }
.btn-secondary { border-radius: 10px; border-width: 1.5px; border-color: var(--blue); color: var(--blue); }
.lf-progress .dot { border-radius: 999px; height: 5px; }
.lf-progress .dot.active { background: var(--blue); }
.lf-title { font-family: var(--font-head); font-size: 21px; }
.preselected-badge { border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); font-weight: 700; }
.price-hint { border-radius: 8px; background: var(--blue-soft); color: var(--blue-deep); font-weight: 600; font-size: 13.5px; }
.spinner { border-color: var(--blue-soft); border-top-color: var(--blue); }
.search-bar-fill { background: var(--blue); }
.search-steps li.done, .search-done { color: var(--blue-deep); }
.dropzone { border-radius: 10px; border-color: var(--line); }

.footer { background: var(--footer-bg); }
.footer-nav a:hover, .footer-langs a:hover { color: var(--stats-accent); }

@media (max-width: 980px) {
  .term-grid { grid-template-columns: 1fr; }
  .term-form { position: static; order: -1; }         /* form first on mobile */
  .term-vals-grid { grid-template-columns: 1fr 1fr; }
  .term-how-grid { grid-template-columns: 1fr; }
  .topnav { display: none; }
  .header-cta { padding: 10px 16px; font-size: 13px; }
}
@media (max-width: 560px) {
  .term-vals-grid { grid-template-columns: 1fr; }
  .term-head { flex-direction: column; align-items: flex-start; }
  .term-updated { text-align: left; }
  .header-cta { display: none; }
  .topbar-right { gap: 10px; }
  .term-table-wrap { overflow-x: auto; }
  .term-table { min-width: 500px; }
}

/* table caption ("Aktualne ceny na rynkach") — header of the price card */
.term-caption { padding: 15px 18px; font-family: var(--font-head); font-weight: 800; font-size: 14.5px; color: var(--ink); border-bottom: 1px solid var(--line); background: var(--thead); letter-spacing: -0.01em; }
