@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Sora:wght@400;500;600;700&family=Great+Vibes&display=swap");

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

:root {
  --black: #000;
  --ink: #050506;
  --graphite: #121214;
  --red: #ff1e32;
  --red-hot: #ff3a4a;
  --red-glow: rgba(255, 30, 50, 0.38);
  --red-soft: #ff6b74;
  --gold: #c9a227;
  --text: #f5f5f7;
  --dim: #9a9aa6;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(16, 16, 20, 0.52);
  --glass-border: rgba(255, 255, 255, 0.11);
  --green: #34d399;
  --yellow: #fbbf24;
  --danger: #f87171;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --page-max: 1160px;
  --page-gutter: clamp(1.15rem, 2.6vw, 1.5rem);
  --page-inset: max(var(--page-gutter), calc((100% - var(--page-max)) / 2));
  --w: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  --space-section: clamp(3.5rem, 7vh, 5.5rem);
  --header-h: 4.25rem;
}

html { scroll-behavior: smooth; }
html, body {
  margin: 0; min-height: 100%;
  background: var(--ink); color: var(--text);
  font-family: "Sora", "Segoe UI", sans-serif;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}
body {
  background:
    radial-gradient(ellipse 70% 35% at 80% 0%, rgba(255, 30, 50, 0.1), transparent 55%),
    #050506;
}
.dim { color: var(--dim); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.55; }
}
@keyframes tip-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ambient {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}
@keyframes intro-glow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.04); }
}
@keyframes intro-scan {
  0% { transform: translateY(-120%); opacity: 0; }
  12% { opacity: 0.35; }
  100% { transform: translateY(120%); opacity: 0; }
}
@keyframes intro-log-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes intro-crown {
  from { opacity: 0; transform: translateY(10px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* —— Loader / cinematic boot —— */
.hub-loader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: #000;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.7s;
}
.hub-loader.is-done {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.hub-loader-ambient {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 50% 18%, rgba(255, 30, 50, 0.28), transparent 58%),
    radial-gradient(ellipse 40% 30% at 50% 70%, rgba(255, 30, 50, 0.06), transparent 60%);
  animation: intro-glow 5.5s ease-in-out infinite;
}
.hub-loader-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.14;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 55% 50% at 50% 42%, #000 20%, transparent 75%);
}
.hub-loader-scan {
  position: absolute; left: 0; right: 0; height: 28%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 30, 50, 0.07), transparent);
  animation: intro-scan 3.2s ease-in-out infinite;
  opacity: 0.5;
}
.hub-loader-inner {
  position: relative; z-index: 1;
  width: min(320px, calc(100% - 2.5rem));
  text-align: center;
  animation: intro-crown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hub-loader-crown {
  margin-bottom: 14px;
  filter: drop-shadow(0 0 18px rgba(255, 30, 50, 0.55));
}
.hub-loader-title {
  margin: 0 0 1.15rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; letter-spacing: 0.22em; font-size: 0.92rem;
  color: #fff;
}
.hub-loader-status {
  margin: 0 0 1.1rem;
  min-height: 1.35em;
  color: #c8c8d0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.01em;
  transition: opacity 0.28s ease;
}
.hub-loader-status.is-swap { opacity: 0; transform: translateY(4px); }
.hub-loader-bar {
  width: 100%; height: 2px; margin: 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: 0 0 18px rgba(255, 30, 50, 0.12);
}
.hub-loader-fill {
  height: 100%; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff3a4a, var(--red), #ff6b74);
  box-shadow: 0 0 14px rgba(255, 30, 50, 0.65);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.hub-loader-log {
  list-style: none; margin: 1.35rem 0 0; padding: 0;
  text-align: left;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.68rem; line-height: 1.55;
  color: rgba(160, 160, 172, 0.85);
  letter-spacing: 0.02em;
  max-height: 5.2em; overflow: hidden;
}
.hub-loader-log li {
  opacity: 0.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: intro-log-in 0.4s ease both;
}
.hub-loader-log li.is-current {
  opacity: 1; color: #e8e8ee;
}
.hub-loader-log li.is-done::before {
  content: "✓ ";
  color: var(--red);
}
.hub-loader-log li.is-current:not(.is-done)::before {
  content: "› ";
  color: var(--red);
}
.hub-loader.is-ready .hub-loader-status { color: #fff; }
.hub-loader.is-ready .hub-loader-fill {
  box-shadow: 0 0 20px rgba(255, 30, 50, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .hub-loader-ambient,
  .hub-loader-scan,
  .hub-loader-inner { animation: none !important; }
}

.site[hidden], .foot[hidden] { display: none !important; }
.site {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 4rem;
  overflow-x: clip;
}

/* —— Header —— */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.1rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.95rem var(--page-inset);
  position: sticky; top: 0; z-index: 80;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid transparent;
  overflow: visible;
  transition: background 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.top.is-scrolled {
  background: rgba(0, 0, 0, 0.88);
  border-bottom-color: rgba(255, 30, 50, 0.28);
  box-shadow: 0 1px 0 rgba(255, 30, 50, 0.2), 0 14px 40px rgba(0,0,0,0.4);
}
.logo {
  display: flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em;
  flex: 0 0 auto;
  line-height: 1;
}
.logo img { filter: drop-shadow(0 0 8px var(--red-glow)); display: block; }
.logo em { font-style: normal; color: var(--red); }

.menu {
  display: flex; flex-wrap: nowrap; align-items: center;
  gap: 0 0.95rem; justify-content: center;
  flex: 1 1 auto; min-width: 0;
}
.menu a {
  position: relative;
  text-decoration: none; color: var(--dim);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0 0.5rem;
  border-bottom: none;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s;
}
.menu a:hover { color: #fff; }
.menu a.is-active { color: #fff; }
.menu a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  /* letter-spacing adds trailing space after the last glyph — pull underline flush */
  right: 0.1em;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--red);
}

.top-right {
  display: flex; align-items: center; gap: 0.55rem;
  flex: 0 0 auto;
}
.lang {
  font-size: 0.72rem; font-weight: 600; color: var(--dim);
  line-height: 1; white-space: nowrap;
}
.live-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.65rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.42);
  font-size: 0.66rem; font-weight: 600; color: var(--dim);
  letter-spacing: 0.02em; line-height: 1;
  max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 10px var(--yellow); flex: 0 0 auto;
}
.dot.checking { animation: pulse-dot 1.15s ease-in-out infinite; }
.dot.ok { background: var(--green); box-shadow: 0 0 10px var(--green); animation: none; }
.dot.bad { background: var(--danger); box-shadow: 0 0 10px var(--danger); animation: none; }

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.82rem 1.45rem; border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; text-decoration: none; border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s, background 0.28s, color 0.28s, border-color 0.28s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-red {
  color: #fff; background: linear-gradient(165deg, #ff3a4a 0%, var(--red) 55%, #e01828 100%);
  box-shadow: 0 0 22px rgba(255, 30, 50, 0.28), 0 8px 20px rgba(255, 30, 50, 0.14);
}
.btn-red:hover {
  background: linear-gradient(165deg, #ff4d5a 0%, var(--red-hot) 60%, #ff1e32 100%);
  box-shadow: 0 0 28px rgba(255, 30, 50, 0.36), 0 10px 24px rgba(255, 30, 50, 0.18);
}
.btn-ghost {
  color: #fff; background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.32);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
}
.btn-hub {
  padding: 0.62rem 1rem;
  font-size: 0.68rem;
}
.top .btn-red {
  padding: 0.62rem 1.15rem;
  font-size: 0.68rem;
  box-shadow: 0 0 18px rgba(255, 30, 50, 0.3);
}
.link-red { color: var(--red-soft); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.link-red:hover { color: #fff; }

/* —— Hero —— */
.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  align-items: center;
  padding:
    clamp(2.5rem, 6vh, 4rem)
    var(--page-inset)
    clamp(2.75rem, 7vh, 4.5rem);
  overflow: hidden;
  box-sizing: border-box;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  will-change: transform;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 42% 45%;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
  /* Slightly darker for text over bright sunset sky */
  filter: brightness(0.72) contrast(1.1) saturate(1.05);
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent 38%, black 72%);
  opacity: 0.22;
}
.hero-bloom {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 48% 52% at 72% 40%, rgba(255, 30, 50, 0.32), transparent 60%),
    radial-gradient(ellipse 30% 34% at 62% 70%, rgba(255, 40, 55, 0.10), transparent 55%);
  animation: ambient 12s ease-in-out infinite;
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(108deg, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.55) 34%, rgba(0,0,0,0.18) 58%, rgba(0,0,0,0.52) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.38) 0%, transparent 30%, rgba(0,0,0,0.82) 100%);
}
.hero-crown-mark {
  position: absolute; right: max(4%, 1.5rem); top: 28%;
  width: min(18vw, 160px); height: min(18vw, 160px);
  background: url("assets/img/crown.svg") center / contain no-repeat;
  opacity: 0.06; filter: brightness(2);
  pointer-events: none;
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
}
.hero-copy { min-width: 0; }
.hero-kicker {
  margin: 0 0 0.85rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase; color: rgba(255,255,255,0.92);
}
.hero-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.7rem, 7.5vw, 5.2rem);
  letter-spacing: -0.038em; line-height: 0.92;
}
.hero-title span {
  color: var(--red);
  text-shadow: 0 0 42px var(--red-glow), 0 0 80px rgba(255, 30, 50, 0.18);
}
.hero-title span::after {
  content: "";
  display: block;
  width: 3.2rem; height: 2px; margin-top: 0.55rem;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.7;
}
.hero-title sup {
  font-size: 0.3em; vertical-align: super; color: var(--dim); font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-motto {
  margin: 1.15rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: #ebebf0;
}
.hero-text {
  margin: 1.05rem 0 0; max-width: 27rem;
  color: #b8b8c4; font-size: 0.98rem; line-height: 1.65; font-weight: 400;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero-aside {
  display: flex; flex-direction: column; align-items: flex-end; gap: 1.5rem;
  padding-bottom: 0.35rem;
  min-width: 0;
  justify-self: end;
}
.aside-stack {
  margin: 0; text-align: right;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.24em; line-height: 1.55; color: #fff;
}
.aside-script {
  margin: 0; text-align: right;
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.3; color: #f2f2f6;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}

/* —— Peha Path —— */
.path-section {
  position: relative;
  width: var(--w);
  margin: -0.5rem auto 0;
  padding: 1.75rem 0 0.75rem;
  box-sizing: border-box;
}
.path-wrap { position: relative; min-height: 0; }
.peha-path-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: 0.9;
}
.peha-path-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.peha-path-line.is-drawn { stroke-dashoffset: 0; }

.path-checkpoints {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  padding: 1.25rem 0 1.35rem;
  align-items: start;
}

.glass-card, .service-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 20px 48px rgba(0,0,0,0.42);
}

.service-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.4rem 1.25rem 1.3rem;
  text-decoration: none; color: inherit;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  opacity: 0; transform: translateY(24px);
}
.service-card.is-in {
  opacity: 1; transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 0.09s);
}
.service-card::before {
  content: "";
  position: absolute; left: 14px; right: 14px; top: 0; height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: 0 0 12px var(--red-glow);
  opacity: 0.9;
}
.service-card::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.path-card:nth-child(1) { margin-top: 0.4rem; }
.path-card:nth-child(2) { margin-top: 2.6rem; }
.path-card:nth-child(3) { margin-top: 0.85rem; }
.path-card:nth-child(4) { margin-top: 2.1rem; }

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 30, 50, 0.42);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 24px 56px rgba(0,0,0,0.48),
    0 0 28px rgba(255, 30, 50, 0.16);
}
.pc-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 0.72rem;
  color: var(--red); letter-spacing: 0.12em;
  text-shadow: 0 0 10px var(--red-glow);
}
.pc-icon {
  margin: 0.7rem 0 0.5rem; font-size: 1.28rem;
  color: var(--gold);
  filter: drop-shadow(0 0 5px rgba(201, 162, 39, 0.3));
}
.service-card h3 {
  margin: 0 0 0.45rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem; font-weight: 700; letter-spacing: 0.015em;
}
.service-card p {
  margin: 0; flex: 1; color: var(--dim); font-size: 0.81rem; line-height: 1.5;
  padding-right: 1.6rem;
}
.pc-go {
  position: absolute; right: 0.95rem; bottom: 0.95rem;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(165deg, #ff3a4a, var(--red));
  color: #fff; font-size: 0.9rem; font-weight: 700;
  box-shadow: 0 0 14px var(--red-glow);
  transition: transform 0.28s var(--ease-out);
}
.service-card:hover .pc-go { transform: scale(1.1) translateX(1px); }
.heart-hidden { display: none !important; }

/* —— Sections —— */
.section-live, .section-eco, .section-services, .section-news, .section-contact {
  width: var(--w);
  margin: var(--space-section) auto 0;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
  box-sizing: border-box;
}
.sec-head { max-width: 38rem; margin-bottom: 1.75rem; }
.sec-head-sub { margin-top: 2.6rem; margin-bottom: 1.1rem; }
.sec-kicker {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--red-soft);
}
.sec-head h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  letter-spacing: -0.032em; line-height: 1.12;
}
.sec-head h2 span { color: var(--red); }
.sec-head h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 1.12rem;
}
.sec-lede { margin: 0.6rem 0 0; color: var(--dim); font-size: 0.93rem; line-height: 1.55; }

/* Live timeline */
.live-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem; margin-bottom: 1.35rem;
}
.live-chip {
  padding: 0.9rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(14px);
  display: grid; gap: 0.28rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.live-chip:hover {
  border-color: rgba(255, 30, 50, 0.28);
  box-shadow: 0 0 20px rgba(255, 30, 50, 0.08);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px rgba(52, 211, 153, 0.55);
}
.live-dot.is-red { background: var(--red); box-shadow: 0 0 8px var(--red-glow); }
.live-dot[data-tone="quiet"] { background: #666; box-shadow: none; }
.live-dot[data-tone="warn"] { background: var(--yellow); box-shadow: 0 0 8px rgba(251,191,36,0.5); }
.live-dot[data-tone="good"] { background: var(--green); }
.live-label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--dim);
}
.live-chip strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem; font-weight: 700;
}

.ma-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1rem; }
.ma-card { padding: 1.5rem 1.4rem; }
.weather-row { display: flex; align-items: center; gap: 1rem; }
.weather-icon { font-size: 2.6rem; line-height: 1; }
.weather-temp {
  margin: 0; font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 2.3rem; letter-spacing: -0.04em; line-height: 1;
}
.weather-text { margin: 0.25rem 0 0; font-weight: 500; color: #ddd; }
.weather-loc { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--dim); }
.weather-days {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; margin-top: 1.1rem;
}
.wx-day {
  text-align: center; padding: 0.6rem 0.3rem; border-radius: 12px;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.05);
}
.wx-day strong { display: block; font-size: 0.65rem; color: var(--red-soft); margin-bottom: 0.2rem; }
.wx-day span { display: block; font-size: 0.72rem; color: var(--dim); }
.wx-day em { display: block; margin-top: 0.25rem; font-style: normal; font-size: 0.72rem; font-weight: 700; }
.ai-kicker {
  margin: 0 0 0.6rem; font-family: "Space Grotesk", sans-serif;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red-soft);
}
.ai-greeting {
  margin: 0 0 0.65rem; font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 1.1rem;
}
.ai-tip {
  margin: 0; min-height: 4.2rem; color: var(--dim); font-size: 0.95rem; line-height: 1.55;
  animation: tip-fade 0.45s var(--ease) both;
}
.ai-tip.is-swap { animation: tip-fade 0.45s var(--ease) both; }
.ai-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1rem; gap: 1rem;
}
.ai-dots { display: flex; gap: 0.35rem; }
.ai-dots button {
  width: 6px; height: 6px; border: 0; border-radius: 50%;
  padding: 0; background: rgba(255,255,255,0.2); cursor: pointer;
}
.ai-dots button.is-on { background: var(--red); box-shadow: 0 0 8px var(--red-glow); }
.mode-line { margin: 0.9rem 0 0; font-size: 0.78rem; color: var(--dim); }

/* Ecosystem */
.eco-stack {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
  padding: 1.5rem 0 0.5rem;
}
.eco-line {
  position: absolute; left: 4%; right: 4%; top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: 0 0 16px var(--red-glow);
  opacity: 0.7;
}
.eco-node {
  position: relative; z-index: 1;
  flex: 1 1 140px;
  padding: 1.1rem 1rem;
  text-align: center; text-decoration: none; color: inherit;
  border-radius: 16px; border: 1px solid var(--glass-border);
  background: var(--glass); backdrop-filter: blur(14px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.eco-node:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 30, 50, 0.4);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35), 0 0 22px rgba(255, 30, 50, 0.12);
}
.eco-node em {
  display: block; font-style: normal; font-size: 0.7rem;
  font-weight: 700; color: var(--red); letter-spacing: 0.08em;
}
.eco-node strong {
  display: block; margin-top: 0.35rem;
  font-family: "Space Grotesk", sans-serif; font-size: 0.95rem;
}
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-top: 1.75rem;
}
.stats-row strong {
  display: block; font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.stats-row em {
  display: block; margin-top: 0.25rem; font-style: normal;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--red-soft);
}

/* Cinematic */
.cinematic {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 4.5rem 0 0;
  min-height: min(58vh, 480px);
  display: grid; align-items: end;
  overflow: hidden;
  box-sizing: border-box;
}
.cinematic-bg { position: absolute; inset: 0; overflow: hidden; }
.cinematic-bg img {
  width: 106%; height: 108%;
  margin: -3% -3% 0;
  max-width: none;
  object-fit: cover; object-position: center;
  filter: brightness(0.65) contrast(1.1);
}
.cinematic-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 30% 70%, rgba(255, 30, 50, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.82));
}
.cinematic-copy {
  position: relative; z-index: 1;
  width: var(--w); margin: 0 auto; padding: 3rem 0 3.5rem;
  box-sizing: border-box;
}
.cinematic-copy h2 {
  margin: 0.4rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em; line-height: 1.05;
}
.cinematic-copy h2 span { color: var(--red); }

/* Service tiles from JS */
.tile-grid, .grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem;
  align-items: stretch;
}
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  height: 100%;
  text-decoration: none; color: inherit;
  padding: 1.2rem 1.15rem; border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: var(--glass); backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  animation: rise 0.5s var(--ease) both;
}
.tile.featured {
  border-color: rgba(255, 30, 50, 0.28);
  box-shadow: 0 0 24px rgba(255, 30, 50, 0.08);
}
.tile.soon-tile { opacity: 0.55; cursor: default; }
.tile:hover:not(.soon-tile) {
  transform: translateY(-5px);
  border-color: rgba(255, 30, 50, 0.4);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35), 0 0 26px rgba(255, 30, 50, 0.12);
}
.tile-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.85rem;
}
.icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; font-size: 1rem;
  background: rgba(255, 30, 50, 0.12);
  border: 1px solid rgba(255, 30, 50, 0.3);
  color: var(--gold);
}
.tag {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--red-soft);
  padding: 0.2rem 0.45rem; border-radius: 999px;
  border: 1px solid rgba(255,30,50,0.25);
}
.tag.local { color: #9bb6ff; border-color: rgba(120,160,255,0.3); }
.tile h3 {
  margin: 0 0 0.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem; font-weight: 700;
}
.tile p { margin: 0; flex: 1 1 auto; color: var(--dim); font-size: 0.85rem; line-height: 1.4; }
.statusbox { margin-top: 0.75rem; }
.tile .statusbox { margin-top: auto; padding-top: 0.75rem; }
.statusline {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 600; color: var(--dim);
}
.small-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.statusline.checking .small-dot { animation: pulse-dot 1.1s ease-in-out infinite; }
.statusline.online .small-dot { background: var(--green); animation: none; }
.statusline.offline .small-dot { background: var(--danger); animation: none; }
.statusline.local-blocked .small-dot,
.statusline.soon .small-dot { background: #777; animation: none; }
.tile-footer {
  margin-top: 0.55rem; padding-top: 0.7rem; border-top: 1px solid var(--line);
  flex: 0 0 auto;
}
.open-badge {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem; font-weight: 700; color: var(--red-soft);
}

/* News */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
.news-card {
  padding: 0; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.07); background: rgba(16, 16, 20, 0.42);
  backdrop-filter: blur(14px); animation: rise 0.5s var(--ease) both;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  display: flex; flex-direction: column; height: 100%;
  overflow: hidden;
}
.news-card:hover {
  transform: translateY(-3px); border-color: rgba(255, 30, 50, 0.32);
  background: rgba(18, 18, 24, 0.55);
}
.news-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.65rem; margin-bottom: 0.75rem; min-height: 1.35rem;
}
.news-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
  min-width: 0;
}
.news-card-top time {
  flex: 0 0 auto; font-size: 0.7rem; color: var(--dim); white-space: nowrap;
  padding-top: 0.1rem;
}
.news-tag {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red-soft);
  padding: 0.18rem 0.48rem; border-radius: 6px;
  border: 1px solid rgba(255,30,50,0.28);
  background: rgba(255,30,50,0.08);
}
.news-card h3 {
  margin: 0 0 0.4rem; font-family: "Space Grotesk", sans-serif;
  font-size: 1rem; font-weight: 700;
}
.news-body-wrap { margin: 0; }
.news-card .news-body {
  margin: 0; color: var(--dim); font-size: 0.85rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card.is-body-open .news-body {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.news-more {
  display: inline-flex;
  align-items: center;
  margin-top: 0.55rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red-soft, #ff6b76);
  text-decoration: none;
}
.news-more:hover { color: #ff8a90; text-decoration: underline; }
.news-more[hidden] { display: none !important; }
.news-ver { margin-top: 0.65rem; font-size: 0.7rem; font-weight: 700; color: var(--red-soft); }
.news-actions { display: flex; justify-content: center; margin-top: 1.25rem; }
.news-empty { text-align: center; margin: 0.5rem 0 0; }

/* Contact */
.contact-form {
  max-width: 640px; padding: 1.6rem 1.5rem; display: grid; gap: 1.05rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: grid; gap: 0.35rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: #ccc; }
.input, .select, .textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(0,0,0,0.48);
  color: var(--text); font: inherit; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none; appearance: none;
}
.select {
  border-radius: 12px;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%),
    linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(255, 30, 50, 0.48);
  box-shadow: 0 0 0 3px rgba(255, 30, 50, 0.1);
}
.textarea { min-height: 120px; resize: vertical; border-radius: 12px; }
.consent {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.85rem; color: var(--dim);
}
.consent a { color: var(--red-soft); }
.inq-actions { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.status { font-size: 0.88rem; color: var(--dim); }
.status.ok { color: var(--green); }
.status.err { color: var(--danger); }

/* Inner pages */
.page-hero {
  position: relative; z-index: 2;
  width: var(--w); margin: 0 auto;
  padding: 7.5rem 0 2.2rem;
  box-sizing: border-box;
}
.page-hero-inner { max-width: 42rem; }
.page-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700; line-height: 1.1; margin: 0.35rem 0 0.85rem;
  letter-spacing: -0.02em;
}
.page-title span { color: var(--red); }
.page-prose {
  position: relative; z-index: 2;
  width: var(--w); margin: 0 auto 3.5rem;
  max-width: 40rem; padding: 0 0 1rem;
}
.page-prose h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.4rem 0 1rem;
}
.page-prose h2 span { color: var(--red); }
.page-prose p { color: var(--dim); line-height: 1.65; margin: 0 0 1.4rem; }
.home-more {
  display: flex; justify-content: center;
  margin: 0.35rem 0 0.75rem; position: relative; z-index: 3;
}
.path-section--home { padding-bottom: 0.35rem; }
.section-eco--teaser {
  margin-top: clamp(1.75rem, 3.5vh, 2.75rem);
  padding-top: 1.75rem;
}
.section-eco--teaser .sec-head { margin-bottom: 1.2rem; }
.section-eco--teaser .link-red { display: inline-block; margin-top: 0.75rem; }
.section-live--compact { padding-top: 1.5rem; padding-bottom: 2rem; }
.ma-grid--compact { margin-top: 1rem; }
.section-cta {
  position: relative; z-index: 2;
  width: var(--w); margin: 0 auto 3.5rem;
  text-align: center; padding: 2.5rem 0 1rem;
}
.section-cta .sec-head { margin-left: auto; margin-right: auto; }

/* Kapcsolat — aligned two-column shell */
.page-kapcsolat {
  --contact-pad-y: 1.85rem;
  --contact-pad-x: 1.85rem;
  --contact-gap: 1rem;
  --contact-field-gap: 0.95rem;
  background:
    radial-gradient(ellipse 50% 36% at 20% 22%, rgba(255, 30, 50, 0.08), transparent 58%),
    radial-gradient(ellipse 40% 30% at 86% 78%, rgba(255, 30, 50, 0.045), transparent 55%),
    #050506;
}
.page-kapcsolat .foot { margin-top: 0.5rem; margin-bottom: 1.5rem; }

.contact-stage {
  position: relative; z-index: 2;
  width: var(--w);
  margin: 0 auto;
  padding: 6.1rem 0 1.75rem;
  box-sizing: border-box;
}
.contact-stage-glow {
  position: absolute;
  inset: 5.2rem -4% auto;
  height: min(72%, 520px);
  border-radius: 32px;
  background:
    radial-gradient(ellipse 65% 55% at 30% 40%, rgba(255, 30, 50, 0.12), transparent 62%),
    radial-gradient(ellipse 45% 40% at 78% 60%, rgba(255, 30, 50, 0.06), transparent 58%);
  pointer-events: none;
}

.contact-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(14, 14, 18, 0.94);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 56px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.contact-aside {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1.35rem;
  align-content: start;
  padding: var(--contact-pad-y) var(--contact-pad-x);
  background: linear-gradient(165deg, rgba(255, 30, 50, 0.045), transparent 55%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}
.contact-aside-copy { min-width: 0; }
.contact-title {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  margin: 0.35rem 0 0.65rem;
  line-height: 1.12;
}
.contact-lede {
  margin: 0;
  max-width: 32rem;
  line-height: 1.55;
  font-size: 0.92rem;
}

.contact-cues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.contact-cue {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}
.contact-cue-mark {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  color: var(--red-soft);
  background: rgba(255, 30, 50, 0.1);
  border: 1px solid rgba(255, 30, 50, 0.26);
}
.contact-cue-mark svg { display: block; }
.contact-cue-body {
  display: grid; gap: 0.15rem; min-width: 0;
}
.contact-cue-body strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: #fff;
}
.contact-cue-body span {
  color: var(--dim); font-size: 0.84rem; line-height: 1.4;
}
.contact-cue-body a {
  color: var(--red-soft); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 116, 0.35);
}
.contact-cue-body a:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.4); }

.contact-form--stage {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: var(--contact-pad-y) var(--contact-pad-x);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.1rem;
  align-content: start;
  background: rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}
.contact-form-kicker { margin: 0; }
.contact-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--contact-field-gap);
  align-content: start;
  min-width: 0;
}
.contact-span-2 { grid-column: 1 / -1; }
.contact-form--stage .form-group {
  display: grid;
  gap: 0.38rem;
  min-width: 0;
}
.contact-form--stage .form-group label {
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: #b8b8c0;
}
.contact-form--stage .input,
.contact-form--stage .select,
.contact-form--stage .textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(6, 6, 10, 0.75);
  padding: 0.85rem 0.95rem;
  color: #e8e8ec;
}
.contact-form--stage .input::placeholder,
.contact-form--stage .textarea::placeholder {
  color: #6f6f7a;
}
.contact-form--stage .textarea { min-height: 118px; resize: vertical; }

.contact-actions {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  min-width: 0;
}
.contact-form--stage .consent {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
.contact-submit {
  width: 100%;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(255, 30, 50, 0.18);
}
.contact-submit:hover {
  box-shadow: 0 6px 18px rgba(255, 30, 50, 0.26);
}
.contact-actions .status { min-height: 1.2em; }

/* Legacy contact hooks */
.contact-hero { position: relative; z-index: 2; width: var(--w); margin: 0 auto 3rem; padding: 6.5rem 0 2rem; box-sizing: border-box; }
.contact-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.65rem; }
.contact-form--panel { padding: 1.45rem 1.35rem 1.55rem; }

@media (max-width: 960px) {
  .page-kapcsolat {
    --contact-pad-y: 1.5rem;
    --contact-pad-x: 1.4rem;
  }
  .contact-shell { grid-template-columns: 1fr; }
  .contact-aside {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .contact-stage { padding-top: 5.5rem; }
}
@media (max-width: 560px) {
  .page-kapcsolat {
    --contact-pad-y: 1.25rem;
    --contact-pad-x: 1.15rem;
  }
  .contact-fields { grid-template-columns: 1fr; }
  .contact-span-2 { grid-column: auto; }
  .contact-cue { grid-template-columns: 36px minmax(0, 1fr); column-gap: 0.65rem; padding: 0.7rem 0.75rem; }
  .contact-cue-mark { width: 36px; height: 36px; border-radius: 10px; }
}

/* Rólunk / csapat */
.section-mission, .section-team, .section-offerings, .section-home-news,
.section-rolunk-cta {
  position: relative; z-index: 2;
  width: var(--w); margin: 0 auto 2.75rem;
  box-sizing: border-box;
  min-height: 0;
}
.page-rolunk .page-hero { padding-bottom: 1.5rem; }
.page-rolunk .page-hero-inner { max-width: none; width: 100%; }
.page-rolunk .section-mission { margin-bottom: 2.25rem; }
.section-team .sec-head {
  margin-bottom: 1.25rem;
  max-width: none;
  width: 100%;
}
.section-team .team-grid:empty { min-height: 0; }
.section-offerings { margin-top: 0.5rem; }
.section-rolunk-cta {
  margin-top: 0.5rem;
  margin-bottom: 3rem;
  padding-top: 0.25rem;
}
.section-rolunk-cta .hero-cta {
  margin-top: 0;
  justify-content: flex-start;
}
.mission-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}
.mission-card { padding: 1.35rem 1.3rem; }
.mission-card h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem; margin: 0.35rem 0 0.7rem;
}
.mission-card p { color: var(--dim); margin: 0; line-height: 1.55; }
.team-grid {
  display: grid;
  gap: 1.15rem;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  /* Desktop: 4 equal columns in one row (typical 1400/1920 + --page-max ~1160) */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  justify-items: stretch;
}
/* Kevesebb tag: középre húzott rács, egyenlő kártyaszélesség */
.team-grid:has(.team-card:only-child) {
  max-width: 320px;
  grid-template-columns: 1fr;
}
.team-grid:has(.team-card:nth-child(2):last-child) {
  max-width: 640px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.team-grid:has(.team-card:nth-child(3):last-child) {
  max-width: 900px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.team-card {
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  text-align: center;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), border-color 0.2s ease;
  transition-delay: calc(var(--i, 0) * 0.07s);
}
.team-card:hover { border-color: rgba(255, 30, 50, 0.35); }
.team-photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 220px;
  margin: 1.1rem auto 0;
  border-radius: 16px;
  overflow: hidden;
  background: #12151c;
  flex-shrink: 0;
}
.team-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.team-meta {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  align-items: center;
  text-align: center;
  min-height: 0;
}
.team-role {
  margin: 0 0 0.25rem;
  color: var(--red-soft);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.team-meta h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0 0 0.45rem; font-size: 1.1rem;
}
.team-bio {
  margin: 0;
  color: var(--dim);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1 1 auto;
  max-width: 28ch;
}
.team-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.team-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.team-contact:hover {
  border-color: rgba(255, 30, 50, 0.45);
  background: rgba(229, 9, 20, 0.08);
}
.team-contact-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-soft);
}
.team-contact-val {
  font-size: 0.88rem;
  color: var(--fg, #f0f0f4);
}
body.team-msg-open { overflow: hidden; }
.team-msg-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.team-msg-modal[hidden] { display: none !important; }
.team-msg-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(6px);
}
.team-msg-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: #12151c;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.team-msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.team-msg-head strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}
.team-msg-close {
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.team-msg-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
}
.team-msg-form input,
.team-msg-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.28);
  color: inherit;
  font: inherit;
  padding: 0.65rem 0.75rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  font-size: 0.95rem;
}
.team-msg-form textarea { resize: vertical; min-height: 110px; }
.team-msg-out {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}
.team-msg-out.is-err { color: #ff6b7a; }
.team-msg-out.is-ok { color: #7dffb0; }
.team-msg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}
@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 700px;
  }
  .team-grid:has(.team-card:only-child) {
    max-width: 360px;
    grid-template-columns: 1fr;
  }
  .team-grid:has(.team-card:nth-child(2):last-child) {
    max-width: 640px;
  }
  .team-grid:has(.team-card:nth-child(3):last-child) {
    max-width: 700px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .mission-grid,
  .team-grid {
    grid-template-columns: 1fr !important;
    max-width: 420px;
  }
  .page-rolunk .section-rolunk-cta .hero-cta { flex-direction: column; align-items: stretch; }
}
@media (max-width: 900px) and (min-width: 641px) {
  .mission-grid { grid-template-columns: 1fr; max-width: 420px; }
  .page-rolunk .section-rolunk-cta .hero-cta { flex-direction: column; align-items: stretch; }
}

/* Ajánlatok */
.offer-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.offer-card {
  display: grid; grid-template-columns: 140px minmax(0, 1fr);
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.offer-card:hover { border-color: rgba(255,30,50,.4); transform: translateY(-2px); }
.offer-media {
  min-height: 140px;
  background: linear-gradient(145deg, #1a1014, #12151c);
}
.offer-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-media--blank {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,30,50,.25), transparent 55%),
    linear-gradient(145deg, #1a1014, #12151c);
}
.offer-body { padding: 1rem 1.05rem; display: flex; flex-direction: column; gap: 0.35rem; }
.offer-badge {
  align-self: flex-start;
  font-size: 0.68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--red-soft);
  border: 1px solid rgba(255,30,50,.35);
  border-radius: 999px; padding: 0.2rem 0.55rem;
}
.offer-body h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0; font-size: 1.1rem;
}
.offer-body p { margin: 0; color: var(--dim); font-size: 0.9rem; line-height: 1.5; }
.offer-body .pc-go {
  position: static; width: auto; height: auto; border-radius: 0;
  display: inline; margin-top: auto; padding-top: 0.5rem;
  background: none; box-shadow: none; color: var(--red-soft);
  font-weight: 600; font-size: 0.85rem;
}
@media (max-width: 700px) {
  .offer-grid { grid-template-columns: 1fr; }
  .offer-card { grid-template-columns: 1fr; }
  .offer-media { min-height: 160px; }
}

/* Hírek rich */
.news-grid--rich { gap: 1.1rem; }
.news-grid--changelog {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.news-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.news-timeline .news-version-heading {
  grid-column: 1 / -1;
  margin: 1.25rem 0 0.15rem;
  padding: 0.35rem 0;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red, #ef1a2a);
  border-bottom: 1px solid rgba(239, 26, 42, 0.28);
}
.news-timeline .news-version-heading:first-child { margin-top: 0; }
.sec-meta { margin-top: 0.55rem; font-size: 0.9rem; }
.news-pinned {
  display: grid;
  gap: 1.15rem;
  margin-bottom: 0.5rem;
}
.news-card--feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.2fr);
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 30, 50, 0.42);
  min-height: 220px;
}
.news-card--feature:not(.has-media) {
  grid-template-columns: 1fr;
}
.news-card--feature .news-media {
  min-height: 240px;
  background: #12151c;
}
.news-card--feature .news-card-body {
  padding: 1.45rem 1.5rem 1.4rem;
  justify-content: center;
}
.news-card--feature h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  margin-bottom: 0.55rem;
}
.news-card--feature .news-body {
  -webkit-line-clamp: 8;
  font-size: 0.95rem;
  line-height: 1.55;
}
.news-card--feature .news-more {
  font-size: 0.85rem;
  margin-top: 0.7rem;
}
.news-card.has-media {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  padding: 0; overflow: hidden;
}
.news-media { min-height: 180px; background: #12151c; position: relative; }
.news-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-media.is-broken {
  min-height: 0;
  display: none;
}
.news-card-body {
  padding: 1.2rem 1.25rem 1.15rem;
  display: flex; flex-direction: column; flex: 1;
}
.news-card-body .news-ver { margin-top: auto; padding-top: 0.65rem; }
.news-card:not(.has-media) .news-card-body { padding: 1.25rem 1.3rem 1.2rem; }
.news-card.is-pinned { border-color: rgba(255,30,50,.45); }
.news-pin {
  font-size: 0.68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #ff8a90; margin-right: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(255,30,50,0.35);
  background: rgba(255,30,50,0.12);
}
.section-news--pinned { margin-bottom: 2rem; }
.section-news--changelog .sec-head { margin-bottom: 1.35rem; }
.news-grid--home .news-card.has-media { grid-template-columns: 1fr; }
@media (max-width: 800px) {
  .news-card.has-media,
  .news-card--feature.has-media { grid-template-columns: 1fr; }
  .news-grid--changelog,
  .news-timeline { grid-template-columns: 1fr; }
  .news-card--feature .news-media { min-height: 180px; }
}

/* Footer */
.foot {
  position: relative; z-index: 2;
  width: var(--w); margin: 0 auto 2rem;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
  box-sizing: border-box;
}
/* Subtle Társ endorsement — no card/box; sits in footer rhythm */
.partner-strip {
  display: flex;
  align-items: center;
  gap: 0.65rem 0.85rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.partner-strip-label {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200, 200, 210, 0.55);
  line-height: 1;
}
.partner-strip-rule {
  width: 1px;
  height: 1.05rem;
  background: rgba(255, 30, 50, 0.45);
  flex-shrink: 0;
}
.partner-card {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.partner-card:hover {
  background: transparent;
}
.partner-card:hover .partner-name {
  color: #fff;
}
.partner-card:hover .partner-go {
  opacity: 1;
}
.partner-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  border: 0;
  display: block;
}
.partner-logo.is-fallback {
  object-fit: cover;
  background: #151922;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.partner-meta {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
  flex-wrap: wrap;
}
.partner-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: rgba(240, 240, 245, 0.88);
  transition: color 0.2s ease;
}
.partner-url {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 36vw;
}
.partner-go {
  margin-left: 0.15rem;
  color: var(--red-soft, #ff6b76);
  font-size: 0.78rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.foot-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  min-height: 2.25rem;
}
.foot-brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.08em; line-height: 1;
}
.foot-brand img { display: block; flex-shrink: 0; }
.foot-brand strong { line-height: 1; }
.foot-brand span { color: var(--dim); font-weight: 500; font-size: 0.72rem; letter-spacing: 0; }
.foot-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem;
  line-height: 1;
}
.foot-nav a, .foot-nav button {
  border: 0; background: transparent; color: var(--dim);
  font: inherit; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; padding: 0; text-decoration: none;
  line-height: 1;
  transition: color 0.2s;
}
.foot-nav a:hover, .foot-nav button:hover { color: #fff; }

/* Reveal */
.reveal-on {
  opacity: 0; transform: translateY(22px) scale(0.99);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-on.is-in { opacity: 1; transform: translateY(0) scale(1); }

/* Legal compat */
.legal-wrap { width: var(--w); margin: 0 auto; padding: 1.5rem 0 3rem; position: relative; z-index: 2; }
.legal-card {
  padding: 2rem; border-radius: 20px; border: 1px solid var(--glass-border);
  background: var(--glass); backdrop-filter: blur(12px);
}
.legal-card h1, .legal-card h2 { font-family: "Space Grotesk", sans-serif; }
.legal-card h2 { color: var(--red-soft); }
.legal-card a { color: var(--red-soft); }
.legal-updated { color: var(--dim); }
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 1180px) {
  .menu { gap: 0 0.7rem; }
  .menu a { letter-spacing: 0.08em; font-size: 0.62rem; }
  .lang { display: none; }
}

@media (max-width: 1020px) {
  .menu { display: none; }
  .hero {
    min-height: auto;
    align-items: start;
    padding-top: 2.75rem;
    padding-bottom: 3rem;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-aside {
    flex-direction: row; justify-content: flex-start; align-items: flex-end;
    gap: 2rem; justify-self: start;
  }
  .aside-stack, .aside-script { text-align: left; }
  .path-wrap { min-height: 0; }
  .peha-path-svg { display: none; }
  .path-checkpoints {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    position: relative;
    padding-left: 1.15rem;
  }
  .path-checkpoints::before {
    content: "";
    position: absolute; left: 0; top: 0.5rem; bottom: 0.5rem; width: 2px;
    background: linear-gradient(180deg, transparent, var(--red), transparent);
    box-shadow: 0 0 12px var(--red-glow);
    border-radius: 999px;
  }
  .path-card:nth-child(n) { margin-top: 0; }
  .path-card { min-height: 0; }
  .live-timeline { grid-template-columns: repeat(3, 1fr); }
  .tile-grid, .grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --page-gutter: 1.1rem; }
  .top {
    flex-wrap: wrap;
    row-gap: 0.7rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }
  .top-right {
    width: 100%;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
  }
  .top-right .btn {
    padding: 0.7rem 1rem;
    font-size: 0.66rem;
    min-height: 42px;
  }
  .hero {
    min-height: auto;
    padding-top: 2.25rem;
    padding-bottom: 2.75rem;
  }
  .hero-title { font-size: clamp(2.45rem, 11vw, 3.4rem); }
  .hero-cta { gap: 0.65rem; }
  .hero-cta .btn { min-height: 46px; flex: 1 1 auto; }
  .hero-title span::after { width: 2.4rem; }
  .hero-aside { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .path-checkpoints, .ma-grid, .news-grid, .form-row, .tile-grid, .grid, .stats-row, .live-timeline {
    grid-template-columns: 1fr;
  }
  .cinematic { min-height: 40vh; }
  .live-pill { max-width: none; flex: 1 1 auto; min-height: 36px; }
  .service-card { padding: 1.25rem 1.15rem 1.2rem; }
  .eco-node { min-height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal-on, .service-card { opacity: 1; transform: none; }
  .peha-path-line { stroke-dashoffset: 0 !important; }
  .hero-bg, .cinematic-bg { transform: none !important; transition: none !important; }
}
