
:root {
  --blue-primary: #0ea5e9;
  --blue-hover: #0284c7;
  --blue-dark: #075985;
  --blue-light: #f0f9ff;
  --blue-soft: #e0f2fe;
  --blue-border: #bae6fd;

  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-soft: #f4f9fc;

  --text-main: #0f172a;
  --text-muted: #526173;
  --text-light: #64748b;

  --border: #e2e8f0;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, .05);
  --shadow-md: 0 14px 35px rgba(15, 23, 42, .08);
  --shadow-blue: 0 14px 30px rgba(14, 165, 233, .16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }
img { max-width: 100%; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

a {
  color: var(--blue-hover);
  text-decoration: none !important;
  transition: color .2s ease, opacity .2s ease;
}
a:hover { color: var(--blue-dark); text-decoration: none !important; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  letter-spacing: -.025em;
}

/* Fejléc és navigáció */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
  padding: 14px 0;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  min-height: 48px;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.48rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none !important;
  letter-spacing: -.04em;
}
.logo span { color: var(--blue-primary); }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  color: #475569;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none !important;
  transition: color .2s ease, background .2s ease;
}
.main-nav a:hover { color: var(--blue-hover); text-decoration: none !important; }

/* Gombok */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  min-height: 46px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  border: 0;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  text-align: center;
}
.btn-cta {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-hover));
  color: #fff !important;
  font-size: 14px;
  letter-spacing: .1px;
  box-shadow: 0 8px 18px rgba(14, 165, 233, .22);
}
.btn-cta:hover {
  background: linear-gradient(135deg, var(--blue-hover), var(--blue-dark));
  box-shadow: 0 12px 24px rgba(14, 165, 233, .28);
  transform: translateY(-2px);
  color: #fff !important;
}
.btn-cta:active { transform: translateY(0); }
.main-nav .btn-cta { padding: 10px 19px; min-height: 42px; font-size: .9rem; }

/* Breadcrumb */
.breadcrumb-strip {
  background: var(--bg-light);
  padding: 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-strip a { color: var(--text-light); }
.breadcrumb-strip a:hover { color: var(--blue-hover); }
.breadcrumb-strip span { color: var(--blue-hover); font-weight: 700; }

/* Hero */
.subpage-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 25%, rgba(14,165,233,.12), transparent 32%),
    radial-gradient(circle at 10% 90%, rgba(56,189,248,.08), transparent 30%),
    linear-gradient(180deg, #effaff 0%, #ffffff 85%);
  color: var(--text-main);
  padding: 48px 0 20px;
}
.subpage-hero::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  top: -130px;
  border-radius: 50%;
  border: 1px solid rgba(14,165,233,.14);
}
.subpage-hero h1 {
  position: relative;
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  line-height: 1.08;
  margin-bottom: 0;
  font-weight: 700;
  color: var(--text-main);
}
.hero-badge {
  display: inline-block;
  background: rgba(224,242,254,.8);
  color: var(--blue-hover);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 700;
  border: 1px solid var(--blue-border);
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 800px;
}

/* Szekciók */
.section { padding: 76px 0; }
.subpage-hero + .section { padding-top: 36px; }
.section-heading {
  text-align: center;
  margin-bottom: 42px;
  font-size: clamp(1.9rem, 4vw, 2.45rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-main);
}
.service-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, .9fr);
  gap: 52px;
  align-items: start;
}
.service-main-text h2 {
  margin: 28px 0 15px;
  color: var(--text-main);
  font-size: 25px;
  font-weight: 700;
}
.service-main-text p,
.prose-text p {
  margin-bottom: 17px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.78;
}
.prose-text p:last-child { margin-bottom: 0; }

.service-main-text > p:first-child,
.prose-text > p:first-of-type {
  color: #334155;
}

.service-spec-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
}
.service-checklist { list-style: none; margin-top: 15px; }
.service-checklist li {
  padding: 11px 0 11px 30px;
  border-bottom: 1px solid #eef2f7;
  position: relative;
  color: var(--text-muted);
  font-size: 15px;
}
.service-checklist li:last-child { border-bottom: 0; }
.service-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--blue-hover);
  font-weight: 800;
  font-size: 16px;
}

/* Főoldali szolgáltatás kártyák */
#szolgaltatasok > .wrap > div[style*="display: grid"] {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

@media (min-width: 981px) {
  /* Ha az utolsó kártya egyedül maradna egy új sor elején, középre igazítjuk */
  #szolgaltatasok > .wrap > div[style*="display: grid"] > a:last-child:nth-child(3n+1) {
    grid-column: 2;
  }
}

.service-mini-card {
  text-decoration: none;
  color: inherit;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 27px;
  border-radius: 18px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  box-shadow: var(--shadow-sm);
}
.service-mini-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: transparent;
  transition: background .25s ease;
}
.service-mini-card:hover {
  transform: translateY(-5px);
  border-color: #b9dff2;
  box-shadow: var(--shadow-blue);
}
.service-mini-card:hover::before { background: var(--blue-primary); }
.service-mini-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.22rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}
.service-mini-card p {
  color: var(--text-muted);
  margin: 6px 0 18px;
  line-height: 1.65;
}
.service-mini-card span {
  margin-top: auto;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Űrlap */
.form-card {
  background: rgba(255,255,255,.98);
  border-radius: 20px;
  padding: 34px;
  border: 1px solid #d7eaf5;
  box-shadow: 0 18px 45px rgba(15,23,42,.08);
}
.form-group { margin-bottom: 19px; text-align: left; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  min-height: 47px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-main);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-control::placeholder { color: #94a3b8; }
.form-control:hover { border-color: #94a3b8; }
.form-control:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(14,165,233,.13);
  background: #fff;
}
.form-control[readonly] {
  background: #f0f9ff;
  color: #475569;
  font-weight: 700;
  border-color: #bae6fd;
  cursor: not-allowed;
}
textarea.form-control { resize: vertical; min-height: 110px; }

.form-card h2.section-heading {
  font-family: 'Fraunces', serif;
}

/* Oldalsáv */
.sidebar-card {
  position: sticky;
  top: 94px;
}
.sidebar-card h3 {
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 23px;
  line-height: 1.2;
  font-weight: 700;
}
.sidebar-card p.sidebar-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.6;
}
.sidebar-info {
  border-top: 1px solid #e8eef4;
  padding-top: 19px;
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
}
.sidebar-phone {
  font-size: 19px;
  font-weight: 800;
  color: var(--blue-hover);
  margin-top: 5px;
  display: inline-block;
}

/* Lábléc */
.main-footer {
  background: #f8fafc;
  color: var(--text-muted);
  padding: 66px 0 22px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.8fr .8fr;
  gap: 55px;
  margin-bottom: 45px;
}
.footer-col h3,
.footer-col h4 {
  color: var(--text-main);
  margin-bottom: 20px;
  font-family: 'Fraunces', serif;
}
.footer-col h3 { font-size: 1.35rem; }
.footer-col h4 { font-size: 1.05rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  color: #64748b;
  text-decoration: none !important;
  transition: color .2s ease, padding-left .2s ease;
}
.footer-col a:hover {
  color: var(--blue-hover);
  text-decoration: none !important;
}
.copyright {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 21px;
  font-size: 13px;
  color: #718096;
}

/* Spam-csapda */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* Űrlap visszajelzés */
.form-alert {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 19px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}
.form-alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.form-alert-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Mobil menü */
.nav-toggle-checkbox { display: none; }
.nav-toggle-btn {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-main);
  line-height: 1;
  padding: 7px;
  border-radius: 9px;
}
.nav-toggle-btn:hover { background: var(--blue-light); color: var(--blue-hover); }

/* Finomítások az inline stílusokkal készült régebbi részekhez */
#kapcsolat {
  background:
    radial-gradient(circle at 85% 15%, rgba(14,165,233,.09), transparent 30%),
    var(--blue-light) !important;
  border-top: 1px solid var(--blue-border) !important;
}
#kapcsolat .form-card h2 {
  margin-bottom: 8px !important;
}
#kapcsolat .form-card > p {
  color: var(--text-muted) !important;
  line-height: 1.6;
}
.rolunk, .prose-text { text-wrap: pretty; }

@media (max-width: 980px) {
  .service-single-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .sidebar-card {
    position: static;
    max-width: 650px;
    margin: 0 auto;
  }
  #szolgaltatasok > .wrap > div[style*="display: grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .footer-grid {
    grid-template-columns: 1.3fr 1.5fr;
    gap: 35px;
  }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 74px; }
  .wrap { padding: 0 18px; }
  .main-header { padding: 11px 0; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 14px 24px 22px; }
  .main-nav ul li { width: 100%; padding: 0; border-bottom: 1px solid #eef2f7; }
  .main-nav ul li:last-child { border-bottom: 0; padding-top: 16px; }
  .main-nav a { display: block; padding: 13px 0; }
  .main-nav .btn-cta { width: 100%; padding: 12px 19px; }

  .nav-toggle-btn {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 11px);
    left: -18px;
    right: -18px;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 30px rgba(15,23,42,.10);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
  }
  .nav-toggle-checkbox:checked ~ .main-nav { max-height: 400px; }

  .subpage-hero { padding: 42px 0; }
  .subpage-hero h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 16px; }
  .section { padding: 55px 0; }
  .section-heading { margin-bottom: 30px; }

  #szolgaltatasok > .wrap > div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 17px !important;
  }
  .service-mini-card { min-height: 0; padding: 23px; }

  .form-card { padding: 24px 20px; border-radius: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .logo { font-size: 1.28rem; }
  .subpage-hero h1 { font-size: 2rem; }
  .btn { width: 100%; }
  .subpage-hero .btn { max-width: 100%; }
  #kapcsolat .btn { width: 100%; }
}


/* Szöveges aloldalak – finom, modern tartalompanel */
.prose-panel {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
  padding: 38px 42px;
  overflow: hidden;
}
.prose-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 30px;
  bottom: 30px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: rgba(14, 165, 233, .25);
}
.service-main-text.prose-panel > p:first-child {
  margin-top: 0;
}
.legal-section { padding-top: 54px; }
.legal-card { max-width: 980px; margin: 0 auto; }
.legal-card h1 { margin: 0 0 24px; font-size: clamp(2rem, 4vw, 2.7rem); color: var(--text-main); }
.legal-card h2 { margin: 32px 0 12px; font-size: 1.25rem; color: var(--text-main); }
.legal-card p, .legal-card li { color: var(--text-muted); line-height: 1.78; font-size: 16px; }
.legal-card ul { padding-left: 22px; }
.legal-card li { margin-bottom: 6px; }
.legal-card code { background: #eef6fb; padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.legal-updated { display: inline-block; margin-bottom: 16px; padding: 6px 11px; border-radius: 999px; background: #eaf6ff; color: var(--blue-hover); border: 1px solid var(--blue-border); font-size: 12px; font-weight: 700; }
.legal-note { margin-top: 30px; padding: 15px 17px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; font-size: 14px !important; }

/* ============================================
   MODERN VIZUÁLIS JAVÍTÁSOK (szövegmódosítás nélkül)
   ============================================ */

/* --- Fókusz és hozzáférhetőség javítások --- */
:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Főoldali hero modernizálása --- */
.home-hero {
  padding: 80px 0 50px !important;
  background:
    radial-gradient(circle at 85% 25%, rgba(14,165,233,.15), transparent 35%),
    radial-gradient(circle at 10% 90%, rgba(56,189,248,.10), transparent 32%),
    radial-gradient(circle at 50% 50%, rgba(125,211,252,.05), transparent 60%),
    linear-gradient(180deg, #effaff 0%, #ffffff 80%) !important;
}

.home-hero::before {
  width: 320px;
  height: 320px;
  right: -130px;
  top: -160px;
  border: 1px solid rgba(14,165,233,.12);
}

.home-hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: -60px;
  bottom: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.06), transparent 70%);
}

.home-hero .wrap {
  position: relative;
  z-index: 1;
}

.home-hero h1 {
  margin-bottom: 14px;
}

.home-hero .hero-subtitle {
  margin-bottom: 10px;
}

/* --- Szolgáltatáskártyák modernizálása --- */
.service-mini-card {
  min-height: 250px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.service-mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,165,233,0), rgba(14,165,233,0));
  transition: background .3s ease;
  pointer-events: none;
  border-radius: 16px;
}

.service-mini-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14,165,233,.3);
  box-shadow: 0 20px 40px rgba(14,165,233,.12);
}

.service-mini-card:hover::after {
  background: linear-gradient(135deg, rgba(14,165,233,.03), rgba(14,165,233,.06));
}

.service-mini-card h3 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.15rem;
}

/* Emoji ikon körbe helyezése */
.service-mini-card h3::first-letter {
  /* placeholder */
}

/* --- Szolgáltatás aloldalak egyensúly javítása --- */
.service-single-grid {
  gap: 48px;
}

.service-main-text.prose-panel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.service-main-text.prose-panel > p {
  flex-shrink: 0;
}

/* --- Rólunk oldal vizuális tagolása --- */
.rolunk-content {
  max-width: 100%;
}

.rolunk-content > p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.rolunk-content > p:first-of-type {
  font-size: 17px;
  color: #334155;
  font-weight: 500;
  line-height: 1.75;
}

.rolunk-content > p:last-child {
  font-size: 17px;
  color: #334155;
  font-weight: 500;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
  margin-bottom: 0;
}

/* --- Süti tábla stílusa --- */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0 20px;
  font-size: 14px;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
}

.cookie-table td:first-child {
  font-family: monospace;
  font-size: 13px;
  color: var(--blue-primary);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .cookie-table {
    font-size: 13px;
  }
  .cookie-table th,
  .cookie-table td {
    padding: 8px;
  }
  .cookie-table td:first-child {
    white-space: normal;
  }
}

/* --- Lábléc javítások --- */
.main-footer {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.footer-col a {
  display: inline-block;
  transition: color .2s ease, transform .2s ease;
}

.footer-col a:hover {
  transform: translateX(3px);
}

/* --- Űrlap javítások --- */
.form-control:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}

.btn:focus-visible {
  outline: 2px solid var(--blue-dark);
  outline-offset: 2px;
}

/* --- Fejléc javítások --- */
.main-header {
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.logo-img {
  width: 42px;
  height: auto;
  flex-shrink: 0;
  border-radius: 50%;
}

.logo span {
  position: relative;
}

/* --- Galéria --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.gallery-item {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 0;
  background: none;
  width: 100%;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-subheading {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-subheading .tag {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.gallery-subheading .tag.after {
  background: #dcfce7;
  color: #15803d;
}

/* --- Lightbox --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 50px 24px;
  cursor: zoom-out;
}

.lightbox-overlay.active { display: flex; }

.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}

.lightbox-close:hover { background: rgba(255, 255, 255, .22); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: .85rem;
  background: rgba(255, 255, 255, .12);
  padding: 5px 14px;
  border-radius: 999px;
  display: none;
}

@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.05rem; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* --- Cookie banner javítás --- */
.cookie-banner {
  border-radius: 14px;
  transition: transform .3s ease, opacity .3s ease;
}

.cookie-banner[hidden] {
  display: flex !important;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}

/* --- Scrollbar stílus (modern böngészők) --- */
@media (pointer: fine) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #f1f5f9;
  }
  ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
    border: 2px solid #f1f5f9;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
}

/* --- Szekció átmenetek --- */
/* Az ugrási célpontok fejléc-magasság szerinti eltolása a html elem
   scroll-padding-top tulajdonságával van megoldva, minden #id célra vonatkozik. */

/* --- Hover animáció finomítása --- */
.service-mini-card,
.btn,
.form-control,
.footer-col a,
.main-nav a {
  will-change: transform;
}

/* --- Mobil javítások --- */
@media (max-width: 768px) {
  .home-hero {
    padding: 55px 0 !important;
  }
  
  .home-hero::before {
    width: 200px;
    height: 200px;
  }
  
  .rolunk-content {
    max-width: 100%;
  }
  
  .rolunk-content > p:first-of-type,
  .rolunk-content > p:last-child {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .home-hero {
    padding: 40px 0 !important;
  }
  
  .logo-img {
    width: 32px;
  }
}
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 18px 16px 20px;
  background: rgba(255,255,255,.97);
  border: 1px solid #dbe6f0;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15,23,42,.16);
  backdrop-filter: blur(12px);
}
.cookie-banner p { margin: 0; color: #475569; font-size: 14px; line-height: 1.55; }
.cookie-banner a { color: var(--blue-hover); font-weight: 700; }
.cookie-banner button { flex: 0 0 auto; border: 0; border-radius: 10px; padding: 11px 18px; background: var(--blue-primary); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 7px 18px rgba(14,165,233,.22); }
.cookie-banner button:hover { background: var(--blue-hover); }
@media (max-width: 700px) {
  .prose-panel { padding: 28px 24px; border-radius: 18px; }
  .prose-panel::before { top: 22px; bottom: 22px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .cookie-banner button { width: 100%; }
}
