/* IT Doki — pályázat landing (palyazat.html only) */

:root {
  --bg-deep: #070a0f;
  --bg-elevated: #0f1419;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: #e8edf4;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --accent-glow: rgba(56, 189, 248, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-nav:
    0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition:
    color 0.2s var(--ease-out),
    opacity 0.2s;
}

a:hover {
  color: #7dd3fc;
}

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

/* ——— Skip link ——— */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 16px;
}

/* ——— Page shell ——— */
.page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      ellipse 120% 80% at 10% -20%,
      rgba(56, 189, 248, 0.18),
      transparent 50%
    ),
    radial-gradient(
      ellipse 100% 60% at 90% 10%,
      rgba(167, 139, 250, 0.14),
      transparent 45%
    ),
    radial-gradient(
      ellipse 80% 50% at 50% 100%,
      rgba(56, 189, 248, 0.08),
      transparent 55%
    ),
    var(--bg-deep);
}

.page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.04'%3E%3Cpath d='M0 0h80v80H0z'/%3E%3Cpath d='M40 0v80M0 40h80'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ——— Floating nav ——— */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.floating-nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: clamp(12px, 3vw, 20px);
  pointer-events: none;
}

.floating-nav {
  pointer-events: auto;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  background: rgba(15, 20, 25, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-nav);
}

.floating-nav__brand {
  display: flex;
  align-items: center;
  color: var(--text);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  /* Mirror nav link horizontal padding so edge-to-text matches last link on the right */
  padding: 6px 0 6px 16px;
}

.floating-nav__brand img {
  height: 18px;
  width: auto;
}

.floating-nav__brand strong {
  font-weight: 700;
  text-shadow: none;
}

.floating-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.floating-nav__links a {
  display: block;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition:
    background 0.2s,
    color 0.2s;
}

.floating-nav__links a:hover {
  color: var(--text);
  background: var(--surface);
}

.floating-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.floating-nav__burger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease-out),
    opacity 0.2s;
}

.nav-toggle:checked ~ .floating-nav .floating-nav__burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle:checked ~ .floating-nav .floating-nav__burger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked ~ .floating-nav .floating-nav__burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  .floating-nav__burger {
    display: flex;
  }

  .floating-nav {
    flex-wrap: wrap;
    border-radius: var(--radius-md);
    padding: 10px 16px;
  }

  .floating-nav__brand {
    padding-left: 14px;
    font-size: 1.2rem;
  }

  .floating-nav__links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 12px 0 8px;
    gap: 0;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }

  .floating-nav__links a {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .nav-toggle:checked ~ .floating-nav .floating-nav__links {
    display: flex;
  }
}

/* ——— Sections ——— */
main {
  padding-top: calc(var(--header-h) + 24px);
}

.section {
  position: relative;
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 48px);
}

.section__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section__label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section__label--spaced {
  margin-top: 24px;
}

.section__title {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--text);
}

.section__lead {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 32px;
}

/* ——— Hero ——— */
.hero {
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  padding-top: clamp(56px, 10vw, 104px);
  padding-bottom: clamp(24px, 4vw, 44px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero__content {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__visual {
  order: 2;
  position: relative;
}

/* Mobil: logóblokk teljes szélesség, a szöveg alatt */
@media (max-width: 899px) {
  .hero__visual {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .hero__card.hero__card--logos {
    border-radius: 0;
    border-left: none;
    border-right: none;
    min-height: min(220px, 48vw);
  }
}

.hero__badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero__badge strong {
  color: var(--accent);
  font-weight: 600;
}

.hero__title {
  font-size: clamp(2.25rem, 1.5rem + 3.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 24px;
}

.hero__title .gradient {
  background: linear-gradient(
    135deg,
    var(--text) 0%,
    var(--accent) 55%,
    var(--accent-2) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  color: var(--text-muted);
  max-width: min(58ch, 100%);
  margin: 0 0 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s;
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  color: var(--bg-deep);
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
  color: var(--bg-deep);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--surface-strong);
  color: var(--text);
}

.hero__card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.hero__card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 70%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.15),
    transparent 70%
  );
  pointer-events: none;
}

.hero__card--logos {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(280px, 42vw);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.28),
    rgba(255, 255, 255, 0.14)
  );
  border-color: rgba(255, 255, 255, 0.35);
}

.hero__card--logos::before {
  opacity: 0.6;
}

.hero__palyazat-logos {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 36px);
  width: 100%;
}

.hero__palyazat-logos img {
  width: 100%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
}

/* Görgessen — custom scroll cue, balra igazítva */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  align-self: flex-start;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.25s var(--ease-out);
}

.scroll-cue:hover {
  color: var(--accent);
}

.scroll-cue:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

.scroll-cue__text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scroll-cue__rail {
  position: relative;
  flex-shrink: 0;
  width: 2px;
  height: 52px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(148, 163, 184, 0.35) 20%,
    rgba(148, 163, 184, 0.35) 80%,
    transparent 100%
  );
  overflow: hidden;
}

.scroll-cue__nub {
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 14px;
  margin-left: -3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px var(--accent-glow);
  animation: scrollNub 2.2s var(--ease-out) infinite;
}

@keyframes scrollNub {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    transform: translateY(52px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue__nub {
    animation: none;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
  }
}

/* ——— About ——— */
.about {
  background: linear-gradient(180deg, transparent, rgba(15, 20, 25, 0.5));
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-card {
  padding: 22px 22px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    border-color 0.25s,
    transform 0.25s var(--ease-out);
}

.why-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-3px);
}

.why-card__heading {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
}

.why-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ——— Services (bento) ——— */
.services {
  position: relative;
}

.services__bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .services__bento {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1120px;
    margin: 0 auto;
    align-items: stretch;
  }
}

.bento-card {
  --bento-card-gap: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    160deg,
    rgba(56, 189, 248, 0.12),
    rgba(15, 20, 25, 0.9)
  );
  border: 1px solid rgba(56, 189, 248, 0.25);
  overflow: hidden;
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 100% 0%,
    rgba(167, 139, 250, 0.12),
    transparent
  );
  pointer-events: none;
}

.bento-card > * {
  position: relative;
  z-index: 1;
}

/* Cím ↔ leírás távolság = gomb feletti tér (egyenlő) */
.bento-card h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  margin: 0 0 var(--bento-card-gap);
  letter-spacing: -0.02em;
}

.bento-card p {
  flex: 1 1 auto;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.bento-card__action {
  margin-top: 32px;
  align-self: flex-start;
  padding-top: var(--bento-card-gap);
}

.btn--outline {
  display: inline-flex;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(56, 189, 248, 0.08);
}

.btn--outline:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #e0f2fe;
}

/* ——— Szolgáltatás aloldal ——— */
/* main padding-top ad helyet a fix navnak; itt ne dupláljuk a fejlécet */
.subpage-hero {
  padding-top: clamp(8px, 2vw, 16px);
  padding-bottom: clamp(40px, 6vw, 64px);
}

.subpage-hero h1 {
  font-size: clamp(1.85rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--text);
}

.service-detail {
  padding-top: 0;
}

.service-detail__block + .service-detail__block {
  margin-top: clamp(28px, 4vw, 40px);
}

.service-detail--split .service-detail__block + .service-detail__block {
  margin-top: clamp(84px, 12vw, 120px);
}

.service-detail--split .service-detail__block {
  display: grid;
  grid-template-columns: minmax(230px, 360px) 1fr;
  gap: clamp(18px, 3vw, 30px);
  align-items: stretch;
}

/* Páros szakaszok: szöveg balra, kép jobbra (DOM-ban továbbra is kép–szöveg) */
.service-detail--split .service-detail__block:nth-of-type(even) {
  grid-template-columns: 1fr minmax(230px, 360px);
}

.service-detail--split
  .service-detail__block:nth-of-type(even)
  .service-detail__content {
  order: 1;
}

.service-detail--split
  .service-detail__block:nth-of-type(even)
  .portfolio-card__image {
  order: 2;
}

@media (max-width: 860px) {
  .service-detail--split .service-detail__block {
    grid-template-columns: 1fr;
  }
}

.service-detail__block h2 {
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--text);
}

.service-detail__block h3 {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.34rem);
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--text);
}

.service-detail__block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 65ch;
}

.service-detail--split .service-detail__block .portfolio-card__image {
  margin: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  /* Teljes sor magassága: felülírjuk a kártya 16/10 arányát */
  aspect-ratio: unset;
  min-height: 0;
  align-self: stretch;
  overflow: hidden;
  position: relative;
}

.service-detail--split .service-detail__block .portfolio-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 860px) {
  .service-detail--split .service-detail__block .portfolio-card__image {
    min-height: min(42vh, 360px);
    aspect-ratio: unset;
  }
}

.service-detail__content h3 {
  margin-top: 0;
}

.service-detail__block p + p {
  margin-top: 12px;
}

.portfolio-section {
  padding-top: clamp(48px, 8vw, 88px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 32px);
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 3×3 rács (pl. vállalatirányítási ERP modulok a GINOP leírás szerint) */
.portfolio-grid--9 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .portfolio-grid--9 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .portfolio-grid--9 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    border-color 0.25s,
    transform 0.25s var(--ease-out);
}

.portfolio-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.portfolio-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated);
}

.portfolio-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-card__body {
  padding: clamp(18px, 3vw, 24px);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.portfolio-card__body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.35;
}

.portfolio-card__body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.subpage-cta {
  text-align: center;
  padding: clamp(40px, 6vw, 56px) clamp(20px, 5vw, 48px);
}

.subpage-cta .btn--primary {
  display: inline-flex;
}

/* ——— References ——— */
.references {
  background: linear-gradient(180deg, rgba(15, 20, 25, 0.3), transparent);
}

.ref-layout {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
}

@media (min-width: 900px) {
  .ref-layout {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.ref-intro {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

@media (max-width: 899px) {
  .ref-intro {
    position: static;
  }
}

.ref-list-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.ref-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ref-list li {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: background 0.2s;
}

.ref-list li:last-child {
  border-bottom: none;
}

.ref-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.ref-list li:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.references__bg {
  margin-top: clamp(40px, 6vw, 64px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.references__bg img {
  width: 100%;
}

@media (min-width: 1024px) {
  .references__bg {
    display: none;
  }
}

/* ——— Contact ——— */
.contact {
  padding-bottom: clamp(80px, 12vw, 140px);
}

.contact-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(32px, 5vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact-card .section__lead {
  margin-left: auto;
  margin-right: auto;
}

.contact-lines {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
  font-weight: 600;
  margin: 0 0 28px;
  line-height: 1.5;
}

.contact-lines a {
  word-break: break-word;
}

/* ——— Footer ——— */
.site-footer {
  padding: 32px clamp(20px, 5vw, 48px) 40px;
  border-top: 1px solid var(--border);
  background: rgba(7, 10, 15, 0.85);
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.site-footer__copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  font-size: 0.85rem;
}

.site-footer__legal a {
  color: var(--text-muted);
}

.site-footer__legal a:hover {
  color: var(--accent);
}

.site-footer__sep {
  color: var(--border);
  user-select: none;
}

@media (max-width: 767px) {
  .site-footer__sep {
    display: none;
  }
}
