:root {
  --bg: #f6f1ea;
  --surface: #ffffff;
  --ink: #1f2a2e;
  --muted: #5f6b70;
  --line: #e4ddd2;
  --brand: #0f5c5a;
  --brand-ink: #ffffff;
  --brand-soft: #e3efed;
  --accent: #c4572d;
  --accent-soft: #fbe9e0;
  --gold: #e3a43a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 42, 46, .06), 0 8px 24px rgba(31, 42, 46, .06);
  --font-head: 'Fraunces', Georgia, serif;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.stack > * + * { margin-top: 12px; }

/* ---------- Fejléc ---------- */
.header { position: sticky; top: 0; z-index: 20; background: rgba(246, 241, 234, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a.active { background: var(--brand-soft); color: var(--brand); }
.menu-btn { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); padding: 4px 8px; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* ---------- Gombok, űrlapok ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 20px; font: 600 1rem var(--font); cursor: pointer; text-decoration: none; background: var(--brand); color: var(--brand-ink); transition: transform .1s, filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.accent { background: var(--accent); }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn.danger { background: #b3261e; }
.btn.block { width: 100%; }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
input, select, textarea { width: 100%; font: 1rem var(--font); padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.check input { width: auto; }

.notice { padding: 12px 16px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.notice.error { background: #fde8e6; color: #9b1c14; }
.notice.warn { background: var(--accent-soft); color: #8a3a1b; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-img { border-radius: 22px; aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow); background: var(--brand-soft); }
.pill { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .8rem; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; letter-spacing: .02em; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-img { aspect-ratio: 16/10; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fact { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.fact b { display: block; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 4px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Ajánlat kártyák ---------- */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.offer { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s; }
.offer:hover { transform: translateY(-3px); }
.offer .img { aspect-ratio: 16/10; background: var(--brand-soft) center/cover no-repeat; position: relative; }
.offer .badge { position: absolute; top: 12px; left: 12px; background: var(--gold); color: #3a2a06; font-weight: 700; font-size: .75rem; padding: 4px 10px; border-radius: 999px; }
.offer .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.offer .meta { color: var(--muted); font-size: .88rem; margin-bottom: 4px; }
.offer h3 { margin-bottom: 8px; }
.offer .price { margin-top: auto; font-weight: 700; font-size: 1.3rem; color: var(--accent); }
.offer .price small { font-size: .8rem; color: var(--muted); font-weight: 500; }

.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.filters input, .filters select { width: auto; flex: 1; min-width: 180px; }

/* ---------- Ajánlat részletek ---------- */
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
.gallery .main { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); background: var(--brand-soft); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs img { width: 84px; height: 60px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .7; flex: none; }
.thumbs img.on { opacity: 1; outline: 2px solid var(--brand); }
.specs { list-style: none; padding: 0; margin: 0 0 16px; }
.specs li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs li span:first-child { color: var(--muted); }
.big-price { font-family: var(--font-head); font-size: 2.2rem; color: var(--accent); font-weight: 700; line-height: 1; }
.locked { background: repeating-linear-gradient(135deg, #f3ece2, #f3ece2 10px, #efe6da 10px, #efe6da 20px); border-radius: 12px; padding: 20px; text-align: center; }
.locked .lock { font-size: 1.8rem; }
.secret { background: var(--brand-soft); border-radius: 12px; padding: 18px; }
.secret .links { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.desc { white-space: pre-line; }

/* ---------- Árak ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; }
.plan.featured { box-shadow: inset 0 0 0 2px var(--brand), var(--shadow); }
.plan .tag { position: absolute; top: -12px; right: 20px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan .amount { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; margin: 6px 0 2px; }
.plan ul { padding-left: 1.1em; margin: 14px 0 22px; flex: 1; }
.plan li { margin-bottom: 6px; }

/* ---------- Lépések, GYIK ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { counter-increment: s; }
.step::before { content: counter(s); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
details { background: var(--surface); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

.band { background: var(--brand); color: #fff; border-radius: 22px; padding: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.band p { color: #d8ebe8; }
.band .btn { background: #fff; color: var(--brand); }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: 28px; } }

/* ---------- Lábléc ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; margin-top: 40px; color: var(--muted); font-size: .9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.footer a { color: var(--muted); }

/* ---------- Admin ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs button { border: 0; background: var(--surface); padding: 10px 16px; border-radius: 10px; font: 600 .95rem var(--font); cursor: pointer; color: var(--ink); }
.tabs button.on { background: var(--brand); color: #fff; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #faf7f2; font-weight: 600; white-space: nowrap; }
.img-list { display: flex; gap: 8px; flex-wrap: wrap; }
.img-list .it { position: relative; }
.img-list img { width: 96px; height: 70px; object-fit: cover; border-radius: 8px; }
.img-list button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #b3261e; color: #fff; cursor: pointer; font-size: .8rem; line-height: 1; }
.link-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px; margin-bottom: 8px; }
@media (max-width: 640px) { .link-row { grid-template-columns: 1fr; } }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--brand-soft); color: var(--brand); }
.status.off { background: #eee; color: #666; }
.status.warn { background: var(--accent-soft); color: var(--accent); }

.skeleton { background: linear-gradient(90deg, #ece5da, #f4efe7, #ece5da); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); min-height: 280px; }
@keyframes sk { to { background-position: -200% 0; } }
