/* HostBridge Professional Corporate Style */

:root {
    --primary-color: #003366; /* Deep Blue */
    --secondary-color: #f4f4f4; /* Light Grey */
    --accent-color: #00509d; /* Lighter Blue */
    --text-color: #333333;
    --white: #ffffff;
    --dark-grey: #2c3e50;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #003f7a;
}

section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
    border-bottom: 4px solid var(--accent-color);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card .icon {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

#about {
    background-color: #fff;
    text-align: center;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

#contact {
    background-color: var(--dark-grey);
    color: var(--white);
}

#contact h2 {
    color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 20px;
}

.contact-info {
    text-align: left;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--white);
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box; /* Важно для ширины 100% */
}

.contact-form button {
    border: none;
    cursor: pointer;
    align-self: flex-start;
}

footer {
    background-color: #1a1a1a;
    color: #888;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    nav {
        flex-direction: column;
    }
    nav ul {
        margin-top: 15px;
    }
    nav ul li {
        margin: 0 10px;
    }
}
