:root {
  --ink: #17231b;
  --muted: #5d695f;
  --paper: #f6f3eb;
  --white: #fffdf8;
  --green: #244d35;
  --green-2: #3f6d4d;
  --gold: #b78b3a;
  --line: rgba(23, 35, 27, .14);
  --shadow: 0 24px 70px rgba(28, 45, 33, .12);
  --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.6; }
a { color: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 99999; padding: 10px 16px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(246, 243, 235, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand-logo { width: 154px; height: 66px; display: block; object-fit: contain; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; color: var(--white); background: var(--green); border-radius: 50% 50% 45% 55%; font-weight: 800; letter-spacing: .04em; }
.brand strong { display: block; font-family: Georgia, serif; font-size: 1.2rem; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav a { display: block; padding: 12px 10px; font-size: .9rem; font-weight: 650; text-decoration: none; border-radius: 9px; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.active { color: var(--green); background: rgba(36, 77, 53, .08); }
.has-submenu { position: relative; display: flex; align-items: center; }
.has-submenu > ul { position: absolute; left: 0; top: 100%; width: 250px; display: none; margin: 0; padding: 12px 10px 10px; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.has-submenu:hover > ul, .has-submenu:focus-within > ul { display: block; }
.submenu-toggle { width: 28px; height: 36px; display: grid; place-items: center; border: 0; padding: 0; background: none; color: var(--muted); font-size: 0; cursor: pointer; }
.submenu-toggle::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.has-submenu.submenu-open > .submenu-toggle::before { transform: translateY(2px) rotate(225deg); }
.menu-toggle { display: none; border: 1px solid var(--line); padding: 10px 14px; border-radius: 10px; background: var(--white); font: inherit; font-weight: 700; }
.hero { padding: 72px 0 54px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--green-2); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
h1 { max-width: 760px; margin: 0; font-size: clamp(3rem, 6.4vw, 6.2rem); font-weight: 500; letter-spacing: -.05em; }
h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -.035em; }
h3 { margin: 0; font-size: 1.65rem; font-weight: 600; }
.lead { max-width: 650px; margin: 28px 0 0; color: var(--muted); font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-logo { width: min(310px, 72%); max-height: 150px; display: block; margin: 0 0 24px; object-fit: contain; object-position: left center; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 750; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--green); box-shadow: 0 10px 25px rgba(36, 77, 53, .22); }
.button.ghost { border: 1px solid var(--line); background: rgba(255,255,255,.4); }
.button.light { color: var(--green); background: var(--white); }
.hero-visual { position: relative; min-height: 570px; overflow: hidden; border-radius: 240px 240px 24px 24px; background: radial-gradient(circle at 68% 22%, rgba(255,255,255,.55), transparent 22%), linear-gradient(165deg, #b9c29c 0 36%, #8f9a62 36% 53%, #c4a967 53% 71%, #6d7b48 71%); box-shadow: var(--shadow); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,38,25,.32), transparent 55%); }
.hero-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 58% center; }
.video-hero { position: relative; min-height: clamp(650px, calc(100svh - 88px), 880px); display: grid; align-items: center; padding: 72px 0; color: white; background: #263c2d url("../../media/somogyi-birtok-nyitovideo-poster.jpg") center / cover no-repeat; }
.hero-video, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; object-position: center; }
.hero-shade { z-index: 1; background: linear-gradient(90deg, rgba(10,20,13,.8) 0%, rgba(10,20,13,.57) 48%, rgba(10,20,13,.18) 100%), linear-gradient(0deg, rgba(10,20,13,.42), transparent 50%); }
.hero-content { position: relative; z-index: 2; }
.video-hero .hero-copy { max-width: 790px; }
.video-hero .hero-logo { width: min(330px, 72%); max-height: 160px; padding: 12px 18px; background: rgba(255,253,248,.9); border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.video-hero .eyebrow { color: #e6d6a8; }
.video-hero .lead { color: rgba(255,255,255,.88); text-shadow: 0 2px 20px rgba(0,0,0,.38); }
.video-hero .button.primary { color: var(--green); background: var(--white); }
.video-hero .button.ghost { color: white; border-color: rgba(255,255,255,.46); background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.visual-label { position: absolute; z-index: 2; left: 28px; bottom: 26px; padding: 8px 12px; color: white; background: rgba(23,35,27,.5); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: .78rem; backdrop-filter: blur(8px); }
.field-lines { position: absolute; left: -15%; right: -15%; bottom: -26%; height: 66%; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); box-shadow: 0 -24px 0 rgba(255,255,255,.16), 0 -50px 0 rgba(255,255,255,.12), 0 -82px 0 rgba(255,255,255,.1); transform: perspective(320px) rotateX(58deg); }
.section { padding: 92px 0; }
.intro-strip { padding-top: 38px; }
.two-company-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two-company-grid article { position: relative; padding: 52px 72px 52px 0; }
.two-company-grid article + article { padding-left: 72px; border-left: 1px solid var(--line); }
.two-company-grid h2 { font-size: 2.3rem; }
.two-company-grid p:last-child { max-width: 470px; color: var(--muted); }
.company-number { position: absolute; top: 22px; right: 24px; color: rgba(36,77,53,.16); font: 700 4.5rem/1 Georgia,serif; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 40px; }
.section-heading > p { max-width: 420px; margin: 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { position: relative; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; overflow: hidden; color: white; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); text-decoration: none; background-color: var(--green); background-position: center; background-size: cover; transition: transform .25s, box-shadow .25s; }
.feature-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,28,20,.18), rgba(17,28,20,.88)); }
.feature-card > * { position: relative; z-index: 1; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card.agriculture { background-image: url("../../kepek/mezogazdasag1.jpg"); }
.feature-card.einkorn { background-image: url("../../kepek/mezogazdasag3.jpg"); }
.feature-card.timber { background-image: url("../../kepek/Fűrászáru2.jpg"); }
.feature-card.saw { background-image: url("../../kepek/Fűrászáru4.jpg"); }
.feature-card.firewood { background-image: url("../../kepek/Tűzifa2.jpg"); }
.feature-card.services { background-image: url("../../kepek/Konrád Ház.jpg"); }
.card-index { align-self: flex-end; opacity: .45; font: 700 2.5rem/1 Georgia,serif; }
.card-label { margin: 0 0 10px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; opacity: .72; }
.feature-card p:not(.card-label) { max-width: 510px; opacity: .78; }
.text-link { display: inline-block; margin-top: 10px; font-weight: 800; }
.grants-teaser { color: white; background: var(--green); }
.grants-inner { display: flex; justify-content: space-between; align-items: center; gap: 50px; }
.grants-inner > div { max-width: 720px; }
.grants-teaser .eyebrow { color: #c9d9ca; }
.grants-teaser p:not(.eyebrow) { color: rgba(255,255,255,.78); }
.site-footer { padding: 48px 0; color: rgba(255,255,255,.78); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-grid strong { color: white; font: 500 1.6rem Georgia,serif; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-links a { color: white; text-decoration: none; }
.page-hero { padding: 72px 0 54px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(255,255,255,.3), rgba(201,190,151,.12)); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.8rem, 6vw, 5.8rem); }
.page-hero .lead { max-width: 780px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { text-decoration: none; }
.content-section { padding: 72px 0; }
.prose { max-width: 840px; }
.prose.wide { max-width: 1040px; }
.prose p { margin: 0 0 1.25em; font-size: 1.08rem; }
.prose h2 { margin: 1.5em 0 .55em; font-size: clamp(1.9rem, 3.8vw, 3rem); }
.prose h3 { margin: 1.5em 0 .5em; }
.prose a:not(.button) { color: var(--green); font-weight: 700; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 70px; align-items: start; }
.side-note { position: sticky; top: 118px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.side-note h2 { font-size: 1.65rem; }
.side-note p { color: var(--muted); }
.profile-photo { width: calc(100% + 56px); height: 300px; display: block; margin: -28px -28px 26px; object-fit: cover; object-position: center 24%; border-radius: var(--radius) var(--radius) 0 0; }
.wide-photo { width: 100%; max-height: 560px; display: block; margin: 0 0 38px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.prose .wide-photo { margin-top: 28px; }
.image-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0 44px; }
.image-gallery img { width: 100%; height: 250px; display: block; object-fit: cover; border-radius: 14px; }
.link-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
.link-card { display: block; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.link-card h2, .link-card h3 { margin-bottom: 12px; font-size: 1.55rem; }
.link-card p { margin: 0 0 18px; color: var(--muted); }
.contact-cta { margin-top: 54px; padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 28px; color: white; background: var(--green); border-radius: var(--radius); }
.contact-cta h2 { margin: 0 0 8px; font-size: 2rem; }
.contact-cta p { margin: 0; color: rgba(255,255,255,.8); }
.price-intro { margin: 34px 0; padding: 24px; border-left: 4px solid var(--gold); background: rgba(183,139,58,.08); }
.price-intro p { margin: 3px 0; }
.price-table-wrap { margin: 22px 0 42px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.price-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.price-table th, .price-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { color: var(--green); background: rgba(36,77,53,.07); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-weight: 750; white-space: nowrap; }
.price-table tr:last-child td { border-bottom: 0; }
.compact-stakes .price-table { min-width: 0; display: block; }
.compact-stakes thead, .compact-stakes tbody { display: block; }
.compact-stakes thead tr { display: grid; grid-template-columns: 1fr auto; }
.compact-stakes tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-stakes tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--line); }
.compact-stakes th, .compact-stakes td { border-bottom: 0; }
.compact-stakes tbody tr:nth-last-child(-n+2) { border-bottom: 0; }
.note { color: var(--muted); font-size: .92rem !important; }
.project-list { display: grid; gap: 24px; }
.project-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.project-card h2 { margin-bottom: 18px; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.project-image { width: 100%; max-height: 620px; display: block; margin-top: 28px; object-fit: contain; background: white; border: 1px solid var(--line); border-radius: 12px; }
.project-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.project-meta div { padding: 16px; background: rgba(36,77,53,.06); border-radius: 10px; }
.project-meta small { display: block; color: var(--muted); }
.service-panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-panel { position: relative; min-height: 500px; display: flex; flex-direction: column; justify-content: end; overflow: hidden; padding: 34px; color: white; border-radius: var(--radius); background: var(--green); }
.service-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,25,17,.88), rgba(13,25,17,.08) 75%); }
.service-panel > *:not(.service-image) { position: relative; z-index: 2; }
.service-image { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.service-panel .eyebrow { color: #d7e5d8; }
.service-panel p { max-width: 520px; }
.contact-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-box { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.contact-box h2 { font-size: 1.8rem; }
.contact-box a { color: var(--green); font-weight: 750; }
.map-card { grid-column: 1 / -1; margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.map-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; }
.map-heading h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.map-card iframe { width: 100%; height: 480px; display: block; border: 0; }
.grant-banner { position: fixed; bottom: 0; z-index: 10001; max-width: min(42vw, 468px); opacity: 0; transform: translateY(105%); animation: banner-in .65s var(--banner-delay) ease forwards; filter: drop-shadow(0 12px 24px rgba(0,0,0,.2)); }
.grant-banner-left { left: 0; }
.grant-banner-right { right: 0; max-width: min(34vw, 400px); }
.grant-banner a, .grant-banner img { display: block; width: 100%; height: auto; }
.grant-banner button { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border: 0; border-radius: 50%; color: white; background: rgba(17,28,20,.78); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.grant-banner-left button { left: 5px; right: auto; }
.grant-banner.closing { opacity: 0 !important; transform: translateY(105%) !important; transition: .28s; }
@keyframes banner-in { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1040px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; left: 20px; right: 20px; top: calc(100% + 1px); display: none; max-height: calc(100vh - 110px); overflow: auto; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 0 0 16px 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav > ul { display: block; }
  .main-nav a { padding: 12px; }
  .has-submenu { display: grid; grid-template-columns: 1fr auto; }
  .has-submenu > ul { position: static; grid-column: 1 / -1; width: auto; display: none; margin: 0 0 8px 12px; padding: 2px 0 2px 12px; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .has-submenu.submenu-open > ul { display: block; }
  .has-submenu:hover > ul { display: none; }
  .has-submenu.submenu-open:hover > ul { display: block; }
  .submenu-toggle { width: 44px; font-size: 1.2rem; }
  .hero-grid { gap: 32px; }
  .hero-visual { min-height: 470px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; gap: 36px; }
  .side-note { position: static; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 28px, 620px); }
  .header-inner { min-height: 74px; }
  .brand-mark { width: 38px; height: 38px; font-size: .86rem; }
  .brand-logo { width: 126px; height: 54px; }
  .brand strong { font-size: 1.05rem; }
  .hero { padding-top: 46px; }
  .video-hero { min-height: calc(100svh - 74px); padding: 54px 0; }
  .video-hero .hero-logo { width: min(260px, 80%); }
  .hero-shade { background: linear-gradient(90deg, rgba(10,20,13,.77), rgba(10,20,13,.45)), linear-gradient(0deg, rgba(10,20,13,.5), transparent 55%); }
  .hero-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.5rem); }
  .lead { font-size: 1.08rem; }
  .hero-visual { min-height: 390px; border-radius: 170px 170px 20px 20px; }
  .section { padding: 68px 0; }
  .two-company-grid { grid-template-columns: 1fr; }
  .two-company-grid article, .two-company-grid article + article { padding: 42px 10px 38px 0; border-left: 0; }
  .two-company-grid article + article { border-top: 1px solid var(--line); }
  .section-heading, .grants-inner { display: block; }
  .section-heading > p { margin-top: 18px; }
  .card-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 300px; }
  .grants-inner .button { margin-top: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 50px 0 40px; }
  .content-section { padding: 54px 0; }
  .link-cards, .service-panels, .contact-list { grid-template-columns: 1fr; }
  .contact-cta { display: block; }
  .contact-cta .button { margin-top: 20px; }
  .project-meta { grid-template-columns: 1fr; }
  .compact-stakes tbody { grid-template-columns: 1fr; }
  .compact-stakes tbody tr:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .map-heading { display: block; }
  .map-heading .button { margin-top: 18px; }
  .map-card iframe { height: 380px; }
  .image-gallery { grid-template-columns: 1fr; }
  .image-gallery img { height: auto; max-height: 430px; }
  .grant-banner { max-width: 58vw; }
  .grant-banner-right { max-width: 47vw; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } .hero-video { display: none; } }
