/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #333;
    color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.language-selector {
    margin-top: 1rem;
}

.language-selector a {
    color: #f4f4f4;
    text-decoration: none;
    margin: 0 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.language-selector a:hover {
    background-color: #555;
}

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center services horizontally */
    padding: 2rem;
}

.service {
    background-color: #444;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 1rem;
    width: 100%; /* Default width for small screens */
    max-width: 400px; /* Max width for larger screens */
    margin: 1rem; /* Margin between service blocks */
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.service img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px;
    margin-bottom: 1rem;
}

.contact {
    text-align: center;
    padding: 2rem;
}

.contact h2 {
    margin-bottom: 1rem;
}

footer {
    background-color: #222;
    color: #f4f4f4;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}
a{
    color: white;
}

/* Media Queries */
@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .language-selector a {
        font-size: 0.9rem;
    }

    .service {
        width: 100%; /* Full width on small screens */
        margin: 0.5rem 0; /* Reduced margin for better fit */
    }
}

@media (max-width: 400px) {
    .service h2 {
        font-size: 1.5rem;
    }

    .contact h2 {
        font-size: 1.5rem;
    }
}
.service img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}
/* Responsive iframe for Yandex map */
.contact iframe {
    max-width: 100%;
    max-height: 100%;
    height: auto; /* Maintain aspect ratio */
    border: none;
}


