/* Общие стили */
:root {
    --primary-color: #007bff; /* Синий */
    --secondary-color: #6c757d; /* Серый */
    --accent-color: #28a745; /* Зеленый */
    --text-color: #333;
    --light-text-color: #f8f9fa;
    --background-light: #f4f7f6;
    --background-dark: #343a40;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 2.8em;
}

h2 {
    font-size: 2.2em;
}

h3 {
    font-size: 1.6em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3; /* Чуть темнее */
    text-decoration: none;
}

/* Header */
.header {
    background-color: var(--background-dark);
    color: var(--light-text-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo a {
    color: var(--light-text-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    text-decoration: none;
}

.header .nav ul {
    list-style: none;
    display: flex;
}

.header .nav ul li {
    margin-left: 30px;
}

.header .nav ul li a {
    color: var(--light-text-color);
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease;
    text-decoration: none;
}

.header .nav ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://source.unsplash.com/random/1920x1080/?technology,network') no-repeat center center/cover;
    color: var(--light-text-color);
    text-align: center;
    padding: 150px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--light-text-color);
}

.hero p {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections General */
section {
    padding: 80px 0;
    text-align: center;
}

section:nth-child(even) {
    background-color: var(--background-light);
}

section:nth-child(odd) {
    background-color: #ffffff;
}

/* About Us */
.about-us .about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about-us .about-content p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-item i {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-item p {
    font-size: 1em;
    color: var(--secondary-color);
}

/* Call to Action */
.call-to-action {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 80px 0;
}

.call-to-action h2 {
    color: var(--light-text-color);
    font-size: 2.5em;
}

.call-to-action p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.call-to-action .btn {
    background-color: var(--accent-color);
}

.call-to-action .btn:hover {
    background-color: #218838;
}

/* Contact Section */
.contact p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.contact-info {
    margin-top: 30px;
    margin-bottom: 40px;
}

.contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-info p i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.3em;
}

.contact-info a {
    color: var(--text-color);
}

.contact-info a:hover {
    color: var(--primary-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.contact-form button {
    align-self: flex-start; /* Кнопка будет слева */
    width: auto;
}


/* Footer */
.footer {
    background-color: var(--background-dark);
    color: var(--secondary-color);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .header .nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header .nav ul li {
        margin: 0 10px 10px 10px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.4em;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .contact-info p {
        flex-direction: column;
        align-items: center;
    }

    .contact-info p i {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .contact-form button {
        align-self: stretch; /* Кнопка на всю ширину */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .header .logo a {
        font-size: 1.5em;
    }

    .header .nav ul li {
        margin: 0 8px 8px 8px;
        font-size: 0.9em;
    }
}