:root {
  --ink: #17212b;
  --muted: #5d6974;
  --line: #dde5ea;
  --paper: #f7fafb;
  --white: #ffffff;
  --brand: #13785f;
  --brand-strong: #0b5f4a;
  --accent: #c79436;
  --deep: #102632;
  --shadow: 0 18px 45px rgba(20, 35, 45, 0.11);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.topbar { background: #0f2430; color: #d7e5ea; font-size: 14px; }
.topbar .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
}
.topbar .container > span:last-child { text-align: right; }
.partner-toplink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f08a24, #c8422f);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(200, 66, 47, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.partner-toplink:hover {
  background: linear-gradient(135deg, #ff9a35, #b93427);
  transform: translateY(-1px);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 36, 48, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; min-width: 170px; }
.brand img { width: 152px; height: auto; }
.menu { display: flex; align-items: center; justify-content: flex-end; gap: 20px; color: #eef6f3; font-size: 15px; flex-wrap: wrap; }
.menu > a, .menu-item > a { min-height: 72px; display: inline-flex; align-items: center; }
.menu-item { position: relative; }
.has-submenu > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 8px;
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 306px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(20, 35, 45, 0.14);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.submenu a { display: block; padding: 10px 18px; color: #31404c; line-height: 1.35; background: var(--white); }
.submenu a:hover { color: var(--brand-strong); background: #f1f7f5; }
.menu-item:hover .submenu, .menu-item:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(19, 120, 95, 0.18);
}
.button.secondary { background: transparent; color: var(--brand-strong); border-color: rgba(19, 120, 95, 0.35); box-shadow: none; }
.hero .button.secondary { color: var(--white); border-color: rgba(255, 255, 255, 0.45); }

.hero {
  background:
    linear-gradient(120deg, rgba(15, 36, 48, 0.94), rgba(19, 120, 95, 0.82)),
    var(--hero-image, url("images/Baleseti-Karugyintezes-Teljeskoruen-min.jpg")) center / cover;
  background-attachment: scroll, fixed;
  color: var(--white);
  padding: 92px 0 52px;
}
.eyebrow {
  display: inline-flex;
  color: #d9f2e8;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}
h1, h2, h3 { line-height: 1.12; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 72px); max-width: 880px; }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: 23px; }
.hero p { font-size: 21px; max-width: 760px; color: #e5f3ef; margin: 22px 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

section { padding: 74px 0; }
.band { background: var(--paper); }
.section-head { max-width: 820px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 14px 0 0; }
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 34px; align-items: start; }
.feature-row { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 34px; align-items: center; }
.feature-media { min-height: 340px; border-radius: var(--radius); background-position: center; background-size: cover; box-shadow: var(--shadow); }
.feature-copy p { color: var(--muted); font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card, .panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(22, 35, 44, 0.06);
}
.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e8f4ef;
  color: var(--brand-strong);
  font-weight: 900;
  margin-bottom: 18px;
  font-size: 20px;
}
.card p, .panel p { color: var(--muted); margin: 12px 0 0; }
.panel.dark { background: var(--deep); color: var(--white); border-color: rgba(255,255,255,0.14); }
.panel.dark p, .panel.dark li { color: #e3eff2; }
.list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dff0e8;
  color: var(--brand-strong);
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  line-height: 1;
}
.timeline { display: grid; gap: 22px; counter-reset: step; }
.timeline-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--white);
}
.timeline-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.timeline-card h3::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-size: 14px;
}
.testimonials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.testimonials img { width: 100%; height: 260px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.logos { overflow: hidden; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 14px 0; position: relative; }
.slick-list { overflow: hidden; }
.slick-track { display: flex; width: max-content; gap: 14px; animation: partner-scroll 22s linear infinite; }
.logos:hover .slick-track { animation-play-state: paused; }
.logo-tile { flex: 0 0 178px; min-height: 82px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 14px; }
.logo-tile img { max-height: 46px; width: auto; object-fit: contain; }
@keyframes partner-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 7px)); }
}
.faq { display: grid; gap: 12px; }
details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 0 18px; }
summary { cursor: pointer; font-weight: 800; padding: 18px 0; }
details p { margin: 0 0 18px; color: var(--muted); }
.consult { background: #102632; color: var(--white); }
.consult-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.consult p { color: #e3eff2; }
.consult-card { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); padding: 24px; }
.consult-card p { margin: 10px 0; }
.consult a:not(.button) { color: #fff1c8; font-weight: 800; }
footer { padding: 24px 0; background: #0b1921; color: #b9c7cc; font-size: 14px; }

@media (max-width: 880px) {
  .split, .feature-row, .consult-grid, .timeline-card { grid-template-columns: 1fr; }
  .cards, .testimonials { grid-template-columns: 1fr 1fr; }
  .menu { display: none; }
  .hero { padding-top: 58px; background-attachment: scroll; }
}
@media (max-width: 580px) {
  .topbar .container { grid-template-columns: 1fr; text-align: center; }
  .topbar .container > span:last-child { text-align: center; }
  .hero-actions { flex-direction: column; }
  .cards, .testimonials { grid-template-columns: 1fr; }
  .button { width: 100%; }
  section { padding: 54px 0; }
  .logo-tile { flex-basis: 150px; }
}
