.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* тільки головне меню */
}

div.menu-toggle{
    display: none;
}



@font-face {
    font-family: 'MyFont';
    src: url('../fonts/MyFont.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


.map-container {
  position: relative;
  width: 100%;
  max-width: 800px;   
  margin: 20px auto 0;
  padding-bottom: 56.25%; 
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}


.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

html{
    background-image: url("../img/background.png");
    font-family: 'MyFont', sans-serif;
    background-repeat: no-repeat;
    background-attachment:fixed;
    background-size: 100%;
}

.header {
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
    border-radius: 10px;
    width: s;
}


.logo img {
    height: 50px;       
    width: auto;       
}

.menu {
    flex: 1;
    display: flex;
    justify-content: center; 
    margin: 0;
    padding: 0;
}



.menu li {
    position: relative; /* для позиціонування підменю */
    margin: 0 15px;
}


.menu a {
    text-decoration: none;
    color: white;
    transition: 0.3s;
    font-size: 20px;
    text-transform: uppercase;
    padding: 10px 15px;
}

.menu a:hover {
    background-color: #2d2d2d;
    border-radius: 5px;
}


.contacts {
    display: flex;
    flex-direction: column;
    text-align: right;
    min-width: 200px;
}

.contacts a {
    color: white;
    text-decoration: none;
    margin-bottom: 4px;
    transition: 0.3s;
}

.contacts span {
    color: #ccc;
    font-size: 14px;
}


.main-content {
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  width: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start; 
  padding: 30px;
  box-sizing: border-box;
}


.text-block {
  background-color: #333333c4;
  color: white;
  padding: 30px 40px;
  border-radius: 10px;
  max-width: 1000px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  overflow: hidden; 
  box-sizing: border-box;
}

.text-block li{
    text-align: left;
}


.text-block h1 {
    margin-bottom: 20px;
    font-size: 36px;
}

.text-block p {
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.5;
}


.footer {
    background: #333;
    color: #eee;
    padding: 40px 20px;
    margin-top: 50px;
    border-radius: 5px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-block {
    flex: 1 1 250px;
    margin: 10px;
}

.footer-block h3 {
    margin-bottom: 15px;
    color: white;
}

.footer-block a {
    color: #eee;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-block a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
    font-size: 14px;
    color: #aaa;
}


div.block-service{
    background-color: #747474af;
    border-radius: 5px;
    display: flex;
    padding: 20px;
}

div.block-service img{
    background-color: #747474af;
    border-radius: 5px;
    width: 50%;
}

div.block-service li{
    font-size: 20px;
}

div.block-main{
    background-color: #747474af;
    border-radius: 5px;
    font-size: 15px;
    padding: 20px;
}

div.style-block{
    background-color: #2e2e2e;
    border-radius: 5px;
    font-size: 20px;
    
}

.block-service ul{
    line-height:50px ;
}

.block-service a{
    text-decoration: none;
    color: white;
    background-color: #aaa;
    padding: 10px;
    border-radius: 5px;
    gap:3px;
}

.block-service a:hover{
    text-decoration: none;
    color: white;
    background-color: #727272;
    padding: 10px;
    border-radius: 5px;
    gap:3px;
}

@media (max-width: 768px) {

    h1.welcome{
        font-size: large;
    }

    html{
    background-image: url("../img/background.png");
    font-family: 'MyFont', sans-serif;
    background-repeat: no-repeat;
    background-attachment:fixed;
    background-size: auto;
    font-size: 12px;
    }


    .header {
        flex-direction: column; 
        align-items: flex-start;
    
    }

    .menu {
        width: 100%;
    }

    .menu ul {
        flex-direction: column;
        width: 100%;
        display: none;
    }

    .menu.show ul {
        display: flex; 
    }

    .menu li {
        margin: 10px 0;
    }

    .menu a {
        padding: 10px;
        width: 100%;
        display: block;
        box-sizing: border-box;
        text-align: left;
    }

    
    div.menu-toggle{
        display: block;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 28px;
        color: white;
        margin-left: auto;
        margin-top: 10px;
    }


    .contacts {
        width: 100%;
        text-align: left;
        margin-top: 10px;
    }

    div.block-service{
        background-color: #747474af;
        border-radius: 5px;
        padding: 20px;
        display: block;
    }

    div.block-service img{
        background-color: #747474af;
        border-radius: 5px;
    }

    div.logo{
        display: flex;

    }
    div.logo img{  
    height: 50px;       
    width: 90%;          
    }
}

