/* =====================================================================
   Hesmon Interiors – fő stíluslap
   Minimal, fekete-fehér, nagy fotós blokkokkal
   ===================================================================== */

:root {
    --black: #000;
    --ink: #111;
    --dark: #383838;
    --muted: #6b6b6b;
    --line: #dcdcd8;
    --light: #fff;
    --white: #fff;
    --header-h: 96px;
    --gutter: clamp(20px, 3.5vw, 48px);
    --font-head: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { opacity: .65; }
strong { font-weight: 500; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: -.01em;
    margin: 0 0 .6em;
}

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 900px; }
.text-center { text-align: center; }

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--black); color: var(--white); padding: .5em 1em; }
.skip-link:focus { left: 0; }

/* ---------- Gombok, linkek ---------- */
.btn {
    display: inline-block; padding: 1em 2.4em;
    background: var(--black); color: var(--white);
    font-family: var(--font-body); font-size: .95rem; font-weight: 400;
    text-decoration: none; border: 1px solid var(--black); border-radius: 0;
    cursor: pointer; transition: background .25s, color .25s;
}
.btn:hover { background: transparent; color: var(--black); opacity: 1; }
.btn-light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }

.link-arrow { color: var(--white); text-decoration: none; font-size: 1.05rem; font-weight: 400; display: inline-flex; gap: .6em; }
.link-arrow span { transition: transform .25s; }
.link-arrow:hover { opacity: 1; }
.link-arrow:hover span { transform: translateX(6px); }

.inline-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 1.2em 0 0; }
.inline-links a { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; font-weight: 400; }

/* ---------- Fejléc ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--header-h); color: var(--white);
    transition: background .35s, height .35s;
}
.site-header::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,0));
    transition: opacity .35s;
}
.site-header.scrolled, .is-sub .site-header { background: var(--black); height: 70px; }
.site-header.scrolled::after, .is-sub .site-header::after { opacity: 0; }

.header-inner {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    height: 100%; max-width: none;
}

.brand { display: inline-flex; flex-direction: column; line-height: 1; color: var(--white); text-decoration: none; justify-self: start; }
.brand:hover { opacity: 1; }
.brand img { height: 72px; width: auto; transition: height .35s; }
.site-header.scrolled .brand img, .is-sub .site-header .brand img { height: 48px; }
.brand-footer img { height: 80px; }

.main-nav ul { list-style: none; display: flex; gap: 6px 22px; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.main-nav a { color: var(--white); text-decoration: none; font-size: .93rem; font-weight: 400; padding: .3em 0; display: block; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .3s; }
.main-nav a:hover, .main-nav a.active { opacity: 1; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }

.header-social { display: flex; gap: 18px; justify-self: end; }
.header-social a { color: var(--white); display: flex; }
.header-social .icon { width: 20px; height: 20px; }

.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer; justify-self: end;
    width: 40px; height: 40px; padding: 12px 8px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--white); transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.25px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; height: 100vh; height: 100svh; min-height: 560px;
    display: flex; align-items: flex-end;
    background-color: var(--black); background-position: center; background-size: cover; background-repeat: no-repeat;
    color: var(--white);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.6) 100%);
}
.hero-content { position: relative; padding: 0 var(--gutter) clamp(40px, 7svh, 80px); width: 100%; }
.hero h1 { font-size: clamp(3rem, 9vw, 8.5rem); font-weight: 800; line-height: .92; margin: 0 0 .35em; }
.hero-kicker { font-size: 1rem; font-weight: 400; margin: 0 0 1em; }

.page-hero {
    position: relative; padding: 160px 0 70px; color: var(--white);
    background-color: var(--black); background-position: center; background-size: cover;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 800; margin: 0; }

/* ---------- Szekciók ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-white { background: var(--white); }
.section-light { background: var(--light); }
.section-black { background: var(--black); color: var(--white); }

.title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.title-xl { font-size: clamp(3rem, 10vw, 8rem); font-weight: 800; line-height: .92; margin-bottom: .5em; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 2em; }
.section-black .lead { color: rgba(255,255,255,.7); }
.kicker { font-size: .95rem; font-weight: 400; margin: 0 0 1.2em; }

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; align-items: center; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head .title { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.section-head .inline-links { color: var(--ink); }
.section-head .follow-note { margin-top: .6em; color: var(--ink); font-weight: 400; }

/* Teljes szélességű fotós blokkok */
.band {
    height: clamp(320px, 70vh, 760px);
    height: clamp(320px, 70svh, 760px);
    background-color: var(--black); background-position: center; background-size: cover; background-repeat: no-repeat;
}
.img-pair { display: grid; grid-template-columns: 1fr 1fr; }
.img-pair img { width: 100%; height: clamp(280px, 55vw, 720px); object-fit: cover; }

/* ---------- Rólunk (kép + szövegpanel) ---------- */
.feature {
    position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: flex-end;
    padding: 120px var(--gutter);
    background-color: var(--black); background-position: center; background-size: cover;
    color: var(--white);
}
.feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.75) 60%, rgba(0,0,0,.85) 100%); }
.feature-panel { position: relative; z-index: 1; max-width: 620px; }
/* A Rólunk kép és az alatta lévő képpár egy képnek hasson: közös feketére futnak ki */
.feature::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; background: linear-gradient(rgba(0,0,0,0), #000); pointer-events: none; }
.img-pair--blend { position: relative; background: #000; }
.img-pair--blend::before, .img-pair--blend::after { content: ""; position: absolute; pointer-events: none; z-index: 1; }
.img-pair--blend::before { left: 0; right: 0; top: 0; height: 200px; background: linear-gradient(#000, rgba(0,0,0,0)); }
.img-pair--blend::after { top: 0; bottom: 0; left: 50%; width: 280px; transform: translateX(-50%); background: linear-gradient(90deg, rgba(0,0,0,0), #000 50%, rgba(0,0,0,0)); }
.feature-panel h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.feature-panel p { color: rgba(255,255,255,.88); text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

/* ---------- Szolgáltatások (teljes szélességű csempék) ---------- */
#szolgaltatasok { padding-bottom: 100px; }
#szolgaltatasok .lead { margin-bottom: clamp(40px, 6vw, 70px); }
.services {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
}
.service-tile {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--white);
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.service-tile:nth-child(5n) { border-right: 0; }
.service-tile img { width: 78%; height: 78%; aspect-ratio: 1; object-fit: contain; transition: transform .6s ease; }
.service-tile::after {
    content: ""; position: absolute; inset: 0;
    background: rgba(255,255,255,.72);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0; transition: opacity .45s ease;
}
.service-name {
    position: absolute; inset: 0; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; text-align: center;
    font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
    font-size: clamp(1rem, 1.7vw, 1.6rem); line-height: 1.1;
    opacity: 0; transform: translateY(60%);
    transition: opacity .45s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.service-tile:hover::after { opacity: 1; }
.service-tile:hover img { transform: scale(1.06); }
.service-tile:hover .service-name { opacity: 1; transform: translateY(0); }

.service-cta { background: var(--black); }
.service-cta a {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    padding: 20px; text-align: center; color: var(--white); text-decoration: none;
    font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
    font-size: clamp(1.1rem, 2vw, 1.9rem); line-height: 1.1;
}
.service-cta a span { display: inline-block; margin-left: .3em; transition: transform .3s; }
.service-cta a:hover { opacity: 1; }
.service-cta a:hover span { transform: translateX(8px); }
.service-cta::after { display: none; }

/* Telefonon / érintőképernyőn nincs hover: a név fixen a csempe alján, az ikon fölötte */
@media (hover: none), (max-width: 1000px) {
    .service-tile { flex-direction: column; justify-content: center; gap: 10px; padding: 14px 10px; }
    .service-tile img { width: clamp(64px, 17vw, 130px); height: auto; aspect-ratio: 1; transform: none !important; }
    .service-tile::after { display: none; }
    .service-name { position: static; inset: auto; display: block; opacity: 1; transform: none; padding: 0; color: var(--ink); font-size: clamp(.85rem, 3.4vw, 1.05rem); }
}

/* ---------- Azonnal elérhető ---------- */
#keszlet p { font-size: 1.1rem; margin: 0 0 2.4em; }

/* ---------- Galéria ---------- */
#korabbi { padding-top: clamp(40px, 5vw, 64px); }
#korabbi .section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.gallery-wrap { position: relative; overflow: hidden; transition: max-height .8s ease; }
.gallery-wrap.is-collapsed::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--fade-h, 30%); pointer-events: none;
    background: linear-gradient(rgba(255,255,255,0), var(--white) 92%);
}
.gallery-more { text-align: center; margin-top: 30px; }
.gallery-more[hidden] { display: none; }
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0 4px; }
.gallery-item { display: block; aspect-ratio: 1; overflow: hidden; background: var(--light); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery-item:hover { opacity: 1; }
.gallery-item:hover img { transform: scale(1.05); }

.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.96); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); font-size: 2.8rem; font-weight: 300; cursor: pointer; line-height: 1; padding: 10px 16px; opacity: .7; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- GYIK ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    cursor: pointer; list-style: none; padding: 28px 60px 28px 0; position: relative;
    font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-weight: 300; font-size: 2rem; transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 60px 30px 0; max-width: 900px; color: var(--dark); }

/* ---------- Kapcsolat ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 80px; align-items: start; }
.contact-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; }
.contact-list dt, .contact-list dd { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.18); margin: 0; }
.contact-list dt { padding-right: 30px; color: rgba(255,255,255,.6); }
.contact-list dd { font-weight: 400; }

/* ---------- Árajánlatkérés ---------- */
.contact-block { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px 80px; align-items: start; }
.contact-block h3 { font-size: clamp(2rem, 4vw, 3rem); }
.contact-block .lead { font-size: 1rem; margin-bottom: 1.2em; }
.contact-block .contact-list dt:first-of-type, .contact-block .contact-list dd:first-of-type { padding-top: 0; }
.contact-block .contact-list dt:last-of-type, .contact-block .contact-list dd:last-of-type { border-bottom: 0; }
.quote { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px 80px; align-items: start; margin-top: clamp(60px, 8vw, 100px); padding-top: clamp(50px, 6vw, 80px); border-top: 1px solid rgba(255,255,255,.18); }
.quote-intro h3 { font-size: clamp(2rem, 4vw, 3rem); }
.quote-intro p { color: rgba(255,255,255,.7); }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .85rem; color: rgba(255,255,255,.65); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field select, .field textarea {
    font: inherit; font-size: 1rem; color: var(--white); background: transparent;
    border: 0; border-bottom: 1px solid rgba(255,255,255,.35); border-radius: 0; padding: 10px 0; width: 100%;
    transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") right center / 22px no-repeat; }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--white); }
.field ::placeholder { color: rgba(255,255,255,.35); }
.field input[type="file"] { font: inherit; font-size: .9rem; color: rgba(255,255,255,.75); padding: 12px 0; }
.field input[type="file"]::file-selector-button { font: inherit; font-size: .85rem; margin-right: 14px; padding: .55em 1.2em; border: 1px solid rgba(255,255,255,.5); background: transparent; color: var(--white); cursor: pointer; }
.quote-help { font-size: .95rem; color: rgba(255,255,255,.75); line-height: 1.7; margin-top: 1.6em; }
.quote-intro .quote-help p { margin: 0 0 .4em; }
.quote-intro .quote-help > p:first-child { font-weight: 600; color: var(--white); }
.quote-help ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.quote-intro .quote-help .field-note { margin: 0; padding: 12px 14px; border-left: 2px solid rgba(255,255,255,.5); background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); }
.field-check label { display: flex; gap: 14px; align-items: flex-start; font-size: .95rem; color: rgba(255,255,255,.9); cursor: pointer; }
/* Erős, jól látható pipa: fehér keretes négyzet, bepipálva fehér háttér fekete pipával */
.field-check input {
    appearance: none; -webkit-appearance: none; flex-shrink: 0;
    width: 22px; height: 22px; margin: 1px 0 0; cursor: pointer;
    border: 2px solid var(--white); border-radius: 3px; background: transparent;
    display: grid; place-items: center; transition: background .2s;
}
.field-check input::after { content: ""; width: 6px; height: 11px; border: solid var(--black); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.field-check input:checked { background: var(--white); }
.field-check input:checked::after { opacity: 1; }
.field-check input:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.field.has-error .field-check input, .field-check.has-error input { border-color: #ff6b6b; }

/* Kiválasztott képek: saját gomb (a natív "nincs kiválasztva" felirat helyett) + előnézetek törlés gombbal */
.field.is-enhanced input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-btn { align-self: flex-start; margin-top: 8px; padding: .65em 1.4em; border: 1px solid rgba(255,255,255,.6); color: var(--white) !important; font-size: .9rem !important; cursor: pointer; transition: background .2s, color .2s; }
.file-btn[hidden] { display: none; }
.file-btn:hover { background: var(--white); color: var(--black) !important; }
.field.is-enhanced input[type="file"]:focus-visible + .file-btn { outline: 2px solid var(--white); outline-offset: 3px; }
label[for="q-photos"]::after { content: attr(data-count); color: var(--white); }
.photo-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.photo-list[hidden] { display: none; }
.photo-list li { position: relative; width: 88px; height: 88px; border: 1px solid rgba(255,255,255,.25); background: #111; }
.photo-list img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-name { display: block; padding: 6px; font-size: .7rem; line-height: 1.3; color: rgba(255,255,255,.8); word-break: break-all; overflow: hidden; height: 100%; }
.photo-remove {
    position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 50%;
    border: 0; background: var(--white); color: var(--black); font-size: 1.2rem; line-height: 1; cursor: pointer;
    display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.photo-remove:hover { background: #ff6b6b; color: var(--white); }
.field.has-error input, .field.has-error textarea { border-bottom-color: #ff6b6b; }
.field-error { font-size: .82rem; color: #ff8a8a; }
.quote-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.quote-actions .btn[disabled] { opacity: .5; cursor: wait; }
.quote-status { margin: 0; font-size: .95rem; }
.quote-status.is-ok { color: #9be39b; }
.quote-status.is-error { color: #ff8a8a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Jogi oldalak ---------- */
.legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.6em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.15rem; margin-top: 2em; }
.legal ul { padding-left: 1.2em; }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--black); color: var(--white); border-top: 1px solid rgba(255,255,255,.12); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; padding-top: 50px; padding-bottom: 40px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.footer-nav a { text-decoration: none; font-size: .93rem; color: rgba(255,255,255,.8); }
.footer-social { display: flex; gap: 18px; }
.footer-social a { color: var(--white); display: flex; }
.footer-social .icon { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; padding-bottom: 20px; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { text-decoration: none; }

.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    width: 44px; height: 44px; display: grid; place-items: center;
    background: var(--black); color: var(--white); border: 1px solid rgba(255,255,255,.3);
    opacity: 0; pointer-events: none; transform: translateY(10px); transition: .3s;
}
.to-top .icon { width: 24px; height: 24px; }
.to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { opacity: 1; background: var(--white); color: var(--black); }

.cookie-bar {
    position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 400; max-width: 760px; margin: 0 auto;
    background: var(--black); color: var(--white); border: 1px solid rgba(255,255,255,.2);
    padding: 18px 22px; display: flex; gap: 20px; align-items: center;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: .88rem; }
.cookie-bar .btn { padding: .7em 1.8em; }

/* ---------- Animáció ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Reszponzív ---------- */
@media (max-width: 1180px) {
    .main-nav ul { gap: 4px 16px; }
    .main-nav a { font-size: .85rem; }
    .gallery { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1000px) {
    :root { --header-h: 64px; }
    .brand img, .site-header.scrolled .brand img, .is-sub .site-header .brand img { height: 40px; }
    .site-header.scrolled, .is-sub .site-header { height: var(--header-h); }
    .header-inner { grid-template-columns: 1fr auto auto; gap: 18px; }
    .nav-toggle { display: flex; }
    .header-social { order: 2; }
    .nav-toggle { order: 3; }
    .main-nav {
        position: fixed; inset: 0; z-index: -1;
        background: var(--black); display: flex; align-items: center; justify-content: center;
        opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
    }
    .main-nav.open { opacity: 1; visibility: visible; }
    .main-nav ul { flex-direction: column; align-items: center; gap: 8px; }
    .main-nav a { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 6vw, 2.4rem); }
    .main-nav a::after { display: none; }

    .section-head, .contact-grid, .contact-block, .quote { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .services { grid-template-columns: repeat(3, 1fr); }
    .service-tile:nth-child(n) { border-right: 1px solid var(--line); }
    .service-tile:nth-child(3n) { border-right: 0; }
    .service-cta { grid-column: 1 / -1; aspect-ratio: auto; min-height: 160px; }
    .feature { min-height: 0; justify-content: flex-start; padding-top: 140px; padding-bottom: 100px; }
    .feature::before { background: rgba(0,0,0,.72); }
}

@media (min-width: 701px) and (max-width: 1000px) {
    /* Tablet: a Rólunk kép felül, balra, a kormány egészben, a szöveg alatta */
    .feature {
        display: block; min-height: 0;
        padding: 64vw var(--gutter) 40px;
        background-size: 120% auto; background-position: 0 0; background-repeat: no-repeat;
    }
    .feature::before { background: linear-gradient(rgba(0,0,0,0) 0, rgba(0,0,0,0) 38vw, rgba(0,0,0,.75) 62vw, #000 76vw); }
    .feature::after { height: 60px; }
    .feature-panel { max-width: none; }
    .band { height: auto; aspect-ratio: 16 / 7; background-position: center center; }
    .img-pair--blend::before { height: 80px; }
    .service-cta a { font-size: clamp(1.8rem, 4.2vw, 2.6rem); }
    #korabbi .section-head { text-align: center; }
    #korabbi .section-head .inline-links { justify-content: center; }
}

@media (max-width: 700px) {
    /* Korábbi munkáink fejléc: középre igazítva */
    #korabbi .section-head { text-align: center; }
    #korabbi .section-head .inline-links { justify-content: center; }

    /* Kapcsolat: középre igazítva */
    #kapcsolat .title-xl, .contact-block, .quote-intro { text-align: center; }
    .contact-block .inline-links { justify-content: center; }
    .contact-block .contact-list dt { padding-right: 0; }
    .quote-help ul { list-style: none; padding-left: 0; }
    .quote-intro .quote-help .field-note { border-left: 0; border-top: 2px solid rgba(255,255,255,.5); }
    .quote-actions { justify-content: center; text-align: center; }

    /* Lábléc: balra logó, mellette nagyobb ikonok, alatta teljes szélességben a linkek */
    .footer-inner { display: grid; grid-template-columns: auto auto; justify-content: center; grid-template-areas: "logo social" "nav nav"; align-items: center; gap: 28px 28px; padding-top: 36px; padding-bottom: 30px; }
    .footer-inner .brand-footer { grid-area: logo; }
    .footer-inner .brand-footer img { height: 56px; }
    .footer-social { grid-area: social; justify-content: center; gap: 18px; }
    .footer-social .icon { width: 26px; height: 26px; }
    .footer-social a[href^="tel:"] { display: none; }
    .footer-nav { grid-area: nav; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 8px; }
    .footer-nav a { padding: 10px 0; font-size: 1rem; text-align: center; }
    .footer-bottom-inner { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
    .footer-legal { justify-content: center; }

    /* Képsávok: a kép saját arányában, középre igazítva (kb. fele akkora, mint asztalon) */
    .band { height: auto; aspect-ratio: 10 / 7; background-position: center center; }

    /* Rólunk: a kép felül, balra igazítva látszik, a szöveg alatta kezdődik */
    .feature {
        display: block; min-height: 0;
        padding: 88vw var(--gutter) 24px;
        background-size: 160% auto; background-position: 0 0; background-repeat: no-repeat;
    }
    .feature::before { background: linear-gradient(rgba(0,0,0,0) 0, rgba(0,0,0,0) 50vw, rgba(0,0,0,.75) 85vw, #000 100vw); }
    .feature::after { height: 40px; }
    /* az alsó két kép teljes magasságban, vágás nélkül, lágyan egymásba olvadva */
    .img-pair--blend img { height: auto !important; object-fit: cover; }
    .img-pair--blend img:first-child { aspect-ratio: 4 / 2.6; object-position: center 88%; }
    .img-pair--blend img:last-child { aspect-ratio: 3 / 3.4; object-position: center 75%; }
    .img-pair--blend::before { height: 40px; }
    .img-pair--blend::after { display: none; }
    .img-pair--blend img:first-child { -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
    .img-pair--blend img:last-child { -webkit-mask-image: linear-gradient(transparent, #000 15%); mask-image: linear-gradient(transparent, #000 15%); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .services { grid-template-columns: repeat(2, 1fr); }
    .service-tile:nth-child(n) { border-right: 1px solid var(--line); }
    .service-tile:nth-child(2n) { border-right: 0; }
    .service-cta { grid-column: auto; aspect-ratio: 4 / 3; min-height: 0; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .img-pair { grid-template-columns: 1fr; }
    .img-pair img { height: 300px; }
    .img-pair--blend::after { left: 0; right: 0; width: auto; top: 300px; bottom: auto; height: 160px; transform: translateY(-50%); background: linear-gradient(rgba(0,0,0,0), #000 50%, rgba(0,0,0,0)); }
    .contact-list { grid-template-columns: 1fr; }
    .quote-form { grid-template-columns: 1fr; }
    .contact-list dt { padding-bottom: 0; border-bottom: 0; }
    .contact-list dd { padding-top: 4px; }
    .faq summary { padding-right: 44px; }
    .faq details p { padding-right: 0; }
    .lightbox { padding: 60px 10px; }
    .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; }
}
