* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: #f9fbfd;
    color: #1a2e3c;
    line-height: 1.5;
}

/* ----- НАВБАР ----- */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    padding: 12px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.logo a {
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    color: #2c7a4d;
    letter-spacing: -0.5px;
}
.logo span {
    color: #1e5a3c;
}
.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: #2c3e4e;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    color: #2c7a4d;
}
.burger {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #2c7a4d;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 20px 0 10px;
    }
    .nav-links.active {
        display: flex;
    }
    .burger {
        display: block;
    }
    .navbar {
        padding: 12px 20px;
    }
}

/* ----- ОБЩИЕ БЛОКИ ----- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
}
.hero {
    background: linear-gradient(135deg, #e9f5ef 0%, #ffffff 100%);
    padding: 60px 24px;
    text-align: center;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1e5a3c;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #2c4c6e;
}
.btn {
    display: inline-block;
    background-color: #2c7a4d;
    color: white;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 24px;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background-color: #1e5a3c;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(44,122,77,0.2);
}
.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1e5a3c;
    margin-bottom: 32px;
    text-align: center;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 20px;
}
.card {
    background: white;
    border-radius: 24px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 10px 25px -8px rgba(0,0,0,0.05);
    transition: 0.2s;
    border: 1px solid #e2f0ea;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
}
.card i {
    font-size: 2.4rem;
    color: #2c7a4d;
    margin-bottom: 16px;
}
.card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}
.team-card {
    background: white;
    border-radius: 28px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    border: 1px solid #e2f0ea;
}
.team-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid #2c7a4d;
}
.team-card h3 {
    margin-bottom: 6px;
}
.team-card p {
    color: #5a7b8c;
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 32px;
    border-radius: 32px;
    box-shadow: 0 12px 24px -12px rgba(0,0,0,0.05);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0e2d8;
    border-radius: 28px;
    font-family: inherit;
    font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c7a4d;
}
.contact-info {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.contact-info div i {
    font-size: 1.6rem;
    color: #2c7a4d;
    margin-bottom: 8px;
}
.footer {
    background: #1e2a32;
    color: #cddfe7;
    padding: 40px 24px 24px;
    margin-top: 60px;
    text-align: center;
}
.footer a {
    color: #a5d6b7;
    text-decoration: none;
}
.footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.auth-card {
    max-width: 480px;
    margin: 40px auto;
    background: white;
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.05);
}
.auth-card h2 {
    text-align: center;
    color: #1e5a3c;
    margin-bottom: 24px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0e2d8;
    border-radius: 28px;
    font-size: 1rem;
}
.form-group input:focus {
    outline: none;
    border-color: #2c7a4d;
}
.btn-primary {
    background-color: #2c7a4d;
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}
.btn-primary:hover {
    background-color: #1e5a3c;
}
.profile-info {
    background: white;
    border-radius: 28px;
    padding: 24px;
    margin-top: 20px;
}
.profile-info p {
    margin: 12px 0;
}
.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    cursor: pointer;
    margin-top: 20px;
}
/* ========== ЛИЧНЫЙ КАБИНЕТ (НОВЫЕ СТИЛИ) ========== */
.profile-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}
.avatar-2d {
    flex: 1;
    min-width: 280px;
    background: white;
    border-radius: 32px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}
.avatar-canvas {
    display: flex;
    justify-content: center;
}
canvas {
    background: #eef5f0;
    border-radius: 28px;
    cursor: pointer;
    max-width: 100%;
    height: auto;
}
.selected-zone {
    margin-top: 16px;
    font-size: 0.9rem;
    color: #2c7a4d;
    text-align: center;
}
.health-form {
    flex: 2;
    min-width: 300px;
    background: white;
    border-radius: 32px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0e2d8;
    border-radius: 28px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}
.record-actions {
    display: flex;
    gap: 16px;
    margin: 24px 0;
}
.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
}
.history-section {
    margin-top: 40px;
}
.history-list {
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 32px;
    padding: 16px;
}
.history-item {
    border-bottom: 1px solid #e2f0ea;
    padding: 16px;
    cursor: pointer;
}
.history-item:hover {
    background: #f5fef9;
}
.history-date {
    font-weight: 600;
    color: #1e5a3c;
}
.verified-badge {
    background: #28a745;
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: inline-block;
    margin-left: 10px;
}
/* ----- БАННЕРЫ И КНОПКА СКОРОЙ ----- */
.banners-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}
.health-banner {
    flex: 1;
    min-width: 240px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.health-banner:hover {
    transform: translateY(-4px);
}
.health-banner img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.health-banner .banner-text {
    padding: 12px 16px;
    text-align: center;
}
.health-banner .banner-text h4 {
    margin-bottom: 4px;
    color: #1e5a3c;
}
.health-banner .banner-text p {
    font-size: 0.85rem;
    color: #4a6272;
}

.emergency-btn {
    background-color: #dc3545;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(220,53,69,0.3);
}
.emergency-btn:hover {
    background-color: #b02a37;
    transform: scale(1.02);
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: white;
    padding: 28px;
    border-radius: 32px;
    max-width: 400px;
    text-align: center;
    color: #1a2e3c;
}
.modal-content h3 {
    margin-bottom: 16px;
    color: #dc3545;
}
.modal-buttons {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    justify-content: center;
}
.modal-btn-call {
    background: #28a745;
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
}
.modal-btn-close {
    background: #6c757d;
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
    border: none;
}
.btn-small {
    padding: 6px 20px;
    font-size: 0.85rem;
    margin-top: 12px;
}
