/* =========================================================
   Alice Hartman – Fotós portfólió
   Színváltozat: tengerkék és korall. Az elrendezés azonos
   az eredetivel, csak a színek mások.
   ========================================================= */

:root {
  --bg: #f2f6fb;
  --bg-alt: #dfe9f5;
  --ink: #13233d;
  --ink-soft: #4a5b75;
  --line: #c8d5e6;
  --accent: #c9452f;
  --accent-dark: #a3341f;
  --white: #ffffff;
  --error: #b3412f;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h2 { font-size: clamp(2rem, 4vw, 3rem); }
p { margin: 0 0 1.2em; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }

.eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  font: 500 .8rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--bg-alt); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--accent-dark); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Fejléc ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  color: var(--white);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(242, 246, 251, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: .02em;
}
.main-nav { display: flex; align-items: center; gap: 2.2rem; }
.main-nav a {
  position: relative;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
}
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  padding: .6rem 1.1rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  transition: background .3s, color .3s;
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 0;
  color: inherit; cursor: pointer;
  position: relative; z-index: 60;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero / diavetítés ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: #13233d;
}
.hero-slides, .hero-slide, .hero-overlay { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.6s var(--ease);
}
.hero-slide.is-active {
  opacity: 1;
  animation: kenburns 8s linear forwards;
}
@keyframes kenburns {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(9,20,40,.55) 0%, rgba(9,20,40,.25) 40%, rgba(9,20,40,.65) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.25rem 6rem;
  max-width: 980px;
}
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 400;
  margin-bottom: 2.5rem;
}
.hero h1 em { font-style: italic; color: #ffcdbf; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.hero-anim {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1.1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-dots {
  position: absolute;
  bottom: 2.2rem; left: clamp(1.25rem, 4vw, 3rem);
  display: flex; gap: .6rem;
}
.hero-dots button {
  width: 34px; height: 24px;
  padding: 0; border: 0; background: none; cursor: pointer;
  position: relative;
}
.hero-dots button::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  background: rgba(255,255,255,.35);
}
.hero-dots button::after {
  content: ""; position: absolute; left: 0; top: 50%; height: 2px; width: 0;
  background: var(--white);
}
.hero-dots button[aria-selected="true"]::after { animation: progress var(--slide-ms, 6000ms) linear forwards; }
@keyframes progress { to { width: 100%; } }

.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px;
  width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--white);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Rólam ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}
.about-photo { margin: 0; position: relative; isolation: isolate; }
.about-photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about-photo::before {
  content: "";
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
}
.about-photo figcaption {
  margin-top: 2.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-soft);
}
.lead { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.6rem); line-height: 1.5; color: var(--ink); }
.about-text p:not(.lead):not(.eyebrow) { color: var(--ink-soft); }
.specialties {
  list-style: none;
  padding: 0; margin: 2.2rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.specialties li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.35rem;
}
.specialties span {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .15em;
  color: var(--accent);
  margin-right: .9rem;
  vertical-align: middle;
}

/* ---------- Galéria ---------- */
.gallery { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 2rem; }
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.6rem;
  margin-bottom: 3rem;
}
.filter {
  background: none;
  border: 0;
  padding: .4rem 0;
  font: 500 .78rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); border-color: var(--accent); }

.masonry { columns: 3 300px; column-gap: 1.25rem; }
.tile {
  break-inside: avoid;
  margin: 0 0 1.25rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}
.tile.is-hidden { display: none; }
.tile.is-filtering { animation: fadeIn .6s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.tile-btn {
  display: block; width: 100%;
  padding: 0; border: 0; background: none;
  cursor: zoom-in;
}
.tile img {
  width: 100%;
  transition: transform 1.2s var(--ease), filter .6s var(--ease);
}
.tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.2rem 1rem;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--white);
  background: linear-gradient(transparent, rgba(9,20,40,.7));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.tile figcaption span {
  font: 500 .65rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .85;
}
.tile:hover img, .tile:focus-within img { transform: scale(1.06); }
.tile:hover figcaption, .tile:focus-within figcaption { opacity: 1; transform: none; }

/* Érintőképernyőn mindig látszik a felirat */
@media (hover: none) {
  .tile figcaption { opacity: 1; transform: none; font-size: 1.1rem; }
}

/* ---------- Közösségi média ---------- */
.social p { color: var(--ink-soft); }
.social-links {
  list-style: none;
  padding: 0; margin: 2.5rem 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
}
.social-links a {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1.5rem .9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: .85rem; font-weight: 500; letter-spacing: .06em;
  background: var(--white);
  transition: transform .35s var(--ease), border-color .35s, background .35s, color .35s;
}
.social-links svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
}
.social-links svg .fill { fill: currentColor; stroke: none; }
.social-links a:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--accent); color: var(--white); }

/* ---------- Hírlevél ---------- */
.newsletter { background: var(--ink); color: var(--bg); }
.newsletter .eyebrow { color: #ff9f8a; }
.newsletter h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.newsletter-text > p { color: rgba(242,246,251,.72); }
.newsletter-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}
.newsletter-visual { display: grid; place-items: center; perspective: 900px; }
.pdf-mock {
  width: min(280px, 80%);
  aspect-ratio: 1 / 1.414;
  padding: 2rem 1.6rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  background:
    linear-gradient(160deg, rgba(19,35,61,.05), rgba(19,35,61,.55)),
    url("https://images.unsplash.com/photo-1452587925148-ce544e77e70d?auto=format&fit=crop&w=600&q=70") center / cover,
    var(--accent);
  border-radius: var(--radius);
  color: var(--white);
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  transform: rotateY(-14deg) rotateX(4deg);
  animation: float 6s ease-in-out infinite;
}
.pdf-mock strong { font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.05; }
.pdf-mock small { margin-top: .6rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.pdf-tag {
  align-self: flex-start;
  margin-bottom: auto;
  padding: .35rem .7rem;
  background: var(--white); color: var(--ink);
  font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  border-radius: 2px;
}
@keyframes float {
  0%, 100% { transform: rotateY(-14deg) rotateX(4deg) translateY(0); }
  50%      { transform: rotateY(-8deg) rotateX(2deg) translateY(-14px); }
}

.signup-form {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 1.25rem;
}
.signup-form .checkbox, .signup-form .btn { grid-column: 1 / -1; }
.field label {
  display: block;
  margin-bottom: .45rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(242,246,251,.8);
}
.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  padding: .95rem 1rem;
  font: 400 1rem var(--sans);
  color: var(--white);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  transition: border-color .3s, background .3s;
}
.field input::placeholder { color: rgba(255,255,255,.38); }
.field input:focus { outline: none; border-color: #ff9f8a; background: rgba(255,255,255,.1); }
.field.has-error input { border-color: #e2836f; }
.req { color: #ff9f8a; }

.checkbox { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.checkbox input {
  width: 18px; height: 18px; margin: .25rem 0 0;
  accent-color: var(--accent);
}
.checkbox label {
  margin: 0;
  font-size: .85rem; font-weight: 300; letter-spacing: 0; text-transform: none;
  line-height: 1.55;
  color: rgba(242,246,251,.72);
}
.checkbox label a { color: #ff9f8a; }
.checkbox .error { grid-column: 2; }

.error {
  min-height: 1.1em;
  margin: .4rem 0 0;
  font-size: .8rem;
  color: #f0a08f;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.signup-form .btn-dark { background: var(--accent); margin-top: .4rem; padding-block: 1.15rem; }
.signup-form .btn-dark:hover { background: #e0604a; }
.spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Zárás ---------- */
.closing-text {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.5;
}
.signature { margin: 2rem 0 2.5rem; color: var(--ink-soft); }
.signature span {
  display: inline-block;
  margin-top: .3rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--ink);
}

/* ---------- Lábléc ---------- */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--ink-soft);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; }
.footer-inner p { margin: 0; }
.footer-note { max-width: 560px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  background: rgba(7,15,30,.94);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox figure { margin: 0; grid-column: 2; text-align: center; }
.lightbox img {
  max-height: 82vh; max-width: 100%;
  margin: 0 auto;
  border-radius: 2px;
  transform: scale(.96);
  transition: transform .5s var(--ease), opacity .3s;
}
.lightbox.is-open img { transform: none; }
.lightbox figcaption {
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--bg);
}
.lightbox button {
  background: none; border: 0; color: var(--white);
  cursor: pointer; opacity: .7; transition: opacity .25s;
}
.lightbox button:hover { opacity: 1; }
.lb-prev, .lb-next { font-size: 3.5rem; line-height: 1; height: 100%; }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }
.lb-close { position: absolute; top: 1rem; right: 1.2rem; font-size: 2.6rem; line-height: 1; }

/* ---------- Görgetéses megjelenés ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   KÖSZÖNŐ OLDAL
   ========================================================= */
.thanks-page { min-height: 100vh; display: flex; flex-direction: column; }
.thanks-page .site-header { color: var(--ink); }
.thanks {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.thanks-visual {
  position: relative;
  background: url("https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?auto=format&fit=crop&w=1400&q=75") center / cover;
  overflow: hidden;
}
.thanks-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,20,40,0) 50%, rgba(9,20,40,.5));
}
.thanks-content {
  padding: calc(var(--header-h) + 3rem) clamp(1.5rem, 6vw, 6rem) 4rem;
  display: flex; flex-direction: column; justify-content: center;
}
.thanks-content h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.thanks-content p { color: var(--ink-soft); }
.thanks-content .lead { color: var(--ink); }
.check {
  width: 64px; height: 64px;
  margin-bottom: 1.8rem;
}
.check circle {
  fill: none; stroke: var(--accent); stroke-width: 1.5;
  stroke-dasharray: 190; stroke-dashoffset: 190;
  animation: draw 1s var(--ease) .2s forwards;
}
.check path {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: draw .6s var(--ease) 1s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.notice {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem 1.4rem;
  margin: .5rem 0 1.8rem;
  background: var(--bg-alt);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem;
}
.notice p { margin: 0; }
.notice svg { flex: none; width: 22px; height: 22px; margin-top: .2rem; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.thanks .social-links { justify-content: flex-start; margin: 1.2rem 0 2.4rem; }
.thanks .signature { margin: 0 0 2rem; }
.thanks-back { align-self: flex-start; }

/* =========================================================
   RESZPONZÍV
   ========================================================= */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 2rem;
    background: var(--bg);
    color: var(--ink);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .main-nav a { font-size: 1rem; }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { color: var(--ink); }

  .about-grid, .newsletter-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; margin-inline: auto; width: calc(100% - 1.5rem); }
  .newsletter-visual { order: -1; }
  .pdf-mock { width: min(220px, 60%); }

  .thanks { grid-template-columns: 1fr; }
  .thanks-visual { min-height: 32vh; order: -1; }
  .thanks-content { padding-top: 3rem; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .signup-form { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-dots { left: 50%; transform: translateX(-50%); bottom: 5.6rem; }
  .specialties li { font-size: 1.15rem; }
  .masonry { columns: 2 150px; column-gap: .75rem; }
  .tile { margin-bottom: .75rem; }
  .tile figcaption { padding: 1.6rem .7rem .6rem; font-size: 1rem; }
  .tile figcaption span { display: none; }
  .lightbox { grid-template-columns: 40px 1fr 40px; }
  .lb-prev, .lb-next { font-size: 2.6rem; }
  .social-links a { padding: .8rem 1.2rem .8rem 1rem; }
}

/* Mozgáscsökkentés tisztelete */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .hero-anim { opacity: 1; transform: none; }
}

/* =========================================================
   NYELVVÁLTÓ (többnyelvűsítés)
   ========================================================= */
.site-header .logo { margin-right: auto; }
.main-nav { margin-right: 1.4rem; }

.lang-switch { position: relative; z-index: 61; }
.lang-switch summary {
  list-style: none;
  display: flex; align-items: center; gap: .4rem;
  height: 38px; padding: 0 .75rem;
  font: 500 .74rem/1 var(--sans);
  letter-spacing: .14em;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: background .3s, color .3s, border-color .3s;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { background: rgba(255,255,255,.12); }
.site-header.is-scrolled .lang-switch summary:hover,
.nav-open .lang-switch summary:hover { background: var(--bg-alt); }
.lang-globe { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lang-caret { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--ease); }
.lang-switch[open] .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; right: 0; top: calc(100% + .6rem);
  min-width: 210px;
  margin: 0; padding: .4rem;
  list-style: none;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(9, 20, 40, .18);
  animation: langIn .25s var(--ease);
}
@keyframes langIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lang-menu a {
  display: flex; align-items: center; gap: .9rem;
  padding: .6rem .8rem;
  border-radius: 6px;
  font-size: .92rem; font-weight: 400;
  text-decoration: none;
  color: var(--ink);
  transition: background .2s;
}
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--bg-alt); }
.lang-code { width: 1.9rem; font-size: .7rem; font-weight: 600; letter-spacing: .14em; color: var(--ink-soft); }
.lang-menu a[aria-current="page"] { font-weight: 500; }
.lang-menu a[aria-current="page"] .lang-code { color: var(--accent); }
.lang-menu a[aria-current="page"]::after { content: "✓"; margin-left: auto; color: var(--accent); }

@media (max-width: 900px) {
  .lang-switch { margin-right: .5rem; }
  .lang-menu { min-width: 200px; }
  .lang-menu a { padding: .75rem .8rem; font-size: 1rem; }
}

/* =========================================================
   404-ES OLDAL
   ========================================================= */
.error-page {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-content: center; gap: 2.2rem;
  padding: calc(var(--header-h) + 3rem) 1.25rem 4rem;
  text-align: center;
}
.error-code {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  color: var(--accent);
}
.error-block { max-width: 560px; margin: 0 auto; }
.error-block h1, .error-block h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .3rem; }
.error-block p { color: var(--ink-soft); margin-bottom: 1rem; }
.error-block + .error-block { padding-top: 2rem; border-top: 1px solid var(--line); }

/* A menüpontok ne törjenek két sorba. */
.main-nav a { white-space: nowrap; }