/* ====================== ОБЩИЕ СБРОСЫ ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #f5f7fa;
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ====================== КОНТЕЙНЕР ====================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================== ШАПКА ====================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: #004aad;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 10px 30px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header .logo {
    height: 60px;
    margin: 0;
    margin-bottom: 5px;
}

.auth-links {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.auth-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: 500;
}

.auth-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ====================== БОКОВАЯ ПАНЕЛЬ ====================== */
.sidebar {
    position: fixed;
    top: 100px;
    left: 0;
    bottom: 0;
    width: 250px;
    background: #003b8a;
    padding-top: 30px;
    z-index: 999;
    overflow-y: auto;
}

.sidebar a {
    display: block;
    color: white;
    padding: 15px 25px;
    font-weight: 500;
    transition: 0.3s;
}

.sidebar a span {
    display: inline; /* ← ТЕКСТ ВИДЕН НА ДЕСКТОПЕ */
}

.sidebar a:hover,
.sidebar a.active {
    background: #ff6b00;
    padding-left: 35px;
}

/* ====================== ОСНОВНОЙ КОНТЕНТ ====================== */
.main {
    margin-left: 250px;
    margin-top: 100px;
    padding: 40px;
    min-height: calc(100vh - 100px);
}

/* ====================== КНОПКИ ====================== */
.btn {
    background: #ff6b00;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 500;
    display: inline-block;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn:hover {
    background: #e55a00;
}

/* ====================== ГЕРОЙ ====================== */
.hero {
    background: url('/img/hero.jpg') center/cover no-repeat;
    height: 90vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    text-shadow: 0 0 15px rgba(0,0,0,0.8);
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* ====================== СЕКЦИИ ====================== */
section {
    padding: 80px 0;
}

h2 {
    color: #004aad;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.2rem;
}

/* ====================== О ВРАЧЕ ====================== */
.about .container {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.about-list {
    margin: 20px 0;
    line-height: 1.8;
}

.doc-photo {
    border-radius: 50%;
    width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ====================== КАРТОЧКИ УСЛУГ ====================== */
.cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.card {
    background: white;
    width: 300px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.card h3 {
    color: #004aad;
    margin: 15px 0 10px;
    font-size: 1.3rem;
}

.card p {
    color: #666;
    font-size: 0.95rem;
}

/* ====================== ОТЗЫВЫ ====================== */
.review {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin: 20px 0;
    max-width: 700px;
}

/* ====================== КОНТАКТЫ ====================== */
.contact form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.contact input,
.contact button {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: none;
    border-radius: 6px;
}

.contact input {
    border: 1px solid #ccc;
}

.contact button {
    background: #ff6b00;
    color: white;
    cursor: pointer;
    font-weight: 500;
}

.contact .success {
    color: #a8ff6b;
    margin-top: 10px;
    font-weight: 500;
}

/* ====================== АДАПТИВ ====================== */
@media (max-width: 900px) {
    .sidebar {
        width: 80px;
    }
    .sidebar a {
        padding: 15px;
        text-align: center;
        font-size: 0.9rem;
    }
    .sidebar a span {
        display: none; /* ← ТОЛЬКО НА МОБИЛЬНОЙ! */
    }
    .main {
        margin-left: 80px;
    }
}

@media (max-width: 600px) {
    .header {
        justify-content: center;
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    .header img {
        height: 60px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
}
