/* Portré a szolgáltató adatai mellett, az eredeti képarány megtartásával. */
.imprint-provider { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 24px; align-items: start; }
.imprint-provider-details { min-width: 0; }
.imprint-portrait { display: block; width: 100%; height: auto; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 800px) {
  .imprint-provider { grid-template-columns: minmax(0, 1fr); }
  .imprint-portrait { max-width: 280px; margin-inline: auto; }
}

/* Az impresszum oldal saját elemei */
.imprint-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.imprint-card { min-width: 0; padding: 32px; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.imprint-card h2 { font-size: clamp(24px, 3vw, 32px); overflow-wrap: anywhere; }
.imprint-name { margin: 0 0 24px; color: var(--navy); font-size: 19px; font-weight: 700; }
.imprint-data { margin: 0; overflow-wrap: anywhere; }
.imprint-data dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.imprint-data dd { margin: 4px 0 0; }
.imprint-data dd + dt { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.imprint-data a { color: var(--navy); }
@media (max-width: 800px) {
  .imprint-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .imprint-card { padding: 24px; }
}

/* Alapok */
:root {
  --navy: #0f3d63;
  --navy-dark: #0a2942;
  --blue: #1769aa;
  --ink: #172d3e;
  --muted: #526777;
  --line: #dbe4eb;
  --soft: #f3f6f8;
  --white: #fff;
  --shadow: 0 18px 45px rgba(15, 61, 99, .10);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height, 77px) + 12px); }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #438bc1; outline-offset: 5px; }
.wrap { width: min(1160px, calc(100% - 64px)); margin: 0 auto; }
h1, h2, h3 { margin-top: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(40px, 4.6vw, 62px); font-weight: 750; line-height: 1.1; letter-spacing: -.045em; margin-bottom: 26px; }
h2 { font-size: clamp(30px, 3.2vw, 43px); font-weight: 750; line-height: 1.16; letter-spacing: -.035em; margin-bottom: 20px; }
h3 { font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; margin-bottom: 14px; }
.eyebrow { color: var(--blue); font-size: 12px; line-height: 1.5; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 18px; }
.lead { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 0 30px; }
.lead-small { font-size: 18px; color: var(--muted); max-width: 600px; margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 10px 14px; border-radius: 8px; }

/* Fejléc és gombok */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 80px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--navy); display: grid; place-items: center; }
.brand strong { display: block; font-size: 17px; line-height: 1.2; }
.brand small { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 650; font-size: 14px; color: #304252; }
.nav a:hover { color: var(--blue); }
.menu-toggle { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border: 1px solid transparent; border-radius: 10px; padding: 12px 22px; text-decoration: none; font-weight: 700; transition: transform .2s, background .2s, box-shadow .2s; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 5px 12px rgba(15,61,99,.12); }
.btn-primary:hover { background: var(--navy-dark); }
.btn-secondary { background: #fff; border-color: #c8d5df; color: var(--navy); }
.btn-secondary:hover { background: var(--soft); }
.header-call { min-height: 44px; padding: 10px 15px; font-size: 14px; white-space: nowrap; }

/* Nyitórész */
.hero { position: relative; padding: 88px 0 76px; background: linear-gradient(110deg, #f3f7fa 0%, #f9fbfc 64%, #e7eff5 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-copy, .hero-card { min-width: 0; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 12px; }
.hero-copy > .eyebrow::before { content: ""; width: 26px; height: 3px; flex-shrink: 0; background: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #d4dfe7; color: #3f596b; font-weight: 600; font-size: 13px; }
.hero-card { padding: 34px; background: var(--navy); color: #fff; border: 1px solid #214e72; border-top: 4px solid #739ab7; border-radius: var(--radius); box-shadow: 0 22px 48px rgba(10,41,66,.17); }
.hero-card-icon { display: grid; place-items: center; width: 60px; height: 60px; font-size: 30px; margin-bottom: 28px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; }
.hero-card h2 { font-size: clamp(28px, 2.6vw, 35px); color: #fff; }
.hero-card p { color: #dae5ed; margin: 0; }
.phone-big { display: block; padding: 14px 8px; margin: 28px 0 16px; background: #fff; color: var(--navy); border-radius: 10px; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.4; font-weight: 750; text-decoration: none; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; transition: background .2s; }
.phone-big:hover { background: #e8f0f6; }
.text-link { display: block; width: fit-content; max-width: 100%; margin: 0 auto; color: #e0eaf2; font-size: 15px; overflow-wrap: anywhere; }

/* Bemutatkozás és szakmai háttér */
.about-section { padding: 64px 0 0; }
.about-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(15,61,99,.06); }
.about-heading { display: flex; align-items: center; padding: 36px; background: var(--navy); border-top: 4px solid #739ab7; }
.about-heading h2 { margin: 0; color: #fff; font-size: clamp(28px, 2.8vw, 36px); line-height: 1.2; }
.about-copy { min-width: 0; padding: 36px 40px; }
.about-copy p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.about-copy p + p { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.about-copy strong { color: var(--navy); font-weight: 700; }
@media (max-width: 960px) {
  .about-section { padding-top: 48px; }
  .about-card { grid-template-columns: minmax(0, 1fr); }
  .about-heading { padding: 28px 32px; }
  .about-copy { padding: 28px 32px; }
}
@media (max-width: 640px) {
  .about-section { padding-top: 36px; }
  .about-card { border-radius: 14px; }
  .about-heading, .about-copy { padding: 24px 22px; }
  .about-heading h2 { font-size: 28px; }
  .about-copy p { font-size: 16px; line-height: 1.75; }
  .about-copy p + p { margin-top: 18px; padding-top: 18px; }
}

/* Szolgáltatások */
.section { padding: 88px 0; }
.section-heading { max-width: 760px; margin-bottom: 36px; }
.section-heading p:last-child { color: var(--muted); font-size: 18px; margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { min-width: 0; padding: 28px 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 4px 16px rgba(15,61,99,.035); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 24px; background: #edf3f7; border: 1px solid #e0e9ef; border-radius: 12px; font-size: 27px; }
.card h3 { min-height: 3.9em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }

/* Az ügyintézés lépései */
.section-alt { background: #edf2f5; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 76px; }
.split > div:first-child { border-left: 4px solid var(--navy); padding-left: 30px; }
.checklist { display: grid; gap: 0; border: 1px solid #d3dfe8; background: #fff; border-radius: 16px; padding: 8px 26px; box-shadow: 0 10px 30px rgba(15,61,99,.05); }
.checklist div { display: flex; align-items: center; gap: 20px; padding: 24px 0; }
.checklist div + div { border-top: 1px solid var(--line); }
.checklist span { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: #edf3f7; color: var(--navy); font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.checklist p { margin: 0; font-weight: 650; line-height: 1.5; }

/* Referenciák: egységes képméret, a szerelési részletekre igazított kivágás */
.references-section { background: #f8fafb; border-bottom: 1px solid var(--line); }
.references-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.reference-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 16px rgba(15,61,99,.035); }
.reference-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 13px 13px 0 0; background: #edf3f7; border-bottom: 1px solid var(--line); }
.reference-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.reference-media img[src="kepek/viz-01.jpg"] { object-position: center 55%; }
.reference-media img[src="kepek/futes-01.jpg"] { object-position: center 65%; }
.reference-media img[src="kepek/furdo-01.jpg"] { object-position: center 65%; }
.reference-body { padding: 24px; }
.reference-body h3 { margin-bottom: 12px; font-size: 21px; overflow-wrap: anywhere; }
.reference-body p { margin: 0; color: var(--muted); font-size: 15px; }

/* Működési terület */
.locations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.locations span { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafb; color: var(--navy); font-size: 17px; font-weight: 650; }
.locations span::before { content: ""; width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: #557c99; box-shadow: 0 0 0 5px #e7eef3; }

/* Kapcsolat: kiemelt telefonos elérhetőség */
.contact-section { padding: 84px 0; background: var(--navy-dark); color: #fff; border-top: 5px solid #739ab7; }
.eyebrow-light { color: #b6d5eb; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.contact-grid > div { min-width: 0; }
.contact-grid h2 { color: #fff; }
.contact-grid p:not(.eyebrow) { color: #d4e4f0; font-size: 18px; margin-bottom: 0; }
.contact-card { padding: 10px; background: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.1); }
.contact-item { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 10px; color: var(--ink); text-decoration: none; transition: background .2s; }
.contact-item > span:last-child { min-width: 0; }
.contact-item small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 13px; }
.contact-item strong { display: block; font-size: 18px; font-weight: 650; overflow-wrap: anywhere; }
.contact-icon { font-size: 24px; flex-shrink: 0; }
.contact-item[href^="tel:"] { background: #edf3f7; border: 1px solid #d8e4ed; }
.contact-item[href^="tel:"] strong { color: var(--navy); font-size: clamp(24px, 2.3vw, 31px); font-weight: 750; line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums; }
.contact-item[href^="tel:"] small { color: #3f5e75; font-weight: 650; }
.contact-item:hover { background: #e4edf4; }
.site-footer { padding: 36px 0; background: #081d2e; color: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-inner strong { font-size: 15px; }
.footer-inner p { margin: 6px 0 0; color: #aac0d0; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer-links a { color: #d5e4ef; text-decoration: none; font-size: 14px; }
.footer-links a:hover { text-decoration: underline; }
.mobile-bar { display: none; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); }
  .card:hover { transform: translateY(-4px); border-color: #afc5d6; box-shadow: 0 14px 32px rgba(15,61,99,.09); }
}

/* A bővített navigáció térközei kisebb asztali képernyőn. */
@media (min-width: 961px) and (max-width: 1100px) {
  .header-inner { gap: 16px; }
  .nav { gap: 14px; }
}

/* Tablet és mobilmenü */
@media (max-width: 960px) {
  .header-inner { gap: 12px; }
  .nav, .header-call { display: none; }
  .menu-toggle { display: block; flex-shrink: 0; margin-left: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 700; cursor: pointer; }
  .menu-toggle[aria-expanded="true"] { background: var(--soft); border-color: #afc5d6; }
  .menu-toggle[aria-expanded="true"] + .nav { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 32px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100dvh - var(--header-height, 81px) - 64px - env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
  .nav a { padding: 12px 0; }
  .nav a + a { border-top: 1px solid #edf2f5; }
  .hero { padding: 64px 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  h1 { font-size: clamp(40px, 6vw, 56px); max-width: 760px; }
  .hero-card { max-width: 600px; width: 100%; }
  .hero-card-icon { margin-bottom: 20px; }
  .phone-big { width: fit-content; padding: 14px 24px; }
  .text-link { margin-left: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .references-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .card h3 { min-height: 2.6em; }
  .split, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .contact-card { max-width: 600px; width: 100%; }
  .section { padding: 68px 0; }
  .locations span { padding: 18px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 22px; }
}

/* Keskeny képernyők és alsó safe-area */
@media (max-width: 640px) {
  html { scroll-padding-top: calc(var(--header-height, 69px) + 12px); }
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 68px; gap: 8px; }
  .brand { gap: 9px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 10px; }
  .menu-toggle { min-height: 44px; padding: 8px 10px; }
  .menu-toggle[aria-expanded="true"] + .nav { padding-inline: 18px; }
  .hero { padding: 44px 0 48px; }
  .hero-grid { gap: 30px; }
  h1 { font-size: clamp(33px, 8.8vw, 43px); line-height: 1.13; margin-bottom: 22px; letter-spacing: -.04em; }
  h2 { font-size: clamp(28px, 7vw, 34px); }
  .eyebrow { font-size: 11px; letter-spacing: .1em; margin-bottom: 14px; }
  .lead, .lead-small { font-size: 17px; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .btn { width: 100%; }
  .trust-row { display: grid; gap: 7px; margin-top: 24px; padding-top: 20px; }
  .hero-card { padding: 24px; border-radius: 14px; }
  .hero-card h2 { font-size: 28px; }
  .hero-card-icon { width: 50px; height: 50px; font-size: 26px; margin-bottom: 20px; }
  .phone-big { width: 100%; padding: 14px 4px; font-size: clamp(21px, 5.7vw, 27px); margin-top: 22px; }
  .text-link { margin-inline: auto; }
  .section { padding: 52px 0; }
  .section-heading { margin-bottom: 26px; }
  .section-heading p:last-child { font-size: 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .references-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .reference-body { padding: 22px; }
  .card { padding: 24px; }
  .card-icon { width: 48px; height: 48px; margin-bottom: 18px; font-size: 25px; }
  .card h3 { min-height: 0; font-size: 22px; }
  .card p { font-size: 16px; line-height: 1.7; }
  .split { gap: 28px; }
  .split > div:first-child { padding-left: 20px; border-left-width: 3px; }
  .checklist { padding: 4px 20px; }
  .checklist div { padding: 20px 0; gap: 14px; }
  .checklist p { font-size: 15px; }
  .locations { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .locations span { padding: 15px 12px; gap: 10px; font-size: 14px; border-radius: 10px; }
  .locations span::before { width: 6px; height: 6px; box-shadow: 0 0 0 3px #e7eef3; }
  .contact-section { padding: 52px 0; }
  .contact-grid { gap: 28px; }
  .contact-grid p:not(.eyebrow) { font-size: 17px; }
  .contact-card { padding: 8px; border-radius: 14px; }
  .contact-item { gap: 10px; padding: 18px 12px; }
  .contact-icon { font-size: 20px; }
  .contact-item strong { font-size: 16px; }
  .contact-item[href^="tel:"] strong { font-size: clamp(20px, 5.2vw, 27px); }
  .site-footer { padding: 30px 0 calc(90px + env(safe-area-inset-bottom, 0px)); }
  .footer-links { gap: 12px 18px; }
  .mobile-bar { position: fixed; display: grid; grid-template-columns: 1fr 1fr; left: 0; right: 0; bottom: 0; z-index: 60; padding-bottom: env(safe-area-inset-bottom, 0px); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -5px 20px rgba(0,0,0,.08); }
  .mobile-bar a { padding: 14px; text-align: center; text-decoration: none; font-weight: 750; color: var(--navy); }
  .mobile-bar a:first-child { background: var(--navy); color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .phone-big, .contact-item { transition: none; }
}
