/* 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 */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--bg-light);
    color: var(--text-light);
    padding: 0;
    margin: 0;
    margin-bottom: 60px;
    position: relative;
    overflow: visible;
    height: 144px;
}

.header .container {
    max-width: 1440px;
    height: 144px;
    padding: 0 20px;
    position: relative;
    overflow: visible;
}

.header .container::after {
    content: '';
    position: absolute;
    right: 0; 
    top: 0;
    width: 420px;
    height: 420px;
    background-image: url('img/watermark.png');
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: top right;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}


.header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
    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;
}

.logo img {
    width: 297px;
    height: auto;
}

.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;
    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;
}

.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;
}

    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) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

@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;
  }
}

    .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: 40px;
    }

    .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%;
    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%
    );
  }
}

.services-grid .service-card:nth-child(1) .card-content p,
.services-grid .service-card:nth-child(2) .card-content p {
  color: #EEF2FF;
}

/* Dimenzió-Med címsor – szövegoszlop (2. oszlop) */
.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;
}

/* Mobil finomhangolás */
@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 {
    padding-left: 0 !important;
  }

  .logo {
    margin-left: 0 !important;
    background-position: left top !important; 
    background-size: contain;                 
    /* Ha a .logo szélessége túl nagy, finomítsd:
       width: clamp(220px, 50vw, 460px); 
  }


  .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; 
}

html, body {
  overflow-x: hidden; 
}

@media (max-width: 768px) {
  .header {
    height: auto;
    margin-bottom: 40px;
    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 {
    /* TILOS a negatív margó mobilon */
    margin-left: 0 !important;
    margin-top: 0;
    padding: 0;          
    border-radius: 0;    
    width: 100vw;       
    max-width: 100vw;
    height: auto;
    aspect-ratio: 46 / 17; /* az eredeti 460x170 arány megtartása */
    background-image: url('img/bg.svg');    /* marad a meglévő svg */
    background-repeat: no-repeat;
    background-position: left top;          /* bal felső sarok */
    background-size: 100% 100%;             /* teljes kitöltés */
    z-index: 2;
  }

  /* A tényleges logó bitmap/SVG képe a háttérre kerül */
  .logo img {
    /* A logó ne tolja szét a magasságot; helyezzük belül középre */
    width: min(72vw, 280px); /* rugalmas, de ésszerű korlát */
    height: auto;
    margin: clamp(12px, 3vw, 20px) 0; /* kis függőleges légzés */
    align-self: flex-start;           /* balra igazítva, az alakzat elején */
    transform: translateX(clamp(12px, 3vw, 20px)); /* ne érjen teljesen a szélhez */
  }

  /* A header leírás ne okozzon túlnyúlást */
  .header-description {
    width: 100%;
    padding: 0 clamp(12px, 3vw, 20px);
    height: auto;
  }

  /* Biztonság: a watermark mobilon már nálad is kikapcsolva */
  .header .container::after { display: none; }
}

@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;
  }
}

/* ==== FOOTER LOGÓ — mobilon arányos, torzítás nélkül ==== */
@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;
    /* Átfedés a határon: csúsztassuk 1px-szel túl a bottom-ot */
    bottom: -1px;                      /* eddig: bottom: 0; */
    /* A magasság legyen kicsit rugalmasabb és nagyobb mobilon */
    height: calc(40% + 2px);           /* eddig: 150px; */
    pointer-events: none;
    /* A gradient fusson rá rendesen a kártyaszínre */
    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%
    );
  }

  /* A tartalom blokk kapjon saját háttérszínt,
     és csússzon fel 1px-szel, így biztosan nincs optikai rés */
  .card-content {
    background-color: var(--primary-blue); /* eddig: transparent */
    margin-top: -1px;                      /* kicsi átfedés a kép overlay-vel */
  }

  /* Biztonság: a kép legyen pontosan kitöltve, ne hagyjon inline 'gép' sortörést */
  .card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Kifejezetten a nagyon kis mobilokra */
@media (max-width: 480px) {
  .footer-logo img {
    max-width: 50vw;          /* még szűkebb képernyőn kisebb max */
    height: auto !important;  /* felülírja a korábbi height:75px-t */
  }
}

@media (max-width: 768px) {
  .logo {
    display: flex;              /* marad a flex */
    justify-content: flex-start;/* balra rendezés */
    align-items: flex-start;    /* feljebb (felső élhez) igazítás */
    gap: 0;                     /* ne tegyen közöket köré */
  }

  .logo img {
    margin: 0 !important;       /* ne mozdítsa el a layoutot */
    padding: 0;                 /* ha kell kis belső tér, lásd lent */
    width: min(72vw, 280px);    /* rugalmas méret, maradhat */
    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;
  }
}

/* Print styles */
@media print {
    .header,
    .footer {
        background-color: transparent;
        color: black;
    }

    .btn {
        border: 1px solid black;
    }
}
