/* ==========================================================================
   Agriapipe – stíluslap
   Színek a régi oldalról: zöld #57B56E / #52AE69, sötét #252525, szürke #707070
   ========================================================================== */
@import url("../fonts/fonts.249a222894cd.css");

:root {
  --green: #57b56e;
  --green-2: #52ae69;
  --green-dark: #3e9455;
  --green-ink: #2f7d45;          /* zöld szöveg fehér háttéren (olvashatóság) */
  --green-soft: #eaf6ed;
  --ink: #252525;
  --text: #3b3b3b;
  --muted: #707070;
  --line: #dedede;
  --bg: #f2f2f0;
  --paper: #ffffff;
  --dark: #333333;
  --darker: #252525;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.18);
  --header-h: 84px;
  --container: 1200px;
  --font: 'Ubuntu', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.65;
  color: var(--text); background: var(--bg);
  background-image: radial-gradient(rgba(0,0,0,.018) 1px, transparent 1px);
  background-size: 4px 4px;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; }
img { height: auto; border: 0; }
a { color: var(--green-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, h5 { font-family: var(--font); color: var(--ink); line-height: 1.25; font-weight: 400; margin: 1.6em 0 .6em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }
h3 { font-size: 1.15rem; font-weight: 500; }
p { margin: 0 0 1em; }
sup { line-height: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }
svg { width: 1em; height: 1em; display: inline-block; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn, .green_btn, .prose a.green_btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  background: var(--green-2); color: #fff !important; border: 2px solid var(--green-2);
  border-radius: 999px; padding: .55em 1.35em; font: 500 .95rem/1.2 var(--font);
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover, .green_btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(62,148,85,.3); }
.btn-outline { background: transparent; color: var(--green) !important; }
.btn-outline:hover { background: var(--green-2); color: #fff !important; }
.site-footer .btn-outline { color: #fff !important; border-color: var(--green); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06); transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { flex: none; display: block; line-height: 0; }
.logo img { width: 112px; height: auto; }
.main-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-sub-toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font: 500 15px/1.2 var(--font); background: none; border: 0; cursor: pointer;
}
.nav-list > li > a:hover, .nav-sub-toggle:hover { color: var(--green-ink); background: var(--green-soft); }
.nav-list > li.is-active > a, .nav-list > li.is-active > .nav-sub-toggle { color: var(--green-ink); }
.nav-list > li.is-active > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--green); }
.nav-sub-toggle svg { transition: transform .2s; }
.nav-sub {
  list-style: none; margin: 0; padding: 18px; position: absolute; left: 50%; top: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(5, 132px); gap: 6px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-sub::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-sub::after { content: ""; position: absolute; top: -7px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: #fff; }
.has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub, .has-sub.is-open .nav-sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.has-sub:hover .nav-sub-toggle svg, .has-sub.is-open .nav-sub-toggle svg { transform: rotate(180deg); }
.nav-sub a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 12px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.3; }
.nav-sub a:hover, .nav-sub a[aria-current] { background: var(--green-soft); color: var(--green-ink); }
.nav-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--dark); display: grid; place-items: center; transition: background .2s, transform .2s; }
.nav-ico img { width: 34px; height: 34px; object-fit: contain; }
.nav-sub a:hover .nav-ico, .nav-sub a[aria-current] .nav-ico { background: var(--green); transform: scale(1.05); }

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.lang-switch a { font: 500 13px/1 var(--font); padding: 7px 10px; border-radius: 999px; color: var(--muted); text-decoration: none; letter-spacing: .04em; }
.lang-switch a[aria-current] { background: var(--green-2); color: #fff; }
.lang-switch a:not([aria-current]):hover { color: var(--green-ink); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 24px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg + svg { display: none; }
.nav-open .nav-toggle svg:first-child { display: none; }
.nav-open .nav-toggle svg + svg { display: inline-block; }

@media (max-width: 1080px) {
  :root { --header-h: 70px; }
  .logo img { width: 96px; }
  .nav-toggle { display: inline-flex; }
  /* a backdrop-filter a fixed menüpanelt a fejléchez kötné, mobilon kikapcsoljuk */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; padding: 12px 20px 40px;
    transform: translateX(100%); transition: transform .3s ease; margin: 0; visibility: hidden;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid #eee; }
  .nav-list > li > a, .nav-sub-toggle { width: 100%; justify-content: space-between; padding: 16px 6px; font-size: 18px; }
  .nav-list > li.is-active > a::after { display: none; }
  .nav-sub { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; display: none; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); padding: 4px 0 16px; }
  .nav-sub::after, .nav-sub::before { display: none; }
  .has-sub.is-open .nav-sub { display: grid; transform: none; }
  .has-sub:hover .nav-sub { transform: none; }
  .header-tools { margin-left: auto; }
}

/* ---------- Search band (subpages) ---------- */
.search-band { background: var(--darker); color: #e9e9e9; }
.search-band-inner { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; text-align: center; font-size: 15px; }
.search-band-ico { color: var(--green); font-size: 22px; line-height: 0; }

/* ---------- Home: technology search ---------- */
.tech-search { background: var(--darker); color: #eaeaea; position: relative; z-index: 2; }
.ts-cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 20px 0; text-align: center; font-size: 16px; }
.ts-cta .search-band-ico { font-size: 26px; }
.ts-panel { padding: 8px 0 34px; }
.ts-panel[hidden] { display: none; }
.ts-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 14px; margin-bottom: 8px; }
.ts-head h2 { color: #fff; margin: 12px 0 0; font-size: 1.15rem; font-weight: 400; }
.ts-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; font-size: 22px; cursor: pointer; }
.ts-close:hover { background: var(--green-2); border-color: var(--green-2); }
.ts-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.ts-row { counter-increment: step; display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: 12px 24px; padding: 14px 0; border-bottom: 1px dashed rgba(255,255,255,.1); animation: tsIn .3s ease; }
.ts-row[hidden] { display: none; }
@keyframes tsIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ts-label { color: #cfcfcf; font-size: 15px; display: flex; align-items: center; gap: 12px; }
.ts-label::before { content: counter(step); flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 500; }
.ts-row.is-done .ts-label::before { background: var(--green-2); }
.ts-field { min-width: 0; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 10px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #fff; cursor: pointer; transition: all .2s; }
.seg input:checked + span { background: var(--green-2); border-color: var(--green-2); }
.seg input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.seg label:hover span { border-color: var(--green); }
.ts-field select, .ts-size input {
  width: 100%; max-width: 380px; height: 46px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: #fff; color: var(--ink);
  font: 400 16px var(--font); padding: 0 14px;
}
.ts-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2357b56e' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
.ts-size { display: flex; align-items: center; gap: 10px; max-width: 380px; }
.ts-size input { max-width: none; }
.ts-range { display: flex; align-items: center; gap: 18px; max-width: 620px; }
.ts-range output { flex: none; min-width: 92px; text-align: center; background: var(--green-2); color: #fff; border-radius: 8px; padding: 6px 10px; font-weight: 500; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--green) var(--p, 0%), rgba(255,255,255,.2) var(--p, 0%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255,255,255,.2); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--green); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 4px solid var(--green); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--green); }
.ts-results { margin-top: 18px; }
.ts-results:empty { display: none; }
.ts-results h3 { color: #fff; margin: 10px 0 14px; font-weight: 400; }
.ts-results .count { color: var(--green); font-weight: 500; }
.ts-hits { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ts-hit { display: flex; align-items: center; gap: 14px; background: #fff; color: var(--ink); text-decoration: none; padding: 14px 16px; border-radius: 12px; transition: transform .2s, box-shadow .2s; animation: tsIn .3s ease both; }
.ts-hit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.35); color: var(--ink); }
.ts-hit img { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--dark); padding: 4px; object-fit: contain; }
.ts-hit strong { display: block; font-weight: 500; font-size: 17px; }
.ts-hit small { display: block; color: var(--muted); font-size: 13px; }
.ts-hit .more { margin-left: auto; color: var(--green-ink); font-size: 13px; white-space: nowrap; }
.ts-none { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; justify-content: space-between; }
.ts-none p { margin: 0; flex: 1 1 320px; }
.ts-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.ts-actions .btn-outline { color: #fff !important; border-color: rgba(255,255,255,.35); }
.ts-disclaimer { margin-top: 22px; font-size: 13px; color: #a9a9a9; }
.ts-disclaimer a { color: var(--green); }
@media (max-width: 760px) {
  .ts-row { grid-template-columns: 1fr; gap: 10px; }
  .ts-field select, .ts-size, .ts-range { max-width: none; }
  .ts-cta { padding: 16px 0; font-size: 15px; }
  .ts-head h2 { font-size: 1.05rem; }
}

/* ---------- Home: hero ---------- */
.hero { position: relative; height: clamp(260px, 38vw, 500px); overflow: hidden; background: #1d1d1d; color: #fff; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.04); transition: opacity 1.2s ease, transform 7s ease; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-inner { position: relative; height: 100%; display: flex; align-items: center; }
.hero-title { margin: 0; background: rgba(20,20,20,.72); padding: clamp(18px, 3vw, 40px) clamp(20px, 3.5vw, 44px); border-left: 5px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; font-size: clamp(1.25rem, .9rem + 1.7vw, 2.1rem); line-height: 1.4; font-weight: 400; max-width: 680px; backdrop-filter: blur(2px); }
.hero-dots { position: absolute; right: 24px; bottom: 18px; display: flex; gap: 8px; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.hero-dot.is-active { background: var(--green); border-color: var(--green); }
@media (max-width: 600px) { .hero-inner { align-items: flex-end; padding-bottom: 54px; } .hero-title { border-radius: 0 var(--radius) var(--radius) 0; } .hero-dots { right: 50%; transform: translateX(50%); } }

/* ---------- Home: intro + service cards ---------- */
.intro { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 90px); }
.intro-title { text-align: center; margin: 0 auto clamp(28px, 4vw, 48px); max-width: 820px; font-weight: 400; color: #333; font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); }
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.service-card { grid-column: span 2; background: var(--paper); border-radius: var(--radius); padding: 28px 26px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; transition: transform .25s, box-shadow .25s; border-top: 4px solid var(--green); }
.service-card:nth-child(4) { grid-column: 2 / span 2; }
.service-card:nth-child(5) { grid-column: 4 / span 2; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.1); }
.service-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 0 auto 6px; box-shadow: 0 8px 20px rgba(87,181,110,.35); }
.service-icon img { max-width: 40px; max-height: 50px; }
.service-card h2 { align-self: center; text-align: center; color: var(--green-ink); text-transform: uppercase; letter-spacing: .02em; font-size: 1.35rem; margin: 16px 0 12px; }
.service-card p { color: #444; font-size: 15px; flex: 1; }
.service-card .btn { align-self: flex-end; }
@media (max-width: 980px) { .service-grid { grid-template-columns: 1fr 1fr; } .service-card, .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: auto; } .service-card:nth-child(5) { grid-column: 1 / -1; max-width: calc(50% - 11px); justify-self: center; } }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } .service-card:nth-child(5) { max-width: none; } }

/* ---------- Subpage layout ---------- */
.page { padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
@media (max-width: 960px) { .page-grid { grid-template-columns: 1fr; } }
.content { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 48px); min-width: 0; }
.page-title { margin-top: 0; }
.breadcrumb { margin: 0 0 6px; font-size: 14px; }
.breadcrumb a { text-decoration: none; }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 16px; }
@media (min-width: 961px) and (min-height: 880px) { .page-svc .sidebar, .page-page .sidebar { position: sticky; top: calc(var(--header-h) + 20px); } }
.side-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.site-search-form { display: flex; align-items: center; background: #f4f4f4; border-radius: 999px; padding: 4px 4px 4px 16px; border: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-search-form:focus-within { border-color: var(--green); background: #fff; }
.site-search-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 15px var(--font); padding: 8px 0; color: var(--ink); outline: none; }
.site-search-form button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--green-2); color: #fff; cursor: pointer; font-size: 17px; display: grid; place-items: center; }
.site-search-form button:hover { background: var(--green-dark); }
.site-search-form.big { max-width: 640px; margin-bottom: 24px; }
.site-search-form.big input { font-size: 17px; }
.side-mini { display: block; margin-top: 10px; font-size: 13px; font-style: italic; text-align: right; text-decoration: none; }
.side-nav h2 { margin: 0 0 10px; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--green-ink); }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li a { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; color: var(--ink); text-decoration: none; font-size: 15px; border-bottom: 1px solid #f0f0f0; }
.side-nav li a::after { content: "›"; color: #999; font-size: 18px; line-height: 1; }
.side-nav li a:hover { color: var(--green-ink); }
.side-nav li.is-current > a { color: var(--green-ink); font-weight: 500; }
.side-nav li.is-current > a::after { content: "•"; color: var(--green); }
.side-nav .side-sub { padding-left: 14px; }
.side-nav .side-sub a { font-size: 14px; color: #555; padding: 6px 0; }
.side-nav .side-sub ul a { font-size: 13px; color: #777; }
.side-nav .side-sub ul { padding-left: 14px; display: none; }
.side-nav .side-nodig > li.is-current > ul { display: block; }
.side-nav > ul > li:not(.is-current) > .side-sub:not(.side-nodig) { display: none; }
.page-svc .side-nav > ul > li > .side-nodig { display: block; }
.side-nav li:last-child > a { border-bottom: 0; }

/* ---------- Prose (CMS content) ---------- */
.prose { font-size: 16.5px; }
.prose > :first-child, .prose > :first-child > :first-child, .prose > .contact_info > :first-child { margin-top: 0; }
.prose h1 { color: #222; }
.prose h1 + h2 { margin-top: .4em; color: var(--muted); font-size: 1.2rem; }
.prose h2 { color: var(--green-ink); }
.prose h2[id], .prose section[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.prose section + section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .3em; }
.prose img { border-radius: 10px; vertical-align: middle; }
.prose img[style*="float:left"], .prose img.float-left { float: left; margin: 4px 22px 14px 0; max-width: 42%; }
.prose img[style*="float:right"] { float: right; margin: 4px 0 14px 22px; max-width: 42%; }
.prose article { overflow: hidden; padding: 26px 0; border-bottom: 1px solid var(--line); }
.prose article:last-of-type { border-bottom: 0; }
.prose .article-title { color: var(--ink); font-size: 1.3rem; font-weight: 500; margin: 1.4em 0 .3em; }
.prose article .article-title { margin-top: 0; }
.prose .article-author { color: var(--muted); font-size: 1rem; font-weight: 400; margin: 0 0 .3em; }
.prose .article-published { color: var(--muted); font-size: .95rem; font-style: italic; }
.prose .figure-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.prose .figure-row[style*="center"] { justify-content: center; }
.prose .figure-row br { display: none; }
.prose .footnote { font-size: 13px; color: var(--muted); }
.prose .separator { height: 1px; background: var(--line); margin: 2.4rem 0; clear: both; }
.prose .green_btn { margin-top: .4em; }
.prose p[style*="right"] { clear: both; }
.prose .structural-figure { margin: 10px auto; }
.prose sup { font-size: .7em; }
.prose table { border-collapse: collapse; width: 100%; max-width: 640px; font-size: 15px; margin: 6px 0 14px; }
.prose td, .prose th { padding: 9px 12px; border-bottom: 1px solid #ececec; vertical-align: top; text-align: left; }
.prose table.stripes tr:nth-child(odd) td { background: #f6f9f6; }
.prose table.stripes td:first-child { color: var(--muted); width: 40%; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1em; }
.embed { position: relative; width: 100%; max-width: 760px; aspect-ratio: 16 / 9; margin: 0 0 1.4em; border-radius: 12px; overflow: hidden; background: #111; }
.embed iframe, .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-video { aspect-ratio: auto; position: relative; background: #000; }
.embed-video video { position: static; height: auto; display: block; }
.prose .contact_info h1 { margin-bottom: .6em; }
.contact-bullets { list-style: none; padding: 0 !important; display: grid; gap: 10px; margin: 0 0 1.6em; }
.contact-bullets li { display: flex; gap: 12px; align-items: center; background: var(--green-soft); padding: 12px 16px; border-radius: 10px; margin: 0; }
.contact-bullets .icon { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--green) center / 18px no-repeat; }
.contact-bullets .icon-mail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12z' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='12' cy='10' r='2.6' fill='%23fff'/%3E%3C/svg%3E"); }
.contact-bullets .icon-phone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h3.5l2 5-2.5 1.5a11 11 0 0 0 6.5 6.5L16 13.5l5 2V19a2 2 0 0 1-2 2A17 17 0 0 1 3 5a2 2 0 0 1 2-2z' fill='none' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.contact-bullets .icon-email { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M3.5 6.5 12 13l8.5-6.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); }
.contact-bullets a { color: inherit; }

/* No-dig icon list on the renovation page */
.nodig-icon-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 1.6em 0 0; }
.nodig-icon-list li { margin: 0; }
.nodig-icon-list a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 18px 10px; border-radius: 12px; background: #f7f7f7; text-decoration: none; color: var(--ink); transition: background .2s, transform .2s; height: 100%; }
.nodig-icon-list a:hover { background: var(--green-soft); transform: translateY(-2px); }
.nodig-icon-list .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--dark) center / 40px no-repeat; }
.nodig-icon-list a:hover .icon { background-color: var(--green); }
.nodig-icon-list .icon-02 { background-image: url("../../img/v_icon02.6afda8f756e4.png"); }
.nodig-icon-list .icon-03 { background-image: url("../../img/v_icon03.bcec7aa59dad.png"); }
.nodig-icon-list .icon-04 { background-image: url("../../img/v_icon04.a54db811254c.png"); }
.nodig-icon-list .icon-05 { background-image: url("../../img/v_icon05.fafe6c6f6059.png"); }
.nodig-icon-list .icon-06 { background-image: url("../../img/v_icon06.bf924e43a9b8.png"); }
.nodig-icon-list .icon-07 { background-image: url("../../img/v_icon07.8492d757adbb.png"); }
.nodig-icon-list .title { font-size: 15px; }

/* Inline galleries in content */
.inline-gallery { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 1em 0 1.6em; clear: both; }
.inline-gallery li { margin: 0; }
.inline-gallery li:only-child { grid-column: 1 / -1; max-width: 600px; }

/* ---------- Media tiles (gallery + inline) ---------- */
.media { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #ddd; aspect-ratio: 4 / 3; }
.media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .4s ease, filter .3s; display: block; }
.media:hover img { transform: scale(1.06); }
.media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.35), transparent 50%); opacity: 0; transition: opacity .3s; }
.media:hover::after { opacity: 1; }
.media-video { aspect-ratio: 16 / 9; }
.inline-gallery li:only-child .media { aspect-ratio: 16 / 9; }
.media-video::before, .media .play {
  content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(87,181,110,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") 55% 50% / 28px no-repeat;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .2s;
}
.media .play { display: none; }
.media-video:hover::before { transform: scale(1.1); }

/* ---------- Gallery pages ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.gallery-card { display: block; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.gallery-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.12); color: var(--green-ink); }
.gallery-card-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; aspect-ratio: 16 / 10; background: #eee; }
.gallery-card-thumbs img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s; }
.gallery-card:hover .gallery-card-thumbs img { filter: none; }
.gallery-card-thumbs img:only-child { grid-column: 1 / -1; grid-row: span 2; }
.gallery-card-title { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-size: 1.15rem; }
.gallery-card-title img { width: 40px; height: 40px; border-radius: 50%; background: var(--dark); padding: 4px; }
.gallery-card:hover .gallery-card-title img { background: var(--green); }
.gallery-title { display: flex; align-items: center; gap: 14px; }
.gallery-title img { width: 54px; height: 54px; border-radius: 50%; background: var(--green); padding: 4px; }
.gallery-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin: 0 0 18px; scrollbar-width: thin; }
.gallery-tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-size: 14px; }
.gallery-tabs a img { width: 28px; height: 28px; border-radius: 50%; background: var(--dark); padding: 2px; }
.gallery-tabs a[aria-current], .gallery-tabs a:hover { background: var(--green-2); color: #fff; }
.gallery-tabs a[aria-current] img, .gallery-tabs a:hover img { background: var(--green-dark); }
.gallery-section { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px clamp(16px, 3vw, 28px) 26px; margin-bottom: 22px; }
.gallery-section h2 { margin: 0 0 16px; font-size: 1.2rem; color: var(--green-ink); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
@media (max-width: 520px) { .media-grid, .inline-gallery { grid-template-columns: repeat(2, 1fr); } .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,10,.94); display: none; align-items: center; justify-content: center; touch-action: pan-y; }
.lb.is-open { display: flex; animation: lbIn .2s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { max-width: min(1400px, 94vw); max-height: 86vh; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: 86vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-stage video { width: min(1100px, 94vw); max-height: 86vh; background: #000; border-radius: 6px; }
.lb button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: var(--green-2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -26px; }
.lb-next { right: 16px; top: 50%; margin-top: -26px; }
.lb-prev svg { transform: rotate(180deg); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #bbb; font-size: 14px; }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 10px; margin: 0; } .lb-prev { left: 12px; } .lb-next { right: 12px; } }

/* ---------- Site search results ---------- */
.ss-hit { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ss-hit a { font-size: 1.15rem; font-weight: 500; text-decoration: none; }
.ss-hit p { margin: 4px 0 0; color: #555; font-size: 15px; }
.ss-hit mark { background: #dff1e3; color: inherit; padding: 0 2px; border-radius: 3px; }
.ss-count { color: var(--muted); }

/* ---------- File listings (presentations) ---------- */
.file-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.file-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid #f0f0f0; }
.file-list li span { color: var(--muted); white-space: nowrap; font-size: 14px; }
.file-list li.dir a::before { content: "📁 "; }
.file-list li.file a::before { content: "📄 "; }
.file-list a { text-decoration: none; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #bdbdbd; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding-top: 52px; padding-bottom: 44px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-links ul, .footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.site-footer a { color: #bdbdbd; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-contact { border-left: 1px solid #4a4a4a; padding-left: 40px; }
.footer-contact h2 { color: var(--green); font-weight: 500; font-size: 1.25rem; margin: 0 0 18px; }
.contact-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list svg { color: var(--green); font-size: 20px; flex: none; }
.footer-bottom { background: var(--darker); font-size: 14px; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom p { margin: 0; color: #8d8d8d; }
.footer-eu { background: #fff; text-align: center; padding: 18px 20px; }
.footer-eu img { max-width: 100%; height: auto; }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-contact { border-left: 0; padding-left: 0; border-top: 1px solid #4a4a4a; padding-top: 30px; }
}
@media (max-width: 560px) { .footer-links { grid-template-columns: 1fr 1fr; } .footer-links ul:last-child { grid-column: 1 / -1; } }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--green-2); color: #fff; font-size: 22px; box-shadow: 0 8px 20px rgba(0,0,0,.25); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; display: grid; place-items: center; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-dark); }

@media print {
  .site-header, .search-band, .sidebar, .site-footer, .to-top, .tech-search { display: none !important; }
  body { background: #fff; }
  .content { box-shadow: none; padding: 0; }
}

/* régi zöld kiemelések a tartalomban */
.text-green { color: var(--green-ink); font-weight: 500; }
@media (min-width: 761px) { .gallery-tabs { flex-wrap: wrap; overflow: visible; } }
.content > :first-child { margin-top: 0; }
