:root {
  --bg: #0b1120;
  --bg-soft: #111827;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --card: #ffffff;
  --text: #e5eefb;
  --text-dark: #0f172a;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: #e5e7eb;
  --primary: #1d4ed8;
  --primary-2: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.16);
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.22);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28%),
    linear-gradient(180deg, #09101d 0%, #0f172a 100%);
  color: var(--text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(9, 16, 29, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.05rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.82rem;
}
*/

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: white;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: white;
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 86vh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(rgba(5, 10, 20, 0.58), rgba(5, 10, 20, 0.78)),
    url('https://images.unsplash.com/photo-1600518464441-9154a4dea21b?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.18), transparent 25%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.22));
}

.hero-grid,
.contact-layout,
.about-grid,
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  padding: 5rem 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #bfdbfe;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.section-heading h2 {
  margin: 0 0 1rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  max-width: 11ch;
}

.hero p,
.page-hero p,
.section-heading p,
.service-card p,
.reference-card p,
.feature-card p,
.mini-card p,
.about-card p,
.legal-card p,
.form-card p,
.info-card p,
.cta-box p {
  color: #dbe6f8;
}

.hero-copy p {
  max-width: 62ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.4rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-points li {
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.hero-panel,
.service-card,
.reference-card,
.feature-card,
.mini-card,
.about-card,
.legal-card,
.info-card,
.form-card,
.cta-box {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.6rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
}

.hero-panel h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.hero-stat-list {
  display: grid;
  gap: 1rem;
}

.hero-stat-list article {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat-list strong,
.service-card h3,
.reference-card strong,
.feature-card h2,
.mini-card h3,
.about-card h2,
.info-card h3,
.form-card h2,
.cta-box h2 {
  color: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.95rem 1.25rem;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
}

.btn-secondary {
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.04);
}

.section,
.page-main {
  position: relative;
}

.section {
  padding: 5.5rem 0;
}

.alt-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.04));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.service-grid,
.reference-grid,
.mini-grid {
  display: grid;
  gap: 1.25rem;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.reference-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mini-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card,
.reference-card,
.mini-card,
.about-card,
.legal-card,
.info-card,
.form-card,
.feature-card,
.cta-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.icon-box {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--primary-soft);
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.service-card h3,
.reference-card p,
.mini-card h3 {
  margin-top: 0;
}

.reference-card strong {
  display: block;
  margin-top: 1rem;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.page-hero {
  padding: 5rem 0 2rem;
}

.small-hero {
  background: transparent;
}

.small-hero .container {
  padding-top: 1rem;
}

.stack-layout {
  display: grid;
  gap: 1.25rem;
}

.feature-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.feature-card ul {
  display: grid;
  gap: 0.8rem;
}

.feature-card li {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}

.feature-tag {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: #93c5fd;
  font-weight: 800;
}

.contact-layout {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.info-card span {
  display: block;
  font-size: 0.85rem;
  color: #93c5fd;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.form-row {
  display: grid;
  gap: 0.45rem;
}

.form-row label {
  font-weight: 600;
  color: #e2e8f0;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: white;
  background: rgba(255,255,255,0.04);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.about-grid {
  grid-template-columns: repeat(3, 1fr);
}

.legal-card {
  max-width: 900px;
}

.legal-card h2 {
  margin-top: 0;
  color: white;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.35);
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  padding: 2.5rem 0;
}

.site-footer h3,
.site-footer h4 {
  margin-top: 0;
  color: white;
}

.site-footer li,
.site-footer p,
.site-footer a {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.22s;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .contact-layout,
  .feature-card,
  .about-grid,
  .service-grid,
  .reference-grid,
  .mini-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 84px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(10, 16, 29, 0.96);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .contact-layout,
  .about-grid,
  .service-grid,
  .reference-grid,
  .mini-grid,
  .footer-grid,
  .feature-card {
    grid-template-columns: 1fr;
  }

  .hero-copy p {
    max-width: none;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 74px;
  }

  .brand-text small {
    display: none;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .section {
    padding: 4.2rem 0;
  }
}

.error-box {
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
    color: white;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.3),
                0 10px 25px rgba(0,0,0,0.3);
    animation: shake 0.3s ease;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.brand-line {
  width: 220px;
  height: 2px;
  background: white;
}

.brand-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-content img {
  width: 65px;
}

.brand-content span {
  color: white;
  font-size: 1.6rem;
  font-weight: 600;
}

.margint2 {
  margin-top: 2rem;
  margin-right: 10rem;
}

.margint4 {
  margin-top: 4rem;
  margin-right: 10rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* KÁRTYA */
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  transition: 0.3s;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* EZ A LÉNYEG */
.gallery-item img {
  width: 100%;
  height: 220px;       /* fix magasság */
  object-fit: cover;   /* nem torzul */
  display: block;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox-img {
  max-width: 85%;
  max-height: 85%;
  border-radius: 12px;
}

.lightbox.active {
  display: flex;
}

.service-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;

  padding: 1.5rem 1.8rem;
  margin: 2rem 0;

  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.15),
    rgba(37, 99, 235, 0.05)
  );

  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-cta-content h3 {
  margin: 0;
  color: white;
  font-size: 1.3rem;
}

.service-cta-content p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.service-cta .btn {
  white-space: nowrap;
}

.service-cta.align-right {
  margin-left: auto;
  max-width: 520px;
}

.service-cta.flat {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}



@media (max-width: 700px) {
  .service-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-cta .btn {
    width: 100%;
  }
}


.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.section-cta-btn {
  padding: 14px 36px;
  font-size: 1.05rem;
  border-radius: 999px;

  /* meglévő színeidet használja */
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;

  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
  transition: 0.25s ease;
}

.section-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.45);
}

.section-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 2.8rem;
  gap: 1.5rem;
}

.section-cta-text h3 {
  margin: 0;
  color: white;
  font-size: 1.2rem;
}

.section-cta-text p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.section-cta-btn {
  padding: 14px 32px;
  border-radius: 999px;
  white-space: nowrap;

  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
  transition: 0.25s ease;
}

.section-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.45);
}

@media (max-width: 700px) {
  .section-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-cta-btn {
    width: 100%;
    text-align: center;
  }
}

.section-cta.center {
  justify-content: center;
  text-align: center;
}

.reference-slider {
  overflow: hidden;
  margin-top: 2rem;
}

.reference-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.6s ease;
}

.reference-card {
  min-width: calc(100% / 3 - 0.8rem);
}

/* HEADER */
.review-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.review-header img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
}

.review-header a {
  color: white;
  font-weight: 600;
}

.review-header a:hover {
  color: var(--primary-2);
}

/* STARS */
.stars {
  font-size: 0.9rem;
  color: #facc15;
  letter-spacing: 2px;
}

/* LIMIT SZÖVEG (nem esik szét) */
.reference-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .reference-card {
    min-width: 85%;
    max-width: 85%;
  }

  .reference-track {
    gap: 16px;
    padding: 0 10px;
  }

  .review-header a {
    font-size: 14px;
    line-height: 1.2;
  }

  .reference-card p {
    font-size: 14px;
  }
}