/* Agria-Lánc – agrialanc.hu */
:root {
  --ink: #1f2328;
  --steel: #24272c;
  --steel-2: #2f343a;
  --blue: #1a5fa8;
  --blue-d: #144b86;
  --blue-l: #e8f0fa;
  --amber: #f4a51c;
  --amber-d: #d98c06;
  --bg: #ffffff;
  --soft: #f3f5f8;
  --line: #dde2e8;
  --muted: #5b6470;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-d); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin-top: 1.4em; }
h3 { font-size: 1.15rem; margin-top: 1.2em; }
p { margin: 0 0 1em; }
svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 1.1rem; color: #3a414a; max-width: 62ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--blue); margin: 0 0 .5em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* --- top bar & header --- */
.topbar { background: var(--steel); color: #c9ced6; font-size: .85rem; }
.topbar-inner { display: flex; gap: 24px; justify-content: flex-end; padding: 6px 16px; flex-wrap: wrap; }
.topbar a, .topbar span { color: #c9ced6; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.head-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand img { width: 96px; height: auto; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav a, .sub-toggle { display: block; padding: 10px 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; border-radius: 8px; background: none; border: 0; font-family: inherit; cursor: pointer; white-space: nowrap; }
.nav a:hover, .sub-toggle:hover, .nav a[aria-current] { background: var(--soft); color: var(--blue); }
.sub-toggle::after { content: ""; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: none; }
.has-sub:hover .sub, .has-sub.open .sub { display: block; }
.sub a { font-weight: 500; }
.head-cta { display: flex; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 6px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.nav-toggle svg { width: 1.4em; height: 1.4em; }

/* --- buttons --- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; line-height: 1.1; font-size: 1rem; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn-call { background: var(--amber); color: #1b1b1b; }
.btn-call:hover { background: var(--amber-d); color: #000; }
.btn-quote { background: var(--blue); color: #fff; }
.btn-quote:hover { background: var(--blue-d); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 16px 24px; font-size: 1.1rem; }
.btn-lg svg { width: 1.3em; height: 1.3em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.btn-s { display: inline-block; padding: 5px 10px; border-radius: 7px; font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn-s.q { background: var(--blue); color: #fff; }
.btn-s.q:hover { background: var(--blue-d); color: #fff; }
.btn-s.w { background: #fff; color: var(--blue); border: 1px solid #b9cbe2; margin-left: 4px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-webshop { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; }

/* --- hero --- */
.hero { background: linear-gradient(180deg, #eef3f9 0%, #f7f9fc 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 24px; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); }
.hero-img { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.hero-sub { margin-top: 14px; }
.infoblokk { display: flex; justify-content: flex-end; padding-bottom: 20px; }
.infoblokk img { max-width: 440px; width: 100%; }

.usp { background: var(--steel); color: #fff; }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.usp-grid div { display: flex; flex-direction: column; }
.usp-grid b { font-size: 1.5rem; color: var(--amber); }
.usp-grid span { color: #c9ced6; font-size: .95rem; }

.section { padding-top: 40px; padding-bottom: 40px; }
.band { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* --- cards --- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 18px 0; }
.cards-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #b9cbe2; color: var(--ink); }
.card-img { aspect-ratio: 2 / 1; background: #fff; position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.card-img img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 6px; font-size: 1.08rem; }
.card-body p { color: var(--muted); font-size: .93rem; flex: 1; margin-bottom: 10px; }
.card .more { color: var(--blue); font-size: .92rem; }

/* --- page head / content --- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 0; margin: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.page-head { padding: 22px 0 26px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, #f7f9fc); }
.page-head h1 { margin-bottom: .3em; }
.content { padding-top: 26px; padding-bottom: 40px; }
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.side { position: sticky; top: 96px; display: grid; gap: 16px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.side-box h2 { font-size: 1.05rem; margin: 0 0 10px; }
.side-list { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.side-list li { border-top: 1px solid var(--line); }
.side-list li:first-child { border-top: 0; }
.side-list a { display: block; padding: 7px 0; text-decoration: none; color: var(--ink); }
.side-list a:hover, .side-list a[aria-current] { color: var(--blue); font-weight: 700; }
.prose { max-width: 100%; }
.main-col, .with-side > *, .two-col > * { min-width: 0; }
html { overflow-x: clip; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.bul { padding-left: 1.2em; }
.bul li { margin: .3em 0; }
.fig { margin: 12px 0 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.fig .zoom { display: block; cursor: zoom-in; }
.fig img { margin: 0 auto; max-height: 520px; width: auto; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 12px 0 18px; }
.gallery .fig { margin: 0; display: flex; align-items: center; }

/* --- tables --- */
.tbl { margin: 14px 0 24px; }
.tbl-tools { margin-bottom: 8px; }
.tbl-filter { width: 100%; max-width: 360px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .95rem; }
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
.tbl table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .86rem; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 7px 9px; border-bottom: 1px solid #edf0f3; text-align: right; white-space: nowrap; }
.tbl thead th { background: #eef2f7; color: #2b323a; font-weight: 700; text-align: center; vertical-align: bottom; white-space: normal; min-width: 52px; border-bottom: 1px solid var(--line); }
.tbl tbody th { text-align: left; font-weight: 700; position: sticky; left: 0; background: #fff; z-index: 1; border-right: 1px solid var(--line); }
.tbl tbody tr:nth-child(even) td, .tbl tbody tr:nth-child(even) th { background: #f8fafc; }
.tbl tbody tr:hover td, .tbl tbody tr:hover th { background: var(--blue-l); }
.tbl .act { position: sticky; right: 0; background: #fff; text-align: left; border-left: 1px solid var(--line); z-index: 1; }
.tbl thead .act { background: #eef2f7; }
.tbl-empty { padding: 10px 12px; background: #fff7e6; border: 1px solid #f3d9a4; border-radius: 10px; }

/* --- help / tiers / steps --- */
.help { background: var(--blue-l); border: 1px solid #c8d8ec; border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.side .help { margin: 0; }
.help h2 { font-size: 1.15rem; margin: 0 0 8px; }
.help .actions { margin-top: 10px; }
.side .help .btn { width: 100%; justify-content: center; }
.checks { list-style: none; padding: 0; margin: 10px 0; }
.checks li { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.checks svg { color: #1f8a4c; margin-top: .25em; }
.tiers { margin: 28px 0; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; border-top: 4px solid var(--blue); }
.tier:nth-child(1) { border-top-color: #b8862b; }
.tier:nth-child(3) { border-top-color: #1f8a4c; }
.tier-lvl { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tier h3 { margin: 4px 0 8px; font-size: 1.05rem; }
.tier p { font-size: .93rem; color: #3a414a; margin: 0; }
.how-steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; padding-top: 52px; }
.how-steps li::before { content: counter(s); position: absolute; top: 14px; left: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; }
.prose .how-steps { grid-template-columns: 1fr; }
.steps ol { padding-left: 1.2em; }
.steps li { margin: .5em 0; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.spec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.spec h3 { margin: 0 0 8px; color: var(--blue); }
.spec ul { list-style: none; padding: 0; margin: 0; }
.spec li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.spec li:first-child { border-top: 0; }
.industries { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.industries li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; }
.industries span { color: var(--muted); font-size: .9rem; }
.brand-row { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin: 12px 0; }
.brand-row img { height: 44px; width: auto; }
.al-badge { display: inline-flex; flex-direction: column; align-items: center; font-weight: 900; font-size: 1.6rem; color: var(--blue); line-height: 1; border: 2px solid var(--blue); border-radius: 10px; padding: 6px 12px; }
.al-badge small { font-size: .62rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* --- contact & form --- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.two-col aside { display: grid; gap: 16px; }
.ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 24px; }
.ccard { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); }
.ccard svg { width: 1.5em; height: 1.5em; color: var(--blue); margin-bottom: 6px; }
.ccard b { font-size: 1.1rem; }
.ccard span { color: var(--muted); font-size: .9rem; }
.ccard.call { background: var(--amber); border-color: var(--amber); }
.ccard.call svg, .ccard.call span { color: #1b1b1b; }
.two-col aside .ccards { grid-template-columns: 1fr; margin: 0; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .95rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.qform { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.qform label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.qform input, .qform textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid #c9d1db; border-radius: 9px; font: inherit; font-size: 1rem; background: #fff; }
.qform input:focus, .qform textarea:focus { outline: 3px solid #bcd3f0; border-color: var(--blue); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fhint { font-size: .85rem; color: var(--muted); margin: -4px 0 12px; }
.hp { position: absolute; left: -9999px; }
.fstatus { margin-top: 12px; }
.fstatus .ok { background: #e7f6ec; border: 1px solid #a9dcb9; padding: 12px; border-radius: 10px; }
.fstatus .err { background: #fdecec; border: 1px solid #f1b5b5; padding: 12px; border-radius: 10px; }
.qform [aria-invalid="true"] { border-color: #d33; }

/* --- CTA band & footer --- */
.cta-band { background: var(--blue); color: #fff; }
.cta-inner { display: flex; gap: 24px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0 0 6px; color: #fff; }
.cta-inner p { margin: 0; color: #dbe6f4; max-width: 60ch; }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn-quote { background: #fff; color: var(--blue); }
.site-footer { background: var(--steel); color: #c9ced6; font-size: .93rem; }
.site-footer a { color: #e3e7ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 28px; padding-top: 36px; padding-bottom: 24px; }
.foot-grid h3 { color: #fff; font-size: 1rem; margin-top: 0; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 5px 0; }
.foot-logo { background: #fff; border-radius: 10px; padding: 8px; width: 130px; margin-bottom: 12px; }
.contact-list li, .contact-list a { display: flex; gap: 8px; align-items: center; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #3a3f46; padding-top: 14px; padding-bottom: 18px; font-size: .82rem; }
.mbar { display: none; }

/* --- lightbox --- */
.lightbox { border: 0; padding: 0; max-width: 96vw; max-height: 92vh; background: #fff; border-radius: 12px; }
.lightbox::backdrop { background: rgba(10, 12, 16, .8); }
.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; }
.lb-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--steel); color: #fff; font-size: 24px; cursor: pointer; }

/* --- catalog --- */
.cat-fam { border-top: 3px solid var(--blue); margin-top: 32px; padding-top: 6px; }
.cat-item h3 a { color: var(--ink); text-decoration: none; }

/* --- cookie --- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.cookie p { margin: 0; flex: 1 1 260px; }
.cookie .btn { padding: 8px 14px; }

/* --- responsive --- */
@media (max-width: 1320px) {
  .head-quote { display: none; }
}
@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .head-cta { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; box-shadow: -8px 0 24px rgba(0,0,0,.15); display: none; overflow-y: auto; padding: 70px 12px 24px; z-index: 60; margin: 0; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .sub { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 10px; min-width: 0; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .with-side { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { padding-bottom: 64px; }
  .topbar { display: none; }
  .head-inner { min-height: 64px; gap: 10px; }
  .brand img { width: 72px; }
  .head-call span { display: none; }
  .head-call { padding: 10px 12px; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 28px; gap: 20px; }
  .hero-img { order: 2; }
  .infoblokk { justify-content: center; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .tier-grid, .how-steps { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .frow { grid-template-columns: 1fr; gap: 0; }
  .mbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--steel); border-top: 1px solid #000; }
  .mbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 10px; color: #fff; text-decoration: none; font-size: .75rem; font-weight: 700; }
  .mbar a:first-child { background: var(--amber); color: #1b1b1b; }
  .mbar svg { width: 1.4em; height: 1.4em; }
  .cookie { bottom: 76px; }
  .btn-lg { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .cta-btns .btn { flex: 1 1 100%; justify-content: center; }
}

/* --- print (katalógus) --- */
@media print {
  .topbar, .site-header, .site-footer, .mbar, .cta-band, .crumbs, .actions, .help, .side, .tbl-tools, .act, .noprint, .cookie, .tiers { display: none !important; }
  body { font-size: 10pt; padding: 0; }
  .with-side { display: block; }
  .tbl-scroll { overflow: visible; border: 0; }
  .tbl table { font-size: 7.5pt; }
  .tbl tbody th { position: static; }
  .fig { border: 0; padding: 0; break-inside: avoid; }
  .fig img { max-height: 60mm; width: auto; }
  .cat-item { break-inside: avoid-page; }
  a { color: inherit; text-decoration: none; }
}
