* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding-top: 70px; /* Отступ для фиксированной шапки */
}

/* Фиксированная шапка */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #3498db;
}

.contacts {
    display: flex;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item:hover {
    color: #3498db;
}

.contact-icon {
    font-size: 18px;
}

/* Основное содержимое */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-bottom: 40px;
}

section {
    margin-bottom: 40px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 32px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

h2 {
    color: #2c3e50;
    margin: 25px 0 15px;
    font-size: 26px;
}
h3 {
    color: #2c3e50;
}

p {
    margin-bottom: 15px;
    font-size: 17px;
    text-align: justify;
}

.photo-container {
    text-align: center;
    margin: 30px 0;
}

.profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #3498db;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.services-table th {
    background-color: #2c3e50;
    color: white;
    padding: 18px 15px;
    text-align: left;
    font-size: 18px;
}

.services-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.services-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.services-table tr:hover {
    background-color: #e8f4fc;
}

.price {
    font-weight: 700;
    color: #2c3e50;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #2c3e50;
    color: white;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .contacts {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    body {
        padding-top: 110px;
    }

    .profile-photo {
        width: 250px;
        height: 250px;
    }

    .services-table {
        font-size: 14px;
    }

    .services-table th,
    .services-table td {
        padding: 12px 10px;
    }
}

@media (max-width: 480px) {
    .contacts {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    body {
        padding-top: 140px;
    }

    .profile-photo {
        width: 200px;
        height: 200px;
    }
}
