body{
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: 16px;
    background-color: #f4f1ec;
    color: #222;
}

.head{
    background-color: #1b2129;
    display: flex;
    justify-content:space-between;
    align-items: center;
    padding: 0 50px;
}

.logo img{
    width: 130px;
    height: auto;
}

.logo{
    height: 130px;
}

.nav{

    height: 150px;
    text-align: center;
    
}

.nav ol{
    list-style-type: none;
    vertical-align: middle;
    padding: 0;
    margin: 0;
    height: 150px;
    display: flex;
    align-items: center; 

}

.nav li{
    margin: 20px;
}

.nav li ul{
    display: block;
    list-style-type: none;
    position: absolute;
    padding: 10px;
    background-color: #1b2129;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.nav li ul li{

    margin-left: 5px;
    text-align: left;
}

.nav li:hover ul{
    max-height: 500px; /* ustawić odpowiednią wartość większą niż najwyższe menu */
    opacity: 1;
}

.nav li a{
    text-decoration: none;
    color: #f4ebd0;
    font-size: 1.3em;
    transition: all .1s ease-in-out;
}

.active{
    color: #f39247 !important;
}

a:hover{
    opacity: 0.7;

}

/* Sekcja nagłówkowa */
.about-header {
  text-align: center;
  padding: 7.5vh 2rem;
  border-bottom: 2px solid #e2e2e2;
}

.about-header h1 {
  font-size: 2.4rem;
  font-family: 'Cinzel', serif;
  margin-bottom: 0.5rem;
}

.about-header p {
  font-size: 1.2rem;
  color: #555;
}

/* Sekcja wprowadzenia */
.about-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  gap: 2rem;
  background-color: #fffdfa;
}

.about-text {
  flex: 1 1 400px;
  max-width: 600px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}

.about-image {
  flex: 1 1 300px;
  max-width: 500px;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Sekcja wartości */
.about-values {
  padding: 4rem 2rem;
  text-align: center;
}

.about-values h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.values-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.value-box {
  background-color: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  flex: 1 1 250px;
}

.value-box h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.value-box p {
  color: #333;
  font-size: 1rem;
}

/* Sekcja zespołu */
.about-team {
  padding: 4rem 2rem;
  text-align: center;
  background: #fffdfa;
}

.about-team h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.team-member {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 250px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 100%;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.team-member h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.team-member p {
  font-size: 0.95rem;
  color: #555;
}

/* Sekcja cytatu */
.about-quote {
  padding: 4rem 2rem;
  text-align: center;
  font-style: italic;
  font-size: 1.4rem;
  color: #333;
}

/* Sekcja CTA */
.about-cta {
  padding: 3rem 2rem;
  background-color: #111419;
  color: #fff;
  text-align: center;
}

.about-cta p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.cta-button {
  background-color: #f1c40f;
  color: #000;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #d4ac0d;
}


.footer {
    background-color: #1b2129;
    color: #f4ebd0;
    padding: 40px 20px 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    padding-bottom: 1vh;
}

.footer-section {
    flex: 1 1 250px;
}

.footer-section h3, .footer-section h4 {
     margin-bottom: 15px;
    color: #ffffff;
}

.footer-section p, .footer-section li {
    font-size: 0.95em;
    line-height: 1.6;
}

.footer-section ul {
     list-style: none;
    padding: 0;
}

.footer-section a {
     text-decoration: none;
     color: #f4ebd0;
    transition: color 0.3s;
}

.footer-section a:hover {
     color: #d49f3c;
}

.footer-bottom {
     text-align: center;
     padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9em;
    color: #aaa;
}

#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background-color: #d49f3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: none;
    transition: background-color 0.3s, transform 0.2s;
}

#scrollToTop:hover {
    background-color: #f39247;
    transform: scale(1.1);
}


@media (max-width: 992px) {
    .head {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .logo {
        height: auto;
    }

    .nav {
        height: auto;
        width: 100%;
    }

    .nav ol {
        flex-direction: column;
        height: auto;
        gap: 10px;
    }

    .nav li {
        margin: 10px 0;
    }

    .nav li ul {
        position: static;
        background-color: transparent;
        padding-left: 0;
        padding: 0;
    }
    .nav li ul li{
        margin-left: 0;
        text-align: center;
    }

    .nav li:hover ul {
        max-height: none;
        opacity: 1;
    }
}

/* Tablet: max 768px */
@media (max-width: 768px) {
    .about-intro, .values-grid, .team-grid {
        flex-direction: column;
        align-items: center;
    }

    .about-image, .about-text {
        max-width: 100%;
        text-align: center;
        flex: auto;
    }

    .value-box {
        max-width: 80%;
        width: 80%;
        height: auto;
        flex: auto;
    }

    .team-member {
        max-width: 80%;
        width: 80%;
        height: auto;
        flex: auto;
    }

    .about-header h1 {
        font-size: 1.8rem;
    }

    .about-header p {
        font-size: 1.1rem;
    }

    .about-values h2,
    .about-team h2 {
        font-size: 1.6rem;
    }

    .team-member img {
        max-width: 150px;
        height: auto;
    }

}

/* Smartfon: max 576px */
@media (max-width: 576px) {

    .about-text h2, .about-values h2, .about-team h2 {
        font-size: 1.6rem;
    }

    .value-box h3,
    .team-member h4 {
        font-size: 1.1rem;
    }
    blockquote{
      font-size: 1.6rem;
    }

}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0px;
    }

    .footer-section {
        width: 100%;
        flex: 1 1;
    }

}
