:root {
  --primary: #0073aa;
  --primary-dark: #005a87;
  --primary-light: #e8f4fa;
  --accent: #f59e0b;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 115, 170, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 30px -10px rgba(0, 115, 170, 0.15);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Fejléc / navigáció ---------- */
header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

header .container {
  max-width: 1320px;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  flex-wrap: nowrap;
}

.logo a {
  display: block;
  line-height: 0;
}

.logo img {
  max-height: 44px;
  width: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-main);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-collapse {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.89rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.main-nav a[aria-current="page"] {
  color: var(--primary-dark);
  background-color: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 6px 14px 6px 8px;
  transition: all 0.2s ease;
}

.lang-switch .flag-icon {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.lang-switch:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.nav-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 30px;
  background-color: var(--primary-light);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-mail:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.nav-mail svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (max-width: 1400px) {
  .nav-wrapper {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-collapse {
    display: none;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 14px;
  }

  .nav-collapse.is-open {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    width: 100%;
    gap: 2px;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 14px;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
    margin-top: 4px;
  }

  .lang-switch,
  .nav-mail {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }
}

/* ---------- Hero / kép-karusszel (kezdőlap) ---------- */
.hero {
  padding: 60px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  max-width: 540px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.hero-stats div span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background-color: #e2e8f0;
  aspect-ratio: 4 / 3;
}

.carousel-slide picture,
.sidebar-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-slide img,
.sidebar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0) 50%);
  pointer-events: none;
}

.photo-caption {
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px 24px;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-slide svg {
  width: 100%;
  height: 100%;
  display: block;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dots span.is-active {
  background: #ffffff;
  transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide {
    transition: none;
  }
}

/* ---------- Kisebb, "belső" oldal hero (aloldalakhoz) ---------- */
.page-hero {
  padding: 48px 0 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
}

.page-hero .badge {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.2;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

.breadcrumb a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ---------- Szolgáltatások kártyák (kezdőlap) ---------- */
.services {
  padding: 40px 0 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.85rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* ---------- Miért mi (bizalmi elemek) ---------- */
.trust {
  padding: 10px 0 60px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.trust-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.trust-item strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.trust-item span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Aloldal tartalom (szolgáltatás-szöveg) ---------- */
.content-wrapper {
  padding: 50px 0 20px;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .content-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin: 32px 0 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--text-main);
  margin-bottom: 16px;
  max-width: 68ch;
}

.prose ul {
  margin: 0 0 20px 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.prose ul li {
  position: relative;
  padding-left: 26px;
  color: var(--text-main);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
}

.tagline {
  margin-top: 36px;
  padding: 22px 26px;
  border-left: 3px solid var(--primary);
  background: var(--primary-light);
  border-radius: 0 10px 10px 0;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.02rem;
}

/* ---------- Oldalsáv (aloldalakon) ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
}

.sidebar-card ul {
  list-style: none;
  display: grid;
  gap: 4px;
}

.sidebar-card ul a {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-card ul a:hover,
.sidebar-card ul a[aria-current="page"] {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
}

.sidebar-cta h3 {
  color: #ffffff;
}

.sidebar-cta p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 16px;
}

.sidebar-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  aspect-ratio: 4 / 3;
  background-color: #e2e8f0;
}

.sidebar-image svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Céginformációs tábla ---------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.company-table tr:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.company-table th,
.company-table td {
  text-align: left;
  padding: 16px 20px;
  font-size: 0.95rem;
}

.company-table th {
  width: 42%;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-page);
}

.company-table td {
  color: var(--text-main);
  font-weight: 600;
}

.company-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Kapcsolat blokk ---------- */
.contact-wrapper {
  padding: 20px 0 70px;
}

.contact-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 45px 30px;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card h2 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card .role-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 240px;
}

.btn-white {
  background-color: #ffffff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- Lábléc ---------- */
footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary-dark);
}
