.about-flex {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 40px;
  justify-content: space-between;
}
.about-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.about-img {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 300px;
}
.about-img img {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(11,31,63,0.10);
}

@media (max-width: 480px) {
  .about-flex {
    flex-direction: column;
    gap: 20px;
  }
  .about-img {
    min-width: 250px;
  }
  .about-box {
    font-size: 0.9rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .about-flex {
    flex-direction: column;
    gap: 30px;
  }
  .about-img {
    min-width: 300px;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .about-flex {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .about-flex { flex-direction: column; gap: 24px; }
  .about-img img { max-width: 90vw; }
}
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
  background: #f4f6f9;
  color: #111;
  line-height: 1.6;
  overflow-x: hidden;
}
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(90deg, #0b1f3f 0%, #132a60 100%);
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  z-index: 1000;
}
header .logo {
  display: flex;
  align-items: center;
  gap: 15px;
}
header .logo img {
  display: block;
  max-height: 55px;
  width: auto;
  object-fit: contain;
}
header .motto {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  color: #f4c430;
  font-size: 1rem;
}
nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding-right: 110px;
}
nav a {
  font-family: "Montserrat", sans-serif;
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
  transition: 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  font-size: 0.95rem;
}
nav a:hover {
  color: #f4c430;
}
.flags {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  overflow: visible;
  padding-right: 30px;
  margin-right: 4px;
  position: relative;
  z-index: 1000;
}
.flags img {
  width: 20px;
  height: auto;
  display: block;
  cursor: pointer;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  filter: brightness(0.95);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
  background: transparent;
  box-shadow: none;
}
.flags img:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.06);
  box-shadow: 0 4px 14px rgba(11,31,63,0.08);
}

@media (max-width: 480px) {
  header {
    padding: 10px 12px;
    gap: 6px;
  }
  header .logo {
    gap: 8px;
  }
  header .logo img {
    max-height: 40px;
  }
  header .motto {
    font-size: 0.75rem;
  }
  nav {
    display: none;
  }
  .flags {
    padding-right: 10px;
    gap: 4px;
  }
  .flags img {
    width: 12px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  nav a {
    font-size: 0.85rem;
    margin: 0 8px;
  }
  .flags img {
    width: 16px;
  }
}

@media (max-width: 420px) {
  .flags img { width: 14px; }
  nav { display: none; }
}
main {
  padding-top: 100px;
}
section {
  padding: 24px 12px;
  min-height: auto;
  background: transparent;
  margin-bottom: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  transition: none;
}


section#szolgaltatasok {
  max-width: 2200px;
}


@media (min-width: 1024px) {
  section#szolgaltatasok { padding-bottom: 140px; }
}
@media (max-width: 1023px) {
  section#szolgaltatasok { padding-bottom: 100px; }
}
section:hover {
  transform: none;
  box-shadow: none;
}

@media (min-width: 481px) and (max-width: 768px) {
  section {
    padding: 32px 16px;
  }
}

@media (min-width: 769px) {
  section {
    padding: 40px 20px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
section {
  animation: fadeInUp 0.7s ease both;
}
h1 {
  font-family: "Montserrat", sans-serif;
  color: #0b1f3f;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}
.service-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.services-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  overflow: visible;
  padding: 0 12px;
  width: 100%;
  box-sizing: border-box;
  position: relative; 
}
.service-box {
  position: static;
  display: flex;
  flex-direction: column;
  flex: 0 0 220px;
  width: auto;
  max-width: 260px;
  padding-bottom: 10px;
  margin: 0;
  overflow: visible;
}

@media (max-width: 480px) {
  .services-wrapper {
    flex-direction: column;
    gap: 16px;
    padding: 0 12px;
  }
  .service-box {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
    margin-bottom: 16px;
  }
  .service-item {
    min-height: 140px;
    padding: 16px;
  }
  .service-item img {
    width: 140px;
    height: 140px;
    margin-bottom: 10px;
  }
  .detail {
    width: calc(100vw - 32px);
    min-width: 300px;
    padding: 24px 20px;
    gap: 16px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .services-wrapper {
 
    gap: 18px;
    padding: 0 12px;
    justify-content: center;
  }
  .service-box {
    flex: 0 0 calc(50% - 9px);
    max-width: none;
    margin-bottom: 20px;
  }
  .service-item {
    min-height: 160px;
    padding: 18px;
  }
  .service-item img {
    width: 130px;
    height: 130px;
    margin-bottom: 12px;
  }
  .detail {
    width: calc(100vw - 36px);
    max-width: 100%;
    padding: 24px 20px;
    gap: 16px;
  }
}

@media (min-width: 769px) {
  .services-wrapper {
    gap: 20px;
    padding: 0 24px;
    justify-content: center;
  }
  .service-box {
    flex: 0 0 220px;
    max-width: 220px;
    margin-bottom: 24px;
  }
  .service-item {
    min-height: 180px;
    padding: 20px;
  }
  .service-item img {
    width: 160px;
    height: 160px;
    margin-bottom: 15px;
  }
  .detail {
    width: clamp(340px, 60vw, 600px);
    padding: 32px 36px;
    gap: 28px;
    max-height: 420px;
  }
}

@media (max-width: 900px) {
  .services-wrapper {
    justify-content: center;
  }
  .service-box {
    flex: 0 0 calc(50% - 10px);
    margin-bottom: 20px;
  }
}

@media (max-width: 1200px) {
  .detail {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 12px !important;
    min-width: 0 !important;
    opacity: 1; 
    visibility: visible;
    pointer-events: auto;
  }
  .detail.visible {
    transform: none !important;
  }

  .detail-image { max-width: 140px; width: 22%; min-width: 90px; }
}
.service-item {
  cursor: pointer;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s, transform 0.3s;
  text-align: center;
  color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 180px;
}
.service-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px);
  color: #111;
}
.service-item img {
  width: 180px !important;
  height: 180px !important;
  margin-bottom: 15px;
  object-fit: contain;
}
.service-item span {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}
.detail {
  position: absolute;
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: flex-start;
  background: white;
  padding: 24px 28px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  width: clamp(300px, 60vw, 900px);
  max-width: 900px;
  max-height: 420px;
  left: 50%;
  transform: translateX(-50%) scale(0.98);
  margin-top: 18px;
  top: calc(100% + 12px); 
  z-index: 1200;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s 0.28s;
}
.detail.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.detail-image {
  flex-shrink: 0;
  width: 110px;
  height: 90px;
  max-width: 22vw;
  max-height: 90px;
  min-width: 90px;
  min-height: 70px;
  object-fit: cover;
  border-radius: 12px;
  background: #f4f6f9;
  margin-right: 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: block;
  align-self: center;
  flex-basis: 90px;
}
.detail.show-left {
  left: auto;
  right: 0;
  transform: none;
}
.detail > div {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
  text-align: left;
  padding: 0;
  line-height: 1.6;
  font-size: 0.95rem;
  white-space: normal;
}
.service-box:nth-child(6) .detail,
.service-box:nth-child(7) .detail {
  flex-direction: row-reverse;
}
@keyframes slideOpen {
  0% {
    opacity: 0;
    max-height: 0;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    max-height: 800px;
    transform: scale(1);
  }
}
.fleet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  justify-content: center;
}
.vehicle {
  background: transparent;
  border-radius: 0;
  width: 100%;
  max-width: 260px;
  min-width: 200px;
  min-height: 380px;
  align-self: center;
  justify-content: flex-start;
  text-align: center;
  transition: 0.2s;
  padding: 8px 6px 6px 6px;
  position: relative;
  overflow: visible;
  margin: 0 auto;
}
@media (max-width: 480px) {
  .services-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 12px;
  }
  .service-box {
    max-width: none;
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .fleet {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 12px;
  }
  .vehicle {
    max-width: 100%;
    min-width: auto;
    min-height: 320px;
    margin: 0 auto 12px auto;
    padding: 8px 4px 4px 4px;
  }
  .vehicle img {
    width: 90px;
    height: 90px;
    margin: 0 auto 8px auto;
  }
  .vehicle span {
    font-size: 0.8rem;
    padding: 8px 10px;
    margin-top: 8px;
    line-height: 1.15;
  }
}

/* Tablet optimization: 481px - 768px */
@media (min-width: 481px) and (max-width: 768px) {
  .fleet {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 18px;
  }
  .vehicle {
    min-height: 340px;
    max-width: 100%;
  }
  .vehicle img {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px auto;
  }
  .vehicle span {
    font-size: 0.9rem;
    padding: 9px 11px;
    margin-top: 10px;
    line-height: 1.25;
  }
}
.consent-row { margin: 12px 0 6px 0; }
.consent-label { color: #17324d; font-size: 0.95rem; }
.consent-label input { margin-right: 8px; }
.recaptcha-container { margin-bottom: 10px; }
#recaptcha-manual { display: inline-block; }
.consent-inline { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.consent-inline .consent-label input { margin-right: 8px; transform: none; width: 16px; height: 16px; }
.message-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.consent-col { flex: 0 0 280px; }
.consent-col .consent-label { display: flex; align-items: center; }
.consent-col .consent-label input { margin-right: 10px; transform: none; width: 16px; height: 16px; }
.message-col { flex: 1 1 0; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
@media (max-width: 900px) {
  .message-row { flex-direction: column; }
  .consent-col { flex: 0 0 auto; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
}
.vehicle:hover {
  transform: scale(1.03);
}
.vehicle img {
  position: static;
  width: 160px;
  height: 160px;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  margin: 0 auto 16px auto;
  opacity: 1;
  z-index: 1;
}
@media (max-width: 1100px) {
  .vehicle img { width: 140px; height: 140px; }
}
@media (max-width: 700px) {
  .vehicle img { width: 120px; height: 120px; }
}
.vehicle span {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  z-index: 2;
  color: #17324d;
  display: block;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(11,31,63,0.06);
  margin-top: 20px;
  width: calc(100% - 24px);
  margin: 6px auto 0 auto;
  line-height: 1.3;
  text-align: center;
}
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: auto;
  padding: 0 16px;
}
input,
textarea {
  padding: 12px;
  width: 100%;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: 0.3s;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
}
textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 250px;
}
input:focus,
textarea:focus {
  border-color: #0b1f3f;
  outline: #0b1f3f;
  box-shadow: 0 0 5px rgba(11,31,63,0.3);
}
button {
  padding: 12px 20px;
  background: #0b1f3f;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: 0.3s;
  width: 100%;
  font-size: 1rem;
}
button:hover {
  background: #f4c430;
  color: black;
}

@media (max-width: 480px) {
  form {
    max-width: 100%;
    padding: 0 12px;
    gap: 12px;
  }
  input,
  textarea {
    padding: 10px;
    font-size: 16px;
  }
  textarea {
    min-height: 100px;
  }
  button {
    padding: 12px 16px;
    min-height: 44px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  form {
    max-width: 100%;
    padding: 0 20px;
    gap: 14px;
  }
  input,
  textarea {
    padding: 11px;
    font-size: 1rem;
  }
  button {
    padding: 11px 18px;
  }
}
footer {
  background: #0b1f3f;
  color: white;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  gap: 0;
}
.footer-left {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}
.footer-contact {
  color: #f4c430;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-align: left;
  min-height: 70px;
  margin-left: 50px;
}
.footer-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
  margin: 0;
  align-self: center;
  flex: 0 1 auto;
}

@media (max-width: 620px) {
  .footer-links {
    position: static;
    transform: none;
    margin-top: 12px;
    white-space: normal;
  }
}
.footer-right a {
  color: #f4c430;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
}
.footer-links a {
  color: #f4c430 !important;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
}
.footer-links a:hover {
  text-decoration: underline;
}
@media (max-width: 620px) {
  footer { flex-direction: column; align-items: center; text-align: center; position: static; }
  .footer-contact { text-align: center; align-items: center; margin-left: 0; }
}
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #0b1f3f;
  color: white;
  padding: 16px 30px;
  border-radius: 10px;
  font-size: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  z-index: 2000;
  align-items: center;
  gap: 15px;
  transition: opacity 0.4s ease;
  display: flex;
  max-width: calc(100% - 40px);
}
#cookie-banner .cookie-content {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
#cookie-banner .cookie-message {
  max-width: 640px;
}
#cookie-banner .cookie-actions button {
  margin-left: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}
#cookie-banner #accept-all {
  background: #2e8b57;
  color: white;
}
#cookie-banner #reject-all {
  background: #b22222;
  color: white;
}
#cookie-banner #open-cookie-settings {
  background: #f4c430;
  color: #111;
}
#cookie-modal.hidden {
  display: none;
}
#cookie-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  z-index: 3000;
  padding: 20px;
}
.cookie-modal-inner {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}
.cookie-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 48px 16px 20px; 
  background: #0b1f3f;
  border-bottom: 1px solid #eee;
}

.cookie-modal-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1;
  white-space: nowrap; /* nincs sortörés */
  overflow: hidden;
  text-overflow: ellipsis;
}

#cookie-modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
}

#cookie-modal-close:hover,
#cookie-modal-close:focus {
  background: rgba(255,255,255,0.06);
  outline: none;
}

@media (max-width: 420px) {
  .cookie-modal-header h2 { font-size: 1rem; }
  #cookie-modal-close { width: 28px; height: 28px; font-size: 14px; right: 10px; top: 10px; }
}
.cookie-modal-body {
  padding: 16px 20px;
}
.cookie-option {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px;
  background: #fff;
}
.small {
  color: #666;
  font-size: 0.9rem;
  margin: 4px 0 0;
}
.about-box {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-right: 4px solid #0b1f3f;
  box-shadow: 0 8px 24px rgba(11,31,63,0.08);
  padding: 20px 22px;
  border-radius: 8px;
  max-width: 100%;
  margin: 18px auto 0;
  font-family: "Inter", sans-serif;
  color: #17324d;
  line-height: 1.55;
}
.about-box .lead {
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0b1f3f;
  margin-bottom: 10px;
}
.about-box p { margin: 10px 0; font-size: 0.98rem; }
.about-box strong { color: #0b1f3f; font-weight: 700; background: rgba(244,196,48,0.08); padding: 2px 4px; border-radius: 4px; }
.about-box .small-note { font-size: 0.92rem; color: #4b6072; margin-top: 8px; }

/* Notification Modal Styles */
.notification-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 31, 63, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.notification-modal.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.notification-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(11, 31, 63, 0.2);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.notification-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: bold;
  color: white;
}

.notification-icon.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notification-icon.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.notification-content h2 {
  margin: 0 0 12px 0;
  color: #0b1f3f;
  font-size: 1.5rem;
  font-weight: 700;
}

.notification-content p {
  margin: 0 0 24px 0;
  color: #4b6072;
  font-size: 1rem;
  line-height: 1.5;
}

.notification-button {
  background: linear-gradient(90deg, #0b1f3f 0%, #132a60 100%);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(11, 31, 63, 0.2);
}

.notification-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 31, 63, 0.3);
}

.notification-button:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .notification-content {
    padding: 30px 20px;
  }
  
  .notification-icon {
    width: 60px;
    height: 60px;
    font-size: 32px;
  }
  
  .notification-content h2 {
    font-size: 1.25rem;
  }
  
  .notification-content p {
    font-size: 0.95rem;
  }
}