:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--light-color);
}

/* Common styles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

/* Header styles */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Language switcher */
.language-switcher {
    position: relative;
    font-size: 0.875rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 8rem;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
    max-height: 2rem;
    /* width: 100%; */
}

.selected-language:hover {
    border-color: var(--primary-color);
}

.chevron-down {
    transition: transform 0.2s;
}

.language-switcher.active .chevron-down {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 50;
    min-width: 150px;
}

.language-switcher.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.lang-option:first-child {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.lang-option:last-child {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.lang-option:hover {
    background-color: #f8fafc;
}

.lang-option.active {
    background-color: #f1f5f9;
    font-weight: 500;
}

/* Hero section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/img/hero_section.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
    margin-top: 60px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Buttons and CTAs */
.cta-button,
.submit-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover,
.submit-button:hover {
    background-color: var(--secondary-color);
}

/* Hero buttons and social links */
.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.phone-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.phone-button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.phone-button svg {
    width: 24px;
    height: 24px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-link {
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    color: var(--primary-color);
    background-color: white;
    transform: translateY(-3px);
}

/* Services section */
.services {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid,
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    align-content: center;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    color: var(--primary-color);
    background-color: white;
    /* Сохраняем белый фон, если это нужно */
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Добавляем эффект подъема */
}



.service-card h3 {
    margin: 1rem 0;
    color: var(--dark-color);
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact form */
.contact {
    background-color: white;
    padding: 4rem 1rem;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px !important;
    max-height: 300px !important;
    max-width: 800px;
    width: 100% !important;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
}

.footer-contact i {
    color: var(--primary);
    width: 1rem;
    text-align: center;
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

/* Animations */
@keyframes checkmark {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.check-icon {
    position: absolute;
    right: 1rem;
    color: var(--primary-color);
    animation: checkmark 0.2s ease-in-out;
}

/* Media queries */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    nav ul {
        display: none;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }

    .phone-button {
        width: 42px;
        height: 42px;
    }

    .social-links {
        gap: 1rem;
    }
}