/* ==========================================================================
   Emcrem – AED defibrillátor és elsősegély-oktatás
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-950: #08162a;
  --navy-900: #0b1d36;
  --navy-800: #0f2440;
  --ink: #16263b;
  --muted: #56667b;
  --line: #e2e8ef;
  --bg: #ffffff;
  --bg-soft: #f3f7fb;
  --bg-tint: #e9f7fe;
  --brand: #4acdff;
  --brand-600: #0673ad;
  --brand-700: #055a88;
  --red: #c8233a;
  --red-700: #a51b2f;
  --orange: #f26b1d;
  --success: #12805c;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 29, 54, .06), 0 1px 3px rgba(11, 29, 54, .06);
  --shadow: 0 10px 30px -12px rgba(11, 29, 54, .18), 0 2px 6px rgba(11, 29, 54, .05);
  --shadow-lg: 0 30px 60px -20px rgba(11, 29, 54, .28);
  --container: 1200px;
  --gutter: 16px;
  --header-h: 72px;
  /* vertical rhythm scales with viewport height, so several blocks fit on screen */
  --space-section: clamp(40px, 7.5vh, 96px);
  --space-tight: clamp(28px, 5vh, 64px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 80px; } }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-600); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.15; letter-spacing: -.022em; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, min(1.2rem + 2.6vw, 6.4vh), 3.4rem); }
h2 { font-size: clamp(1.5rem, min(1.1rem + 1.6vw, 4.6vh), 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); letter-spacing: -.012em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { font-weight: 700; color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: var(--navy-950); }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: var(--space-tight); }
.section-head { max-width: 720px; margin-bottom: clamp(20px, 3.6vh, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: clamp(1rem, min(.95rem + .3vw, 2.4vh), 1.125rem); }
.section-head .eyebrow, .page-hero .eyebrow { color: var(--brand-600); font-size: .8125rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 14px;
}
.lead { font-size: clamp(1.05rem, min(1rem + .35vw, 2.7vh), 1.25rem); color: var(--muted); line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-900); --btn-fg: #fff; --btn-bd: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 12px 24px; border-radius: 10px;
  border: 1.5px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--red); }
.btn--primary:hover { --btn-bg: var(--red-700); }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--navy-900); --btn-bd: #c9d3df; }
.btn--secondary:hover { --btn-bd: var(--navy-900); background: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-900); }
.btn--light:hover { --btn-bg: var(--bg-tint); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .35); }
.btn--ghost-light:hover { --btn-bd: #fff; }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; }
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 29, 54, .4); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { width: 136px; height: auto; }
@media (min-width: 768px) { .brand img { width: 150px; } }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px;
  font: inherit; font-size: .9688rem; font-weight: 600; color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--brand-600); background: var(--bg-soft); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--brand-600); }
.nav-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav-item.is-open > .nav-link .icon { transform: rotate(180deg); }
.submenu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0;
  width: 340px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.submenu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav-item.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1121px) {
  .nav-item:hover > .submenu { opacity: 1; visibility: visible; transform: none; }
  .nav-item:hover > .nav-link .icon { transform: rotate(180deg); }
}
.submenu a { display: flex; gap: 14px; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--bg-soft); }
.submenu .sub-icon { display: inline-flex; flex: none; padding-top: 2px; color: var(--brand-600); }
.submenu strong { display: block; font-size: .9688rem; }
.submenu span span { display: block; font-size: .875rem; color: var(--muted); line-height: 1.4; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-900); text-decoration: none; white-space: nowrap; font-size: .9688rem; }
.header-phone .icon { color: var(--red); }
.header-phone:hover { color: var(--brand-600); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  align-items: center; justify-content: center; color: var(--navy-900); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.nav-open .nav-toggle .icon-menu { display: none; }
.mobile-only { display: none; }

@media (max-width: 1440px) { .header-phone span { display: none; } }
@media (max-width: 1280px) { .nav-link { padding-inline: 9px; } .header-inner { gap: 16px; } }
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .header-phone { width: 46px; height: 46px; justify-content: center; border: 1px solid var(--line); border-radius: 12px; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0; background: #fff; overflow-y: auto;
    padding: 16px var(--gutter) 32px; border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.0625rem; }
  .submenu { position: static; translate: none; width: auto; border: 0; box-shadow: none; padding: 0 0 8px 8px; display: none; opacity: 1; visibility: visible; transform: none; }
  .nav-item.is-open > .submenu { display: block; }
  .mobile-only { display: block; margin-top: 16px; }
  .mobile-only .btn { width: 100%; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .875rem; color: var(--muted); margin-bottom: clamp(12px, 2.4vh, 20px); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: #a6b2c0; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-600); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Split hero (home): two matching cards, public on the left, professional on the right ---------- */
.hero-split { background: var(--bg-soft); padding-block: clamp(14px, 3vh, 40px); display: grid; align-items: center; }
.hero-split__grid { display: grid; gap: 20px; }
.hero-card { display: grid; grid-template-rows: subgrid; grid-row: span 6; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); padding-bottom: clamp(16px, 3vh, 28px); }
.hero-card > :not(.hero-card__media) { margin-inline: clamp(18px, 2.4vw, 32px); }
.hero-card__media { display: block; margin-bottom: clamp(14px, 2.6vh, 24px); background: var(--bg-soft); }
/* the photos are wide banners (1712x624): shown whole, never cropped */
.hero-card__media img { width: 100%; height: auto; aspect-ratio: 1712 / 624; object-fit: cover; }
.hero-card .eyebrow { margin-bottom: clamp(4px, 1vh, 10px); }
.hero-card--pro .eyebrow { color: var(--red); }
.hero-card h1, .hero-card h2 { font-size: clamp(1.5rem, min(1rem + 1.2vw, 4.2vh), 2.125rem); line-height: 1.18; margin: 0 0 clamp(6px, 1.4vh, 12px); }
.hero-card h1 .accent { color: var(--brand-600); }
.hero-card__lead { margin-top: 0; margin-bottom: clamp(12px, 2.4vh, 22px); color: var(--muted); font-size: clamp(.9688rem, min(.92rem + .2vw, 2.3vh), 1.0625rem); line-height: 1.55; }
.hero-card .btn-row { align-self: start; }
.hero-card__links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: clamp(12px, 2.4vh, 22px); padding-top: clamp(10px, 2vh, 18px); border-top: 1px solid var(--line);
  font-size: .9375rem; font-weight: 600; }
.hero-card__links a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; white-space: nowrap; }
.hero-card__links a:hover { text-decoration: underline; }
.hero-card__links .icon { width: 15px; height: 15px; }
@media (min-width: 760px) {
  .hero-split__grid { grid-template-columns: 1fr 1fr; gap: 0 clamp(16px, 2.5vw, 32px); }
}
@media (min-width: 760px) and (min-height: 560px) { .hero-split { min-height: calc(100svh - var(--header-h)); } }
/* narrow two-column widths: buttons wrap into two rows, so the photo gives up some height */
@media (min-width: 760px) and (max-width: 1099px) {
  .hero-card .btn { min-height: 44px; padding: 9px 16px; font-size: .9375rem; }
  .hero-card .btn-row { gap: 8px; }
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(28px, 3vw, 40px); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Service teasers (no box: image + text) ---------- */
.card { position: relative; display: flex; flex-direction: column; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card--link:hover .card__media img { transform: scale(1.03); }
.card__body { display: flex; flex-direction: column; flex: 1; padding-top: clamp(14px, 2.2vh, 20px); }
.card__body h3 { margin-bottom: 6px; transition: color .2s; }
.card--link:hover h3 { color: var(--brand-600); }
.card__body p { color: var(--muted); font-size: .9688rem; line-height: 1.55; margin-bottom: .8em; }
.card__body .link-arrow { margin-top: auto; font-size: .9375rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Features: hairline on top, plain icon ---------- */
.feature { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.feature p { color: var(--muted); margin: 0; font-size: .9688rem; line-height: 1.55; }
.feature h3 { margin: 0; font-size: 1.0625rem; letter-spacing: -.01em; }
.feature-icon { display: inline-flex; color: var(--brand-600); }
.feature-icon .icon { width: 22px; height: 22px; stroke-width: 1.75; }
.feature-icon--red { color: var(--red); }
.feature-icon--orange { color: #c4510f; }
.feature-icon--green { color: var(--success); }
.feature .meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: auto; padding-top: 4px; }

.tag { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: .875rem; font-weight: 600; }
.tag .icon { width: 15px; height: 15px; color: var(--success); }
a.tag { color: var(--brand-600); text-decoration: none; }
a.tag:hover { text-decoration: underline; }

/* ---------- Editorial rows (training extras) ---------- */
.rows { border-bottom: 1px solid var(--line); }
.row-item { display: grid; gap: 12px 48px; padding-block: clamp(24px, 4vh, 40px); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .row-item { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.row-item__head { display: flex; gap: 16px; align-items: flex-start; }
.row-item__head .feature-icon { margin-top: 4px; }
.row-item h2 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); margin: 0; }
.row-item__body { color: var(--muted); }
.row-item__body p:last-of-type { margin-bottom: 12px; }
.row-item .meta { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* ---------- Split / media ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 72px); } .split--reverse > :first-child { order: 2; } }
.media-frame { border-radius: var(--radius); overflow: hidden; }
.media-frame img { width: 100%; max-height: 62vh; object-fit: cover; }
.media-frame--product { border-radius: 0; }
.media-frame--product img { max-height: 56vh; object-fit: contain; mix-blend-mode: multiply; }

.checklist { list-style: none; padding: 0; margin: 0 0 clamp(18px, 3vh, 28px); display: grid; gap: clamp(8px, 1.4vh, 12px); }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { width: 20px; height: 20px; color: var(--success); stroke-width: 2.5; margin-top: 3px; }
.checklist--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .checklist--2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Price ---------- */
.price-box { display: grid; gap: 2px; padding-top: clamp(14px, 2.4vh, 22px); border-top: 1px solid var(--line); margin-bottom: clamp(16px, 2.6vh, 24px); }
.price-box__label { font-size: .8125rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.price-box__value { font-size: clamp(1.6rem, min(1.3rem + 1.2vw, 4.6vh), 2.4rem); font-weight: 800; color: var(--navy-900); letter-spacing: -.03em; line-height: 1.1; }
.price-box__value small { font-size: .5em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-box__note { font-size: .9375rem; color: var(--muted); }

.gift { display: grid; gap: 16px; }
@media (min-width: 800px) { .gift { grid-template-columns: auto 1fr; gap: 28px; align-items: start; } }
.gift h2, .gift h3 { margin-bottom: 8px; }
.gift-options { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 720px) { .gift-options { grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: start; } }
.gift-option { padding-left: 18px; border-left: 3px solid var(--red); }
.gift-option p { margin: 0; color: var(--muted); font-size: .9688rem; }
.gift-option strong { display: block; margin-bottom: 4px; }
.gift-or { align-self: center; font-weight: 700; color: var(--muted); font-size: .9375rem; }

/* ---------- Gallery ---------- */
.gallery__main { position: relative; aspect-ratio: 1; max-height: 58vh; width: 100%; background: #fff; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__main--cover { border-radius: var(--radius); }
.gallery__main--cover img { object-fit: cover; }
.gallery__caption { margin: 8px 0 0; font-size: .875rem; color: var(--muted); text-align: center; min-height: 1.5em; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 76px)); justify-content: center; gap: 8px; margin-top: 8px; list-style: none; padding: 0; }
.gallery__thumbs--4 { grid-template-columns: repeat(4, minmax(0, 76px)); }
.gallery__thumbs--7 { grid-template-columns: repeat(7, minmax(0, 76px)); }
.gallery__thumbs--3 { grid-template-columns: repeat(3, minmax(0, 76px)); }
.gallery__thumbs--2 { grid-template-columns: repeat(2, minmax(0, 76px)); }
.gallery__thumb { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; overflow: hidden; background: #fff; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb[aria-current="true"] { opacity: 1; border-bottom-color: var(--brand-600); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding-block: clamp(20px, 4vh, 56px) clamp(32px, 6vh, 72px); background: var(--bg-soft); }
.page-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 4vw, 64px); } }
.page-hero h1 { font-size: clamp(1.8rem, min(1.2rem + 2.2vw, 5.6vh), 3rem); margin-bottom: clamp(10px, 2vh, 16px); }
.page-hero .lead { margin-bottom: clamp(16px, 3vh, 28px); max-width: 640px; }
.page-hero__media { border-radius: var(--radius); overflow: hidden; }
.page-hero__media img { width: 100%; aspect-ratio: 3 / 2; max-height: 44vh; object-fit: cover; }
.jump-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9375rem; font-weight: 600; }
.jump-links a { text-decoration: none; }
.jump-links a:hover { text-decoration: underline; }

/* ---------- Product layout ---------- */
.product { display: grid; gap: 40px; }
@media (min-width: 960px) { .product { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } .product__gallery { position: sticky; top: calc(var(--header-h) + 24px); } }
.product h1 { font-size: clamp(1.7rem, min(1.2rem + 1.8vw, 4.8vh), 2.6rem); margin-bottom: .35em; }
.product .lead { margin-bottom: clamp(14px, 2.4vh, 22px); }
.spec-list { display: grid; gap: 0 24px; margin: 0 0 clamp(16px, 3vh, 28px); padding: 0; list-style: none; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .spec-list { grid-template-columns: 1fr 1fr; } }
.spec-list li { display: flex; gap: 12px; align-items: center; padding: clamp(9px, 1.5vh, 14px) 0; border-bottom: 1px solid var(--line); font-size: .9688rem; line-height: 1.45; }
.spec-list .spec-icon { display: inline-flex; color: var(--brand-600); flex: none; }
.spec-list .spec-icon .icon { width: 20px; height: 20px; stroke-width: 1.75; }

/* ---------- Pro products ---------- */
/* the divider sits in the gap above the product, outside its box, so a jump link lands on the product itself and the line stays out of view */
.pro-product + .pro-product { position: relative; margin-top: calc(var(--space-section) * 2); }
.pro-product + .pro-product::before { content: ""; position: absolute; inset: calc(var(--space-section) * -1) 0 auto; border-top: 1px solid var(--line); }
.pro-product { scroll-margin-top: 8px; }
.pro-product .gallery { max-width: 520px; width: 100%; margin-inline: auto; }
.model-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.model-list li { font-weight: 700; font-size: 1.0625rem; color: var(--navy-900); }

/* ---------- Key facts (training) ---------- */
.info-cards { display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-card { display: grid; grid-template-columns: 28px 1fr; gap: 2px 16px; padding-block: clamp(14px, 2.4vh, 22px); border-bottom: 1px solid var(--line); }
.info-card .feature-icon { grid-row: span 2; margin-top: 2px; }
.info-card .feature-icon .icon { width: 24px; height: 24px; }
.info-card__label { display: block; font-size: .875rem; font-weight: 600; color: var(--muted); }
.info-card__value { display: block; font-size: 1.3rem; font-weight: 800; color: var(--navy-900); letter-spacing: -.02em; line-height: 1.25; }
.info-card__value small { font-size: .7em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.info-card--highlight .info-card__value { color: var(--red); }
.info-card--highlight .feature-icon { color: var(--red); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid #d5dde7; }
.faq details { border-bottom: 1px solid #d5dde7; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: clamp(16px, 2.4vh, 22px) 0; cursor: pointer; list-style: none; font-weight: 700; color: var(--navy-900); font-size: 1.0625rem; }
.faq summary:hover { color: var(--brand-600); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; color: var(--brand-600); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .faq-answer { padding: 0 40px 22px 0; color: var(--muted); }
.faq .faq-answer p:last-child { margin: 0; }

/* ---------- Press ---------- */
.press-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.press-item { display: grid; gap: 8px; padding-block: clamp(16px, 2.6vh, 24px); border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .press-item { grid-template-columns: 130px 1fr auto; align-items: baseline; gap: 28px; } }
.press-item time { font-size: .9375rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.press-item h2, .press-item h3 { font-size: 1.125rem; margin: 0 0 4px; letter-spacing: -.01em; }
.press-item p { margin: 0; font-size: .9375rem; color: var(--muted); }
.press-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.press-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.press-link:hover { text-decoration: underline; }
.press-link .icon { width: 15px; height: 15px; }
.press-badge { display: inline-block; vertical-align: .15em; margin-right: 4px; padding: 2px 8px; border-radius: 999px; background: var(--navy-900); color: #fff;
  font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.press-group + .press-group { margin-top: var(--space-section); }
.press-group__title { margin-bottom: clamp(12px, 2vh, 20px); }

/* ---------- Partner logos ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: center; }
.partners--center { justify-content: center; }
.partner { display: inline-flex; opacity: .85; transition: opacity .2s; }
.partner:hover { opacity: 1; }
.partner img { max-height: 40px; width: auto; }

/* ---------- CTA (full-width band) ---------- */
.cta-section { background: var(--navy-900); color: #c9d6e6; padding-block: clamp(36px, 7vh, 80px); }
.cta-band__grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-band__grid { grid-template-columns: 1.3fr auto; gap: 48px; } }
.cta-section h2 { color: #fff; margin-bottom: 10px; }
.cta-section p { margin: 0; font-size: 1.0625rem; max-width: 620px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 6vw, 96px); } }
.contact-intro p { color: var(--muted); max-width: 30em; }
.contact-list { margin: 0; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; gap: 4px 32px; padding-block: clamp(16px, 2.6vh, 24px); border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .contact-list > div { grid-template-columns: 150px 1fr; align-items: baseline; } }
.contact-list dt { font-size: .875rem; font-weight: 600; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.contact-list address { font-style: normal; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-phone { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 800 !important; letter-spacing: -.02em; color: var(--navy-900); }
.contact-map { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .9375rem; }
.contact-map .icon { width: 15px; height: 15px; }

.contact-aside { display: grid; gap: 28px; align-content: start; }
.contact-line { display: flex; align-items: center; gap: 14px; }
.contact-line span { display: block; font-size: .875rem; color: var(--muted); }
.contact-line a { font-weight: 700; font-size: 1.0625rem; text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }
.aside-block { padding-top: 24px; border-top: 1px solid var(--line); }
.aside-block h2 { font-size: 1.1rem; }

/* ---------- Form ---------- */
.form-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .form-layout { grid-template-columns: 1.4fr .8fr; gap: 56px; align-items: start; } }
.form-card { padding: 0; }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 8px; color: var(--navy-900); }
.field .req { color: var(--red); }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 8px; border: 1.5px solid #cfd8e3; background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2356667b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aebccc; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(6, 115, 173, .15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .9688rem; color: var(--ink); }
.checkbox input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--brand-600); flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .875rem; color: var(--muted); margin: 0; }
.alert { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; margin-bottom: 24px; font-size: .9688rem; }
.alert[hidden] { display: none; }
.alert--error { background: #fde9ec; color: #8a1424; border: 1px solid #f6c6ce; }
.alert--info { background: var(--bg-tint); color: var(--brand-700); border: 1px solid #c6e9fa; }
.alert .icon { margin-top: 2px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: step; }
.steps li { position: relative; padding-left: 52px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 700; font-size: .9375rem; }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: .9688rem; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .9688rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 700; color: var(--navy-900); }
.table-wrap { overflow-x: auto; }
.todo { background: #fff6d6; padding: 0 .3em; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #a9bbd0; padding-top: clamp(40px, 7vh, 80px); font-size: .9688rem; }
.footer-grid { display: grid; gap: 32px; padding-bottom: clamp(28px, 5vh, 48px); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand img { width: 150px; margin-bottom: 20px; }
.footer-brand p { max-width: 340px; }
.site-footer h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 18px; font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #d5e0ec; text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--brand); margin-top: 3px; width: 18px; height: 18px; }
.footer-contact address { font-style: normal; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #fff; transition: background-color .2s; }
.social a:hover { background: var(--brand-600); color: #fff; }
.social .icon { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }
.center { text-align: center; }
.stack-lg > * + * { margin-top: clamp(48px, 6vw, 80px); }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .cta-section, .btn { display: none !important; }
  body { font-size: 12pt; }
}
/* backdrop-filter would become the containing block of the fixed mobile menu */
@media (max-width: 1120px) { .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; } }
.price-box--cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.price-box--cta > div { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
.price-box--cta .btn { flex: none; }
/* short laptop screens: flatter images so a whole block fits in one view */
@media (min-width: 960px) and (max-height: 820px) {
  .card__media { aspect-ratio: 2 / 1; }
  .media-frame--product img { max-height: 50vh; }
}
/* key message between hero and services: quiet pull quote between hairlines */
.statement-section { padding-top: var(--space-section); }
.statement { max-width: 760px; margin: 0 auto; padding-block: clamp(24px, 4.5vh, 40px); border-block: 1px solid var(--line); text-align: center;
  font-size: clamp(1.1rem, min(.95rem + .7vw, 3vh), 1.45rem); line-height: 1.55; font-weight: 500; color: var(--ink); text-wrap: balance; }
.statement em { font-style: normal; font-weight: 600; color: var(--brand-600); white-space: nowrap; }

/* ---------- Mobile refinements ---------- */
@media (max-width: 639px) {
  :root { --space-section: clamp(40px, 6vh, 56px); --space-tight: 32px; }
  body { font-size: 1rem; }

  /* full-width, equal buttons instead of ragged stacks */
  .btn-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-row .btn { width: 100%; }
  .price-box--cta .btn { width: 100%; }

  /* service teasers: compact list (thumbnail + text) */
  .grid--4 { gap: 0; border-bottom: 1px solid var(--line); }
  .card { flex-direction: row; align-items: flex-start; gap: 14px; padding-block: 14px; border-top: 1px solid var(--line); }
  .card__media, .card--link .card__media { flex: none; width: 96px; aspect-ratio: 1; border-radius: var(--radius-sm); }
  .card__body { padding-top: 0; }
  .card__body h3 { font-size: 1.05rem; margin-bottom: 4px; }
  .card__body p { font-size: .9063rem; line-height: 1.5; margin: 0; }
  .card__body .link-arrow { display: none; }

  /* images inside sections: no full-screen photos */
  .media-frame img { max-height: 240px; }
  .media-frame--product img { max-height: 260px; }
  .page-hero__media img { aspect-ratio: 16 / 9; max-height: 220px; }
  .gallery__main { max-height: 300px; }
  .split { gap: 24px; }

  .partners { gap: 20px 32px; }
  .partner img { max-height: 28px; }

  .statement { padding-block: 22px; }
  .faq summary { font-size: 1rem; }
  .info-card__value small a { white-space: nowrap; }

  /* footer: link lists side by side */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-brand img { width: 130px; margin-bottom: 14px; }
  .footer-bottom { flex-direction: column; }
}

/* Mobile split hero: one card at a time, switched with tabs on top (without JS both cards stay visible, stacked) */
.hero-tabs { display: none; }
@media (max-width: 759px) {
  .hero-split__grid { gap: 14px; }
  .hero-card { grid-row: auto; grid-template-rows: none; }
  .hero-split__grid.has-tabs .hero-tabs { display: grid; }
  .hero-tabs { grid-template-columns: 1fr 1.35fr; gap: 4px; padding: 4px; border-radius: 12px; background: #e2e8f0; }
  .hero-tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 9px;
    background: transparent; color: var(--navy-900); font: inherit; font-size: .9375rem; font-weight: 700; line-height: 1.2; cursor: pointer;
    transition: background-color .2s, color .2s, box-shadow .2s; }
  .hero-tabs .icon { width: 17px; height: 17px; flex: none; }
  .hero-tabs button[aria-selected="true"] { background: #fff; box-shadow: 0 1px 3px rgba(11, 29, 54, .14); }
  .hero-tabs #hero-tab-szakmai[aria-selected="true"] { background: var(--navy-900); color: #fff; }
  .hero-tabs #hero-tab-szakmai[aria-selected="true"] .icon { color: var(--brand); }
  .hero-tabs button:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
  .has-tabs .hero-card[hidden] { display: none; }
  .has-tabs .hero-card { animation: hero-tab-in .25s ease-out; }
}
@keyframes hero-tab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .has-tabs .hero-card { animation: none; } }
@media (max-width: 639px) {
  .hero-card h1, .hero-card h2 { font-size: clamp(1.45rem, 6.6vw, 1.75rem); }
  .hero-card .btn { min-height: 46px; padding-block: 10px; }
  .hero-card .btn-row { gap: 8px; align-self: stretch; }
}
