:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --dark: #0f172a;
  --text: #334155;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Fejléc */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--primary);
}

.nav-links a {
  margin-left: 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hero szekció */
.hero {
  padding: 50px 0 35px 0;
}

.text-center {
  text-align: center;
}

.hero h1 {
  font-size: 2.3rem;
  color: var(--dark);
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 1.15rem;
  color: #64748b;
  max-width: 750px;
  margin: 0 auto;
}

/* Vertikális 9:16 Videó stílusa */
.hero-video-wrapper {
  display: flex;
  justify-content: center;
  margin: 35px auto 20px auto;
  max-width: 100%;
}

.phone-frame {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.2);
  border: 4px solid #0f172a;
  background-color: #000000;
}

.phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3 Oszlopos Rács */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0 70px 0;
}

/* Kártya formázás */
.service-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-image-link {
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.service-card:hover .card-image-link img {
  transform: scale(1.04);
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card-content h2 a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-content h2 a:hover {
  color: var(--primary);
}

.card-content p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* CTA Doboz */
.cta-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 45px 25px;
  margin-bottom: 70px;
}

.cta-section h2 {
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.cta-section p {
  color: #64748b;
  margin-bottom: 25px;
}

.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.cta-btn:hover {
  background: var(--primary-hover);
}

/* Kapcsolati űrlap alapértelmezett (asztali) stílusa */
.contact-form {
  max-width: 550px;
  margin: 30px auto 0 auto;
  text-align: left;
}

.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #ffffff;
  color: var(--dark);
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form button {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  margin-top: 10px;
}

/* Lábléc */
footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 40px 0;
  border-top: 1px solid #334155;
}

.footer-info {
  text-align: center;
  font-size: 0.9rem;
}

.footer-info strong {
  color: #ffffff;
}

/* Tablet nézet */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobil nézet (Kényelmes, nagyobb űrlapmezők és gombok) */
@media (max-width: 650px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .nav-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  .nav-links a {
    margin: 0 8px;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero-video-wrapper {
    margin: 25px auto 10px auto;
  }
  .phone-frame {
    max-width: 85%;
    border-radius: 18px;
    border-width: 3px;
  }

  /* Mobilra méretezett tágas űrlap */
  .contact-form {
    width: 100%;
    margin-top: 25px;
  }
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 1.1rem;
    padding: 16px 18px;
    border-radius: 10px;
  }
  .contact-form .form-group {
    margin-bottom: 18px;
  }
  .contact-form button {
    padding: 18px 20px;
    font-size: 1.15rem;
    border-radius: 10px;
  }
}