* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #fff;
  color: #1f2d3d;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* HEADER */

header {
  background: #ffffff;
  padding: 20px 0;
  border-bottom: 2px solid #eee;
  display: flex;
  justify-content: center;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #1f2d3d;
  font-weight: 500;
}

.cta-btn {
  background: #f5a623;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

/* HERO */

.hero {
  background-image: url("images/csovezetek-hatter.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
  color: #111;
}

.hero .container {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 40px;
  border-radius: 8px;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 25px;
}

.hero .buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  background: #1f2d3d;
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
}

.btn.secondary {
  background: #28c76f;
}

/* SZEKCIÓK */

.services,
.about,
.references,
.contact,
.blog {
  padding: 60px 0;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 26px;
  color: #1f2d3d;
}

/* SZOLGÁLTATÁSOK */

.service-grid {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 30px;
}

.service {
  flex: 1 1 250px;
  aspect-ratio: 1 / 1;
  padding: 25px;
  border-radius: 10px;
  color: #222;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.service-orange {
  background-color: #f4c9a0;
}

.service-green {
  background-color: #b4e3d1;
}

.service-yellow {
  background-color: #fbe8b3;
}

.service-blue {
  background-color: #b4d6f3;
}

.service h3 {
  margin-bottom: 12px;
}

.service p {
  margin-bottom: 16px;
}

/* Alcsempék */

.subservice-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 12px;
  width: 100%;
}

.subservice-grid a {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: #1f2d3d;
  color: #fff;
  text-decoration: none;
  text-align: center;
  border-radius: 6px;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.3;
  transition: 0.2s ease;
}

.subservice-grid a:hover {
  background: #000;
}

/* TOVÁBB gombok */

.service > .service-btn {
  width: 100%;
  min-height: 56px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f2d3d;
  color: #ffffff;
  border: none;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: normal;
  text-align: center;
  transition: 0.2s ease;
}

.service > .service-btn:hover {
  background: #000;
}

/* Olyan kártyánál, ahol nincs alcsempe, a TOVÁBB gomb menjen alulra */

.service-blue > .service-btn {
  margin-top: auto;
}

/* Energetikai kártya gombjai */

./* Energetikai kártya gombjai */

.service-buttons {

  width: 100%;

  margin-top: auto;

  display: flex;

  flex-direction: column;

  gap: 12px;

}

.service-buttons .cta-btn,
.service-buttons .service-btn {
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  font-weight: normal;
  text-align: center;
  text-decoration: none;
}

.service-buttons .cta-btn {
  background: #f5a623;
  color: #fff;
}

.service-buttons .service-btn {
  background: #1f2d3d !important;
  color: #fff !important;
  border: none !important;
}

.service-buttons .service-btn:hover {
  background: #000 !important;
}

/* RÓLAM */

.about-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.about-text {
  flex: 2;
}

.about-photo {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-photo img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: none;
}

.about ul {
  padding-left: 20px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.about li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.jogosultsag-lista {
  margin-top: 15px;
  padding-left: 20px;
}

.jogosultsag-lista li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* SLIDER */

.slider {
  position: relative;
  max-width: 1000px;
  margin: 25px auto 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
}

.slides img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  flex-shrink: 0;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(31, 45, 61, 0.75);
  color: #fff;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 6px;
}

.prev {
  left: 12px;
}

.next {
  right: 12px;
}

.dots {
  text-align: center;
  margin-top: 15px;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background: #ccc;
  display: inline-block;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #1f2d3d;
}

/* BLOG */

.blog-btn-wrapper {
  text-align: center;
  margin-top: 20px;
}

.blog-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #007dc5;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.blog-btn:hover {
  background-color: #005f99;
}

.blog-post-content h2 {
  font-size: 24px;
  margin-top: 40px;
  color: #1e2a36;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.blog-post-content ul li,
.blog-post-content ol li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.blog-post-content hr {
  margin: 40px 0;
  border: none;
  border-top: 1px solid #ddd;
}

.post-meta {
  color: #555;
  font-size: 14px;
  margin-bottom: 16px;
}

.back-btn {
  margin-bottom: 40px;
}

.blog-back-wrapper {
  margin-bottom: 60px;
}

/* ÁRAK */

.arak-table {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.arak-table tr {
  border-bottom: 1px solid #eee;
}

.arak-table td {
  padding: 12px 16px;
  font-size: 16px;
}

.arak-table td:last-child {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

.arak-table tr:last-child {
  border-bottom: none;
}

.arak-extra {
  max-width: 600px;
  margin: 40px auto 0;
}

.arak-extra h3 {
  margin-bottom: 15px;
  text-align: center;
}

.arak-extra ul {
  padding-left: 20px;
}

.arak-extra li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* PARTNEREK */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
}

.partner-item {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-item img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

/* KAPCSOLAT */

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: auto;
}

input,
textarea {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  padding: 12px;
  background: #f5a623;
  color: #fff;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.privacy-check a,
.privacy-check a:visited {
  color: #1f2d3d;
  text-decoration: underline;
}

/* FOOTER */

footer {
  background: #1f2d3d;
  color: white;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

.footer-link,
.footer-link:visited,
.footer-link:hover,
.footer-link:active {
  color: #ffffff;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* MOBIL */

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero .buttons {
    flex-direction: column;
  }

  .about-row {
    flex-direction: column;
    align-items: center;
  }

  .slides img {
    height: 280px;
  }

  .service {
    aspect-ratio: auto;
    min-height: 420px;
  }
}

/* FIX – szolgáltatás kártyák végleges igazítása */

.service {
  display: flex !important;
  flex-direction: column !important;
  aspect-ratio: 1 / 1;
}

.subservice-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-top: auto !important;
  margin-bottom: 12px !important;
  width: 100% !important;
}

.subservice-grid a,
.service > .service-btn,
.service-buttons .cta-btn,
.service-buttons .service-btn {
  width: 100% !important;
  min-height: 56px !important;
  height: 56px !important;
  padding: 10px 14px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: normal !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.subservice-grid a,
.service > .service-btn,
.service-buttons .service-btn {
  background: #1f2d3d !important;
  color: #fff !important;
  border: none !important;
}

.service-buttons .cta-btn {
  background: #f5a623 !important;
  color: #fff !important;
  border: none !important;
}

.service > .service-btn {
  margin-top: 12px !important;
}

.service-buttons {
  width: 100% !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

/* VÉGLEGES FIX – szolgáltatás kártyák */

.service {
  display: flex !important;
  flex-direction: column !important;
  aspect-ratio: 1 / 1 !important;
  padding: 25px !important;
}

.subservice-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: auto !important;
  margin-bottom: 12px !important;
}

.subservice-grid a {
  width: 100% !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 8px 14px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: #1f2d3d !important;
  color: #ffffff !important;

  text-decoration: none !important;
  text-align: center !important;

  border-radius: 6px !important;
  border: none !important;

  font-size: 14px !important;
  font-weight: normal !important;
  line-height: 1.25 !important;
}

.service > .service-btn {
  width: 100% !important;
  height: 56px !important;
  min-height: 56px !important;
  margin-top: 0 !important;
  padding: 8px 14px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: #1f2d3d !important;
  color: #ffffff !important;

  border: none !important;
  border-radius: 6px !important;

  text-decoration: none !important;
  text-align: center !important;

  font-size: 14px !important;
  font-weight: normal !important;
}

.subservice-grid + .service-btn {
  margin-top: 0 !important;
}

.service-green .service-buttons {
  width: 100% !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.service-buttons .cta-btn,
.service-buttons .service-btn {
  width: 100% !important;
  height: 56px !important;
  min-height: 56px !important;
  margin: 0 !important;
  padding: 8px 14px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 6px !important;

  font-size: 14px !important;
  font-weight: normal !important;
  text-align: center !important;
  text-decoration: none !important;
}

.service-buttons .cta-btn {
  background: #f5a623 !important;
  color: #ffffff !important;
  border: none !important;
}

.service-buttons .service-btn {
  background: #1f2d3d !important;
  color: #ffffff !important;
  border: none !important;
}

.service-blue > .service-btn {
  margin-top: auto !important;
}

.subservice-grid a:hover,
.service > .service-btn:hover,
.service-buttons .service-btn:hover {
  background: #000000 !important;
}

/* Épületgépészeti alcsempék színei – VÉGLEGES FELÜLÍRÁS */

.service-orange .subservice-grid a:nth-child(1) {
  background: #d9d1ff !important; /* engedélyezés */
  color: #1f2d3d !important;
}

.service-orange .subservice-grid a:nth-child(2) {
  background: #ef9a9a !important; /* fűtés-hűtés */
  color: #1f2d3d !important;
}

.service-orange .subservice-grid a:nth-child(3) {
  background: #b8dcff !important; /* víz-csatorna */
  color: #1f2d3d !important;
}

.service-orange .subservice-grid a:nth-child(4) {
  background: #cdeccd !important; /* légtechnika */
  color: #1f2d3d !important;
}

.service-orange .subservice-grid a:nth-child(5) {
  background: #fff3b8 !important; /* gáz */
  color: #1f2d3d !important;
}
.service-link-grid {
  max-width: 850px;
  margin: 35px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.service-link-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  background: #1f2d3d;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: normal;
  text-align: center;
  transition: 0.2s ease;
}

.service-link-grid a:hover {
  background: #000;
}
/* MOBIL FINOMHANGOLÁS */

@media (max-width: 768px) {

  .container {
    width: 92%;
  }

  header {
    padding: 14px 0;
  }

  header .container {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .logo img {
    height: 58px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
  }

  nav ul li a {
    font-size: 15px;
  }

  header .cta-btn {
    display: none;
  }

  .hero {
    padding: 45px 0;
  }

  .hero .container {
    padding: 22px;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.25;
  }

  .hero p {
    font-size: 16px;
  }

  .hero .buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .service-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .service {
    width: 100% !important;
    aspect-ratio: auto !important;
    min-height: auto !important;
  }

  .about-row {
    flex-direction: column;
  }

  .about-photo {
    order: -1;
    width: 100%;
  }

  .about-photo img {
    max-width: 210px;
  }

  .slides img {
    height: 260px;
  }

  .prev,
  .next {
    display: none;
  }

  form {
    width: 100%;
  }

  footer {
    font-size: 13px;
  }
}