﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #213368;
    --footer-blue: #2a3f7d;
    --light-blue: #5ec4db;
    --bg-light: #eef2ff;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --card-overlay: rgba(33, 51, 104, 0.85);
}

body {
  font-family: 'Fira Sans', sans-serif;
  line-height: 1.5; /* eddig 1 volt */
  color: var(--text-dark);
  background-color: var(--bg-light);
  margin: 0;
  padding: 0;
}

html {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 0px;
}

.header {
    background-color: var(--bg-light);
    color: var(--text-light);
    padding: 0;
    margin: 0;
    margin-bottom: 80px;
    position: relative;
    overflow: visible;
    height: 60px;
}

.header .container {
    max-width: 1440px;
    height: 100px;
    padding: 0 0px;
    position: relative;
    overflow: visible;
}

.header .container::after {
  content: '';
  position: absolute;
  top: 0px;
  left: 800px;
  width: 600px;
  height: 600px;
  background-image: url('img/watermark.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top left;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 0;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 10px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url('img/bg.svg');
    background-size: 460px 170px;
    background-position: top center;
    background-repeat: no-repeat;
    width: 460px;
    height: 170px;
    padding: 0;
    position: relative;
    z-index: 2;
    margin-top: -30px !important;
}

.logo img {
    width: 297px;
    height: auto;
}

@media (min-width: 769px) {
  .logo {
    position: relative; 
    z-index: 2;        
  }
  .logo::before {
    content: "";
    position: absolute;
    top: -18px;
    left: -90vw;           
    width: 100vw;           
    height: 170px;           
    background: var(--footer-blue); 
    z-index: -1;          
    pointer-events: none;  
  }
}
``

.logo-text {
    display: none;
}

.header-description {
    flex: 1;
    display: flex;
    align-items: center;
    height: 144px;
}

.header-description p {
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 400; 
    color: var(--footer-blue);
}

/* Services Section */
.services-section {
    padding: 0 0 80px 0;
    position: relative;
    z-index: 1;
}

.services-section .container {
    max-width: 1152px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--footer-blue);
    margin-bottom: 50px;
    padding: 0 20px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 552px);
    gap: 48px;
    margin-bottom: 40px;
    justify-content: space-between;
}

/* Service Card */
.service-card {
    background: var(--primary-blue);
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 552px;
    height: 590px;
    display: flex;
    flex-direction: column;
}

.card-image {
    position: relative;
    width: 552px;
    height: 366px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top,
        var(--primary-blue) 0%,      
        var(--primary-blue) 0%,     
        transparent 100%             
    );
    pointer-events: none;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    background-color: transparent;
    color: var(--text-light);
    padding: 0 0 30px 0;
    position: relative;
    z-index: 1;
    width: 504px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
}

.card-content h3 {
    font-size: 2.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-content p {
    font-size: 1rem;
    color: #eef2ff;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 350;
}

/* Buttons */
.btn {
    display: inline-flex;
    font-family: 'Fira Sans', sans-serif;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
    width: 171px;
    height: 56px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.btn-light {
    background-color: #44C8F5;
    color: var(--primary-blue);
    width: 171px;
    height: 56px;
}

.btn-light:hover {
    background-color: #32b8e5;
}

.btn-dark {
    background-color: var(--footer-blue);
    color: var(--text-light);
    width: 171px;
    height: 56px;
    padding: 0;
}

.btn-dark:hover {
    background-color: #1a2850;

}

/* Dimenzió-Med Card */
.dimenzio-card {
    background: transparent;
    border-radius: 20px;
    overflow: visible;
    margin-top: 40px;
    height: 312px;
    width: 1152px;
	margin-left: auto;
margin-right: auto;
}

.dimenzio-content {
    display: grid;
    grid-template-columns: 512px 640px;
    gap: 0;
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 312px;
    width: 1152px;
}

.dimenzio-image {
  height: 312px;
  width: 512px;
  position: relative; 
  overflow: hidden;   
}

.dimenzio-image::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;              
  height: 100%;
  width: 300px;          

  background: linear-gradient(to left,
    rgba(215, 224, 254, 1) 0%,  
    rgba(215, 224, 254, 0.50) 20%, 
    rgba(215, 224, 254, 0.00) 60%, 
    rgba(215, 224, 254, 0.00) 100%
  );

  pointer-events: none;  
  z-index: 2;            
}

.dimenzio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dimenzio-text {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #D7E0FE;
    width: 640px;
    height: 312px;
}

.dimenzio-text h3 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #5ec4db;
  margin-bottom: 20px;
}

.dimenzio-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background-color: var(--footer-blue);
    color: var(--text-light);
    padding: 50px 0 30px;
  overflow: hidden;
}

.footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;         
  width: 100%;             
  box-sizing: border-box;
}

.footer-content,
.footer-nav,
.footer-bottom-row {
  width: 100% !important; 
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.footer-separator {
    width: 100% !important;
    height: 1px;
    background-color: #344C95;
    margin: 0 auto 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 69px;
}

.footer-logo img {
    width: 300px;
    height: auto;
}

.footer-logo .logo-text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.footer-tagline {
    text-align: right;
    font-style: italic;
    color: var(--light-blue);
}

.footer-tagline p {
    font-size: 1.3rem;
    line-height: 1.6;
  font-weight: 350;
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    width: 1268px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 40px;
    justify-content: flex-start;
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 1268px;
    margin-left: auto;
    margin-right: auto;
}

.footer-legal {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    flex: 1;
}

.footer-links a {
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-weight: 400;
    color: var(--text-light);
}

/* mobil finomhangolás */
@media (max-width: 768px) {
  .footer-links li,
  .footer-legal li { padding: 0 10px; }
  .footer-links li + li::before,
  .footer-legal li + li::before {
    height: 0.94em;
    margin-right: 10px;
    transform: translateY(0.03em);
  }
}

@media (max-width: 768px) {
  .header { 
    height: auto;          
    margin-bottom: 40px;  
  }
  .header .container { 
    height: auto;        
  }
  .header-description {
    height: auto;          
    padding-bottom: 10px;  
  }

  .header .container::after {
    display: none;
  }
}

.footer-legal a {
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-weight: 400;
    color: #C3D0F9;
}

.footer-nav a:hover {
    color: var(--light-blue);
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--light-blue);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dimenzio-content {
        grid-template-columns: 250px 1fr;
    }

    .dimenzio-text {
        padding: 35px;
    }
}

@media (max-width: 768px) {

  /* A szekció kapjon kis, egységes oldal-paddot,
     így vizuálisan "széltől-szélig", de mégsem ér a széléhez. */
  .services-section .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Mindig 1 oszlop (egymás alatt), középre igazítva */
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center; /* kártya középen */
  }

  /* A kártya töltse ki a rendelkezésre álló szélességet
     (a container 16px oldal-paddja adja a "kis margót") */
  .service-card {
    width: 100%;
    max-width: 100%;
   max-height: 500px;
    border-radius: 16px;
    overflow: hidden; /* a képek/címsor ne lógjanak ki */
  }

  .card-image {

    aspect-ratio: 16 / 9;
    height: auto;          
    overflow: hidden;      
    border-radius: 16px 16px 0 0;
  }

  .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;     
    object-position: center; 
    display: block;
  }

  .card-content {
    width: 100%;
    padding: 16px;
    margin: 0;
  }

  .card-content h3 {
    font-size: 1.5rem;
    margin: 0 0 8px 0;
  }
  .card-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 12px 0;
  }

  .btn, .btn-light, .btn-dark {
    width: auto;
    min-height: 44px;
    padding: 0 0px;
  }
}

@media (max-width: 768px) {
    .logo {
        border-radius: 0 0 50px 0;
        padding: 25px 30px;
        margin-left: -20px;
    }

    .logo::after {
        border-width: 0 0 80px 20px;
        top: -80px;
    }

    .header-description {
        padding: 0 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dimenzio-content {
        grid-template-columns: 1fr;
    }

    .dimenzio-image {
        min-height: 250px;
    }

    .dimenzio-text {
        padding: 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-tagline {
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links,
    .footer-legal {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-social {
        justify-content: center;
    }

    .card-content h3,
    .dimenzio-text h3 {
        font-size: 2.3rem;
    }
}

@media (max-width: 480px) {
    .logo {
        border-radius: 0 0 40px 0;
        padding: 20px 25px;
        margin-left: -20px;
    }

    .logo::after {
        border-width: 0 0 70px 18px;
        top: -70px;
    }

    .header {
        margin-bottom: 0px;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    .card-content {
        padding: 20px;
        margin-top: -60px;
    }

    .card-content h3,
    .dimenzio-text h3 {
        font-size: 2.5rem;
    }

    .card-content p,
    .dimenzio-text p {
        font-size: 0.9rem;
    }

    .dimenzio-text {
        padding: 25px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-logo img {
        width: 75px;
        height: 75px;
    }

    .footer-logo .logo-text h2 {
        font-size: 1rem;
    }

    .footer-tagline p {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {

  .footer-links {
    display: flex;
    align-items: center;
    gap: 0;
  }
  .footer-links li {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    line-height: 1.2;
  }
  .footer-links li + li::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 0.96em;
    background-color: #E0E7FF;
    margin-right: 12px;
    vertical-align: middle;
    transform: translateY(0.04em);
  }

  .footer-legal {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
  }
  .footer-legal li {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    line-height: 1.2;
  }
  .footer-legal li + li::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 0.96em;
    background-color: #E0E7FF;
    margin-right: 12px;
    vertical-align: middle;
    transform: translateY(0.04em);
  }
}

@media (min-width: 769px) {
  .footer-content {
    display: flex;
    align-items: center;        /* függőlegesen középre a soron belül */
    justify-content: flex-start;/* balról indul, a tagline-t auto toljuk jobbra */
    gap: 16px;
    height: auto;               /* ne legyen fix magasság */
    /* ha túl magas, adhatunk min-height-et, pl.: min-height: 80px; */
  }

  .footer-tagline {
    margin-left: auto;          /* ez tolja a sor jobb szélére */
    text-align: right;
    padding: 20px 16px;          /* kis belső térköz: felül-alul 8px, jobbra 16px */
    /* opcionális: szélesség korlát, hogy ne fusson át a separator alá */
    max-width: 420px;           /* finomítható: 360–480px */
  }

  .footer-tagline p {
    margin: 0;                  /* ne legyen plusz külső margó */
    line-height: 1.5;
  }
}

@media (max-width: 768px) {

  .dimenzio-card {
    width: 100%;
    height: auto;          /* ne legyen fix 312px */
    margin-top: 20px;      /* kis térköz a felső kártyák után */
    border-radius: 16px;
    overflow: hidden;
  }


.dimenzio-content {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  height: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
}

  .dimenzio-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;       
    overflow: hidden;
  }
  .dimenzio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;            
    object-position: center;      
    display: block;
  }

  .dimenzio-image::after { display: none; }

  .dimenzio-text {
    width: 100%;
    min-height: auto;             
    padding: 16px;              
    background-color: #D7E0FE;   
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .dimenzio-text h3 {
    font-size: 1.5rem;          
    font-weight: 700;
    color: #213368;             
    margin: 0 0 8px 0;
  }
  .dimenzio-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0 0 12px 0;
  }
}

@media (max-width: 768px) {
  .dimenzio-image {
    position: relative;  
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
  }

  .dimenzio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .dimenzio-image::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 40%;                
    pointer-events: none;
    z-index: 2;                   
    background: linear-gradient(
      to top,
      var(--primary-blue) 0%,
      rgba(33, 51, 104, 0) 35%,
      rgba(33, 51, 104, 0.00) 100%
    );
  }
}

.prizes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
  justify-items: center;
  margin: 30px auto 12px auto;
  max-width: 1152px;
  padding: 0 20px;
  
}

.prize-item {
  background: #D7E0FE; 
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  width: 100%;
  max-width: none;  
}

.prize-item2 {
  background: #EE3D96; 
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  width: 100%;
  max-width: none; 
  color: #fff !important;
}
.prize-item2 {
  position: relative;
  background: #EE3D96;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  z-index: 1;
}

.prize-item2::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 240, 248, 1),
    transparent 70%
  );
  animation: shine 2s linear infinite;
  z-index: -1;
}

.prize-item2::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #EE3D96;
  border-radius: inherit;
  z-index: -1;
}

@keyframes shine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
  
 } 
.prize-item2 .prize-title,
.prize-item2 .prize-subtitle {
  color: #fff;
}
.prize-item2 .prize-icon {
  filter: brightness(0) invert(1);
}

.prize-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px auto;
}

.prize-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--footer-blue);
  margin: 0 0 6px 0;
}

.prize-subtitle {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text-dark);
  margin: 0;
}

@media (max-width: 1024px) {
  .prizes-grid {
	    background: #2A3F7D;
  padding: 0px 20px;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .prizes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: stretch;
  }
  .prize-item {
    max-width: none;
	padding: 20px;
  }
}

.services-grid .service-card:nth-child(1) .card-content p,
.services-grid .service-card:nth-child(2) .card-content p {
  color: #EEF2FF;
}

.dimenzio-content > :nth-child(2) h1,
.dimenzio-content > :nth-child(2) h2,
.dimenzio-content > :nth-child(2) h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color:#213368 ;
  margin-bottom: 20px;
}

.contact-box {
  background: #2a3f7d;
  border-radius: 0px;
  padding: 60px 0px;
  max-width: 100%;
  margin: 2px auto;
  text-align: center;
}

.contact-text {
  margin: 0 0 18px 0;
  color: #fff;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.3;
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 90px;
  border-radius: 999px;
  background: #EE3D96;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  text-decoration: none;
  min-height: 64px;
  min-width: 320px;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 26px rgba(238, 61, 150, 0.30);
}

.contact-email-btn:active {
  transform: translateY(0);
}

.contact-email-btn:focus {
  outline: 2px solid var(--light-blue);
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .contact-box {
    max-width: 100%;
    margin: 22px 20px;
    padding: 26px 18px;
    border-radius: 16px;
  }

  .contact-text {
    font-size: 1.05rem;
    margin-bottom: 16px;
  }

  .contact-email-btn {
    width: 100%;
    min-width: 0;
    min-height: 62px;
    padding: 18px 26px;
  }
}

@media (max-width: 768px) {
  .dimenzio-content > :nth-child(2) h1,
  .dimenzio-content > :nth-child(2) h2,
  .dimenzio-content > :nth-child(2) h3 {
    font-size: 1.8rem;
  }
}
@media (max-width: 480px) {
  .dimenzio-content > :nth-child(2) h1,
  .dimenzio-content > :nth-child(2) h2,
  .dimenzio-content > :nth-child(2) h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .header .container::after {
    display: block !important;
    left: 50% !important;
    top: 24px !important;
    width: 320px !important;
    height: 320px !important;
    opacity: 0.22 !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transform: translateX(-50%) !important;
    z-index: 0 !important;
  }

  .header-content {
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 768px) {
  .promo-left h1 {
    font-size: 2.0rem !important;
    line-height: 1.40 !important;
  }
}

@media (max-width: 768px) {
  .header .container {
    padding-left: 0 !important;
  }

  .logo {
    margin-left: 0 !important;
    background-position: left top !important; 
    background-size: contain;
  }

  .header {
    padding-left: 0 !important;
  }
}

@media (max-width: 768px) {

  /* Az alsó sor rendezése: oszlopba, középre */
  .footer-bottom-row {
    display: flex;
    flex-direction: column;   
    align-items: center;      
    justify-content: center;
    gap: 12px;                
    width: 100%;
  }

  .footer-social {
    order: -1;               
    margin-left: 0 !important;
    width: 100%;
    display: flex;
    justify-content: center;  
    align-items: center;
    gap: 12px;               
  }

  .footer-legal {
    order: 0;
    justify-content: center;
    text-align: center;
  }
}

.footer-tagline {
  text-align: left;
  padding: 10px 20px; 
}

section.promo-section {
  max-width: 1152px;
  margin: 20px auto;
  padding-left: 20px;
  padding-right: 20px;
}
section.promo-section2 {
  max-width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
    background: #2A3F7D;
  padding: 20px 0; 
  
  }
section.promo-section .promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

section.promo-section .promo-right {
  border-radius: 12px;
  padding: 24px;
}

section.promo-section .promo-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

section.promo-section .promo-form label {
  font-size: 0.95rem;
  color: var(--primary-blue);
  display: block;
}

section.promo-section .promo-form input,
section.promo-section .promo-form select,
section.promo-section .promo-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #C3D0F9;
  border-radius: 8px;
  background: #fff;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  section.promo-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  section.promo-section .promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  section.promo-section .promo-right {
    padding: 20px;
  }
}

html, body {
  overflow-x: hidden; 
}

@media (max-width: 768px) {
  .header {
    height: auto;
    margin-bottom: -60px;
    overflow: hidden; 
  }

  .header .container {
    padding-left: 0 !important; 
    padding-right: 0 !important; 
  }

  .header-content {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    gap: 16px;
    flex-direction: column; 
  }

  .logo {
    margin-left: 0 !important;
    margin-top: 0;
    padding: 0;          
    border-radius: 0;    
    width: 100vw;       
    max-width: 100vw;
    height: auto;
    aspect-ratio: 46 / 17; 
    background-image: url('img/bg.svg'); 
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 100% 100%;           
    z-index: 2;
  }
  .logo img {
    width: min(72vw, 280px); 
    height: auto;
    margin: clamp(12px, 3vw, 20px) 0; 
    align-self: flex-start;           
    transform: translateX(clamp(12px, 3vw, 20px));
  }

  .header-description {
    width: 100%;
    padding: 0 clamp(12px, 3vw, 20px);
    height: auto;
  }

  .header .container::after { display: none; }
}

.prizes-heading {
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  margin: 18px 0 12px;
}

@media (max-width: 768px) {
  .prizes-heading {
    font-size: 1.4rem;
    margin: 14px 0 10px;
  }
}

@media (max-width: 768px) {
  .logo {
    margin-top: 0px !important;
  }
}

@media (max-width: 768px) {
  .logo {
    background-origin: border-box !important;
    background-clip: border-box !important;

    background-position-x: -12px !important;
    background-position-y: -25px !important;

    background-size: 100% 100% !important;
  }
}


@media (max-width: 768px) {
  .footer-logo {
    display: flex;
    align-items: center;      /* függőlegesen középre igazítja a képet */
    gap: 12px;                /* ha van mellette szöveg */
  }

  .footer-logo img {
    display: block;
    width: auto;              /* ne legyen fix szélesség, csak korlátok */
    max-width: 60vw;          /* rugalmasan, a viewporthoz mérten */
    height: auto !important;  /* mindig tartsa az eredeti arányt */
    max-height: 80px;         /* illeszkedjen a footer sor magasságába */
    flex-shrink: 0;           /* ne nyomja össze a flex */
    object-fit: contain;      /* ha kisebb dobozba kerül, arányosan illeszkedjen */
  }
}

/* --- MOBILON: kártya kép + tartalom találkozásánál a vékony csík megszüntetése --- */
@media (max-width: 768px) {
  /* A kép overlay-ét kicsit lejjebb húzzuk, hogy átfedjen a következő blokkal */
  .card-image {
    position: relative;
    display: block;
  }
  .card-image::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -1px; 
    height: calc(40% + 2px);          
    pointer-events: none;
    background: linear-gradient(
      to top,
      var(--primary-blue) 0%,
      rgba(33, 51, 104, 0.96) 20%,
      rgba(33, 51, 104, 0.60) 70%,
      rgba(33, 51, 104, 0.00) 100%
    );
  }

  .card-content {
    background-color: var(--primary-blue); 
    margin-top: -1px;
  }

  .card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .footer-logo img {
    max-width: 50vw;         
    height: auto !important;  
  }
}

@media (max-width: 768px) {
  .logo {
    display: flex;             
    justify-content: flex-start;
    align-items: flex-start;    
    gap: 0;                  
  }

  .logo img {
    margin: 0 !important;      
    padding: 0;                 
    width: min(72vw, 280px);   
    height: auto;
    display: block;
  }
}

@media (max-width: 768px) {
  .header-description {
    width: 100%;
    display: flex;
    justify-content: center;    
    align-items: flex-start;    
    padding: 0 16px;           
    margin-top: -8px;            
  }

  .header-description p {
    text-align: center;          
    max-width: 640px;            
    line-height: 1.5;          
    margin: 0;                   
  }
}

@media (max-width: 480px) {
  .header-description {
    margin-top: -10px;         
    padding: 0 14px;
  }
  .header-description p {
    max-width: 520px;            
    font-size: 1.05rem;        
  }
}

a:focus,
button:focus {
    outline: 2px solid var(--light-blue);
    outline-offset: 2px;
}

@media (max-width: 720px) {
  .card-image {
    width: 100%;
    aspect-ratio: 92 / 61;
    height: auto;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
  }

  .card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }
}

@media (max-width: 768px) {
  .service-card .btn,
  .service-card .btn-light,
  .service-card .btn-dark {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px 0 16px;
    min-height: 44px;
    padding: 12px 16px;
    border-radius: 10px;
  }
}

@media (max-width: 768px) {
  .service-card .btn,
  .service-card .btn-light,
  .service-card .btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    width: calc(100% - 32px);
    margin: 0 16px;
    min-height: 44px;
    padding: 12px 16px;
    border-radius: 10px;
  }

  .service-card .btn svg,
  .service-card .btn .icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
  .footer-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    gap: 12px;
    width: 100%;
  }

  .footer-social {
    order: 2;                
    margin-left: 0 !important;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  .footer-legal {
    order: 1;
    justify-content: center;
    text-align: center;
  }
}

.promo-prizes {
  background: #D7E0FE;
  border-radius: 12px;
  padding: 12px;
}

.promo-prizes p {
  margin: 12px 0 12px 0;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .promo-grid {
    gap: 28px;
  }
}

@media (min-width: 769px) {
  .promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px;
    align-items: start;
  }

  .promo-left h3 {
    display: none !important;
  }

  .promo-left form,
  .promo-left label,
  .promo-left input,
  .promo-left select,
  .promo-left textarea,
  .promo-left button {
    display: none !important;
    visibility: hidden !important;
  }

  .promo-right {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    padding: 24px;
  }
}

@media (min-width: 1024px) {
  .promo-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 768px) {
  .promo-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row;
    gap: 20px;
    align-content: start;
  }
  .promo-left {
    order: 1;
    grid-column: 1 / -1;
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0px;
  }
  .promo-right {
    order: 2;
    grid-column: 1 / -1;
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0px;
  }
  .promo-right .promo-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    width: 120%;
  }
}

@media (max-width: 768px) {
  .promo-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row;
    gap: 20px;
  }
  .promo-left { order: 1; grid-column: 1 / -1; }
  .promo-right {
    order: 2;
    grid-column: 1 / -1;
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    margin-top: 0;
  }
  .promo-right .promo-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .promo-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row;
    gap: 20px;
    align-content: start;
  }

  .promo-left {
    order: 1;
    grid-column: 1 / -1;
  }

  .promo-right {
    order: 2;
    grid-column: 1 / -1;
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 20px;
  }

  .promo-right form,
  .promo-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 80%;
  }

  .promo-form input {
    width: 100%;
  }

  .services-section--offset {
    margin-top: 40px;
  }
}

.promo-grid-4 .promo-grid {
  grid-template-areas:
    "top-left top-right"
    "bottom-left bottom-right";
}

.promo-top-left { grid-area: top-left; }
.promo-top-right { grid-area: top-right; }
.promo-bottom-left { grid-area: bottom-left; }
.promo-bottom-right { grid-area: bottom-right; }

html {
  scroll-behavior: smooth;
}

.header-description p {
  position: relative;
  z-index: 3;
  background: transparent;
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.header-content {
  align-items: flex-start;
}

.header-description {
  position: relative;
  z-index: 3;
  padding-top: 8px;
}

@media (max-width: 768px) {
  .header {
    overflow: visible !important;
  }

  .header .container {
    overflow: visible !important;
  }

  .header .container::after {
    display: block !important;
    left: 35% !important;
    top: 50x !important;
    width: 400px !important;
    height: 400px !important;
    opacity: 0.4 !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transform: translateX(-50%) !important;
    z-index: 1 !important;
  }

  .header-content {
    position: relative;
    z-index: 3;
  }
}

@media (max-width: 768px) {
  .promo-left {
    position: relative;
    z-index: 50;
  }

  .promo-left h1 {
    position: relative;
    z-index: 60;
  }

  .header .container::after {
    z-index: 0 !important;
  }
}

@media (max-width: 768px) {
  .promo-left {
    padding-top: 0px !important;
  }
}

@media (max-width: 768px) {
  .header .container::after {
    display: block !important;
    top: 70px !important;
  }
}

@media (max-width: 768px) {
  main > section.promo-section:first-of-type .promo-right {
    margin-left: -25px !important;
    margin-right: -25px! important;
  }
}

.contact-box {
  margin-bottom: 20px;
}

.reg-success {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;

  background: #EEF2FF;
  color: var(--primary-blue);
  border: 2px solid #44C8F5;
  border-radius: 16px;
  padding: 14px 18px;

  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;

  box-shadow: 0 14px 30px rgba(33, 51, 104, 0.18);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
  max-width: calc(100% - 32px);
  text-align: center;
}

.reg-success.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .reg-success {
    bottom: 16px;
    font-size: 0.98rem;
    padding: 14px 16px;
  }
}

@media (max-width: 768px) {
  .promo-left img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    left: 0;
    right: auto;
    bottom: 0;
    border-radius: 16px;
  }
}

.promo-subtitle {
  max-width: 1152px;
  margin: -64px auto 12px;
  padding: 0 20px;
}
.promo-subtitle h3 {
  margin-top: 10px;
  text-align: center;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.3;
  color:#213368;
}

#regisztracio {
  margin-bottom: 40px !important;
}

@media (max-width: 768px) {
  .promo-subtitle h3 { font-size: 1.25rem; }
}

.rules-callout {
  background: #FFF7ED;
  border: 2px solid #FB923C;
  color: #431407;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0 0 0;
  line-height: 1.6;
}
.rules-callout strong {
  color: #431407;
}
@media (max-width: 768px) {
  .rules-callout { padding: 12px 14px; }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 28, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.modal-overlay.is-open { display: flex; }
.modal-window {
  background: #EEF2FF;
  border: 2px solid #44C8F5;
  color: var(--primary-blue);
  border-radius: 16px;
  padding: 24px 22px;
  width: min(560px, calc(100% - 40px));
  text-align: center;
  box-shadow: 0 20px 60px rgba(33, 51, 104, 0.25);
}
.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  background: #44C8F5;
  color: #44C8F5;
  border-radius: 50%;
}
.success-icon svg { width: 40px; height: 40px; }
.modal-window h3 {
  margin: 6px 0 6px;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--footer-blue);
}
.modal-window p {
  margin: 0 0 16px 0;
  color: var(--primary-blue);
  line-height: 1.6;
}
body.modal-open { overflow: hidden; }
@media (max-width: 768px) {
  .success-icon { width: 64px; height: 64px; }
  .success-icon svg { width: 34px; height: 34px; }
  .modal-window { padding: 20px 18px; }
  .modal-window h3 { font-size: 1.4rem; }
}

/* Print styles */
@media print {
    .header,
    .footer {
        background-color: transparent;
        color: black;
    }

    .btn {
        border: 1px solid black;
    }
}

/* ========================================
   FORM STYLES - From Template
   ======================================== */

/* Form Consent Checkboxes */
.consents { 
  display: grid; 
  gap: 10px; 
  margin-bottom: 12px; 
}

.consents { 
  display: flex;
  flex-direction: column;
  gap: 10px; 
  margin-bottom: 12px; 
}

.consent { 
  display: flex !important;  /* inline-flex helyett flex */
  align-items: center !important;
  gap: 10px !important;
  line-height: 0.95; 
}

.consent input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  border-radius: 4px;
  accent-color: #213368;
  vertical-align: middle;
}

.consent input[type="hidden"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.consent .consent-text { 
  display: inline-block;
  position: relative; 
  top: 0 !important;  /* 5px helyett 0 */
}

.consent a { 
  color: inherit; 
  text-decoration: underline; 
}

/* Form Display Updates */
.promo-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo-form label {
  font-size: 0.95rem;
  color: #213368;
}

.promo-form input[type="text"],
.promo-form input[type="email"] {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #C3D0F9;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
}

/* Promo Right Container - Updated */
.promo-right {
  display: flex;
  align-items: stretch;
  position: relative;
}

.promo-right > div {
  width: 100%;
  border-radius: 25px;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.promo-right h2 {
  color: #2a3f7d;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  text-align: left;
}

/* Button Update */
.promo-form .btn-dark {
  margin-top: 8px;
}

/* Promo Grid - Updated */
.promo-section .container[style*="max-width:1152px"] {
  max-width: 1152px;
}

.promo-grid[style*="display:grid"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* Promo Left - Updated */
.promo-left[style*="padding-top:100px"] {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 100px;
  position: relative;
}

.promo-left img[style*="position:absolute"] {
  position: absolute;
  left: -10px;
  bottom: -30px;
  width: 620px;
  max-width: 600px;
  height: auto;
  z-index: 0;
  border-radius: 16px;
}

.promo-left h1[style*="margin-top:160px"] {
  position: relative;
  z-index: 1;
  margin-top: 160px;
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
}

.promo-left h1 span[style*="background:var(--footer-blue)"] {
  display: inline-block;
}

.promo-left h1 span[style*="border-radius:14px 14px 0 0"] {
  background: var(--footer-blue);
  color: #fff;
  border-radius: 14px 14px 0 0;
  padding: 6px 12px;
}

.promo-left h1 span[style*="border-radius:0 14px 14px 14px"] {
  background: var(--footer-blue);
  color: #EE3D96;
  border-radius: 0 14px 14px 14px;
  padding: 6px 12px;
  margin-top: -2px;
}

.promo-label {
  font-size: 0.95rem;
  color: #213368;
  display: block;
  margin-bottom: 12px;
}

.promo-input {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #C3D0F9;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
}