:root {
  --ink: #312d25;
  --muted: #6f6a5d;
  --brand: #789a2f;
  --brand-dark: #58751f;
  --brand-soft: #eef5dc;
  --accent: #d59a31;
  --accent-soft: #fff4df;
  --cream: #faf7ee;
  --paper: #ffffff;
  --sage: #f3f6ea;
  --line: #e5e0d2;
  --shadow: 0 22px 60px rgba(49, 45, 37, .13);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  line-height: 1.72;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 247, 238, .96);
  border-bottom: 1px solid rgba(120, 154, 47, .18);
  box-shadow: 0 10px 36px rgba(49, 45, 37, .06);
  backdrop-filter: blur(14px);
}
.top-nav {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  padding: 8px clamp(18px, 5vw, 70px);
  background: #433d32;
  color: #f8f1df;
  font-size: 12px;
}
.top-nav a { color: #f8f1df; }
.top-contact, .secondary-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.secondary-nav a { opacity: .9; padding: 2px 0; border-bottom: 1px solid transparent; }
.secondary-nav a:hover { opacity: 1; border-color: var(--accent); color: #fff; }
.main-nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 15px clamp(18px, 5vw, 70px);
}
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); }
.brand img { width: 58px; height: 58px; object-fit: contain; border-radius: 8px; background: #fff; }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-size: 17px; font-weight: 800; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.site-nav { display: flex; justify-content: center; align-items: center; gap: 4px; }
.site-nav > a, .nav-parent {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.site-nav > a:hover, .nav-group:hover .nav-parent, .nav-group.open .nav-parent {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.nav-group { position: relative; }
.nav-parent::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 244px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .18s ease;
}
.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.nav-dropdown a:hover { background: var(--sage); color: var(--brand-dark); }
.nav-group:hover .nav-dropdown, .nav-group.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 11px 20px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--paper);
  color: var(--brand-dark);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(120, 154, 47, .09);
}
.button.primary, .header-cta, button.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.button:hover, .header-cta:hover { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(120, 154, 47, .18); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 24px;
}

main { overflow: hidden; }
.hero {
  min-height: min(700px, calc(100vh - 118px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
  padding: clamp(52px, 7vw, 94px) clamp(18px, 6vw, 88px) clamp(58px, 8vw, 110px);
  background:
    linear-gradient(115deg, rgba(255,255,255,.88) 0%, rgba(250,247,238,.78) 45%, rgba(238,245,220,.92) 100%),
    url("/assets/img/current/20-neurofeedback-tatabanya-rolunk.jpg") center / cover;
}
.hero-copy { max-width: 780px; padding: clamp(20px, 3vw, 34px) 0; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-dark);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}
h1, h2, h3 { margin: 0 0 16px; line-height: 1.17; color: var(--ink); }
h1 { max-width: 880px; font-size: clamp(38px, 5.4vw, 68px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 800; }
.lead, .hero p { max-width: 700px; color: var(--muted); font-size: clamp(18px, 1.8vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-media {
  position: relative;
  padding: 12px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }

.section-head, .page-content, .contact-layout, .service-grid, .story-grid, .promise-band, .split-feature, .breadcrumb {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}
.section-head { padding: 76px 0 26px; text-align: center; }
.section-head h2 { max-width: 780px; margin-left: auto; margin-right: auto; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 78px;
}
.service-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(49,45,37,.08);
  transition: .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.service-card div { padding: 20px; }
.service-card p { color: var(--muted); }
.service-card a { display: inline-flex; margin-top: 6px; color: var(--brand-dark); font-weight: 900; }
.promise-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(34px, 5vw, 58px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(49,45,37,.08);
}
.promise-band p { max-width: 760px; color: var(--muted); }
.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 42px;
  padding: 86px 0 24px;
}
.split-feature > div {
  padding: clamp(26px, 5vw, 52px);
  background: var(--sage);
  border: 1px solid rgba(120,154,47,.17);
  border-radius: 8px;
}
.split-feature img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); }

.breadcrumb { padding-top: 28px; color: var(--muted); font-size: 14px; }
.breadcrumb a { font-weight: 800; }
.breadcrumb span { margin-right: 8px; }
.page-content { padding: 72px 0; font-size: 18px; }
.content-block { max-width: 960px; margin: 0 auto 42px; }
.content-block p, .content-block li { color: var(--muted); }
.content-block h2 + p { margin-top: 8px; }
.two-col { max-width: 1160px; display: grid; grid-template-columns: 1.24fr .76fr; gap: 30px; align-items: start; }
.highlight-panel, .contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(49,45,37,.06);
}
.note { padding: 20px 22px; border-left: 5px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.link-list { padding-left: 20px; }
.gallery-strip { max-width: 1160px; margin: 34px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-strip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; box-shadow: 0 12px 30px rgba(49,45,37,.09); }

.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 78px; }
.story-grid article, .price-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(49,45,37,.07);
}
.story-grid p { color: var(--muted); font-style: italic; }
.story-grid.compact { padding-top: 0; }
.news-list, .price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.news-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 260px;
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(49,45,37,.07);
  transition: .18s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  color: var(--ink);
  box-shadow: var(--shadow);
  border-color: rgba(120,154,47,.34);
}
.news-card span { color: var(--accent); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.news-card p { color: var(--muted); }
.news-card strong { margin-top: 12px; color: var(--brand-dark); }
.article-body { max-width: 860px; padding: 10px 0; }
.article-body p { font-size: 19px; }
.article-back { text-align: center; margin-top: 42px; }
.price { color: var(--brand-dark); font-size: 30px; font-weight: 900; }
.feature-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.feature-row span { background: var(--sage); border: 1px solid rgba(120,154,47,.22); border-radius: 999px; padding: 9px 15px; font-weight: 800; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 30px; padding: 0 0 78px; }
.contact-form {
  display: grid;
  gap: 15px;
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(49,45,37,.07);
}
.contact-form label { display: grid; gap: 6px; font-weight: 800; }
.contact-form input, .contact-form textarea, .admin-form input, .admin-form textarea, .admin-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus, .admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
  outline: 3px solid rgba(120,154,47,.18);
  border-color: var(--brand);
}
.check { grid-template-columns: 20px 1fr !important; align-items: start; font-weight: 400 !important; color: var(--muted); }
.check input { width: auto; margin-top: 6px; }
.flash {
  width: min(1160px, calc(100% - 36px));
  margin: 24px auto 0;
  padding: 14px 18px;
  border-radius: 8px;
  background: #edf8de;
  color: #3d5f16;
  border: 1px solid rgba(120,154,47,.2);
}
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  padding: 42px clamp(18px, 5vw, 70px);
  background: #433d32;
  color: #f8f1df;
}
.site-footer a, .footer-link { color: #f8f1df; }
.site-footer nav { display: grid; gap: 8px; }
.footer-link { border: 0; padding: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
button { cursor: pointer; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); padding: 10px 14px; font-weight: 800; }
.cookie-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(49,45,37,.46); }
[hidden] { display: none !important; }
.cookie-card { width: min(520px, 100%); background: var(--paper); border-radius: 8px; padding: 28px; position: relative; }
.modal-close { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; padding: 0; font-size: 22px; }
.switch-row { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }

.admin-shell { min-height: 100vh; background: var(--cream); }
.admin-main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0; }
.admin-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 24px; margin-bottom: 18px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--paper); }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-form { display: grid; gap: 14px; }
.editor-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.rich-editor { min-height: 320px; border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: var(--paper); }

@media (max-width: 1120px) {
  .main-nav-row { grid-template-columns: auto auto; }
  .nav-toggle { display: inline-grid; place-items: center; justify-self: end; }
  .site-nav { display: none; grid-column: 1 / -1; justify-content: start; flex-wrap: wrap; padding-top: 10px; }
  .site-nav.open { display: flex; }
  .nav-dropdown {
    position: static;
    display: none;
    min-width: 100%;
    margin-top: 6px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }
  .nav-group.open .nav-dropdown { display: block; }
  .header-cta { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .split-feature, .two-col, .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .top-nav { display: none; }
  .main-nav-row { padding: 12px 18px; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: 15px; }
  .hero { min-height: auto; padding-top: 34px; }
  h1 { font-size: 37px; }
  .hero-media { padding: 8px; }
  .service-grid, .story-grid, .news-list, .price-grid, .gallery-strip { grid-template-columns: 1fr; }
  .promise-band, .cookie-banner, .site-footer { display: grid; grid-template-columns: 1fr; }
  .page-content { padding-top: 50px; }
}
