:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #f5f6fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.hero {
    background-image: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('https://doctor-amirova.ru/images/32.webp');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
    margin-top: 60px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.education {
    background-color: var(--light-bg);
}

.education-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.clinical-tests {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.test-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.test-card:hover {
    transform: translateY(-5px);
}

.test-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.test-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s;
}

.test-card a:hover {
    background-color: var(--secondary-color);
    color: white;
}

.useful-links {
    background-color: var(--light-bg);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.link-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.link-card:hover {
    transform: translateY(-5px);
}

.link-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.link-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
}

.warning {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: 8px;
}

.news-section {
    background-color: var(--light-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    height: 150px;
}

.submit-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #2980b9;
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
        color: white;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: var(--primary-color);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }
}

        .chat-widget {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 350px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            font-family: Arial, sans-serif;
            z-index: 1000;
            display: none;
        }

        .chat-header {
            background: #2c3e50;
            color: white;
            padding: 15px;
            border-radius: 10px 10px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .chat-header h3 {
            margin: 0;
            font-size: 16px;
        }

        .close-chat {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            font-size: 18px;
        }

        .chat-messages {
            height: 300px;
            overflow-y: auto;
            padding: 15px;
        }

        .message {
            margin-bottom: 10px;
            max-width: 80%;
        }

        .bot-message {
            background: #f0f2f5;
            padding: 10px;
            border-radius: 10px;
            margin-right: auto;
        }

        .user-message {
            background: #0084ff;
            color: white;
            padding: 10px;
            border-radius: 10px;
            margin-left: auto;
        }

        .chat-input {
            display: flex;
            padding: 15px;
            border-top: 1px solid #eee;
        }

        .chat-input input {
            flex: 1;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 20px;
            margin-right: 10px;
        }

        .chat-input button {
            background: #0084ff;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
        }

        .chat-button {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #2c3e50;
            color: white;
            border: none;
            padding: 15px 25px;
            border-radius: 30px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        .quick-replies {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            padding: 10px 15px;
        }

        .quick-reply {
            background: #f0f2f5;
            border: none;
            padding: 8px 15px;
            border-radius: 15px;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.3s;
        }

        .quick-reply:hover {
            background: #e4e6e9;
        }
        

.news-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.news-card a {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
}

.news-card a:hover {
    background-color: white;
    color: var(--secondary-color);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}


.about-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 0 0 auto;
    width: 400px;
    position: relative;
}

.doctor-photo {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.doctor-photo:hover {
    transform: scale(1.02);
}

@media (max-width: 968px) {
    .about-container {
        flex-direction: column;
        align-items: center;
    }

    .about-image {
        width: 100%;
        max-width: 400px;
        margin-top: 2rem;
    }
}


.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: #0088cc;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #006699;
}

.submit-button i {
    font-size: 1.2em;
}












    .game-container {
      max-width: 1000px;
      margin: 2rem auto;
      padding: 2rem;
      background: white;
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      font-family: 'Arial', sans-serif;
    }

    .game-header {
      text-align: center;
      color: #2c3e50;
      margin-bottom: 2rem;
    }

    .game-stats {
      display: flex;
      justify-content: space-around;
      margin-bottom: 2rem;
      padding: 1rem;
      background: #f5f6fa;
      border-radius: 8px;
    }

    .stat-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: #2c3e50;
    }

    .patient-card {
      background: #f5f6fa;
      padding: 1.5rem;
      border-radius: 8px;
      margin-bottom: 1.5rem;
    }

    .patient-info {
      margin-bottom: 1rem;
      color: #2c3e50;
    }

    .symptoms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.symptom-btn {
  padding: 0.75rem;
  border: 2px solid #3498db;
  border-radius: 4px;
  background: white;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  text-align: left;
}

.diagnosis-options {
  display: grid;

  gap: 1rem;
  margin-bottom: 1.5rem;
}



.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.test-btn {
  padding: 0.75rem;
  border: 2px solid #e74c3c;
  border-radius: 4px;
  background: white;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  text-align: left;
}

    .action-buttons {
      display: flex;
      gap: 1rem;
      justify-content: center;
    }

    .action-btn {
      padding: 0.75rem 1.5rem;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      transition: background-color 0.3s;
      font-weight: bold;
    }

    .diagnose-btn {
      background: #2ecc71;
      color: white;
    }

    .diagnose-btn:hover {
      background: #27ae60;
    }

    .skip-btn {
      background: #95a5a6;
      color: white;
    }

    .skip-btn:hover {
      background: #7f8c8d;
    }

    .feedback {
      margin-top: 1rem;
      padding: 1rem;
      border-radius: 4px;
      text-align: center;
    }

    .feedback.correct {
      background: #2ecc71;
      color: white;
    }

    .feedback.incorrect {
      background: #e74c3c;
      color: white;
    }
    .diagnosis-options {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.diagnosis-btn {
  padding: 0.75rem;
  border: 2px solid #9b59b6;
  border-radius: 4px;
  background: white;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s;
}

.diagnosis-btn:hover {
  background: #9b59b6;
  color: white;
}

.diagnosis-btn.selected {
  background: #9b59b6;
  color: white;
}

    .modal {
      display: none;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: white;
      padding: 2rem;
      border-radius: 8px;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
      z-index: 1000;
      max-width: 400px;
      width: 90%;
    }

    .modal.active {
      display: block;
    }

    .overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.5);
      z-index: 999;
    }

    .overlay.active {
      display: block;
    }


.diagnosis-options {
  margin-bottom: 1.5rem;
}

a.custom-link {
  display: inline-block;
  background-color: #fafafa;
  color: #333;
  font-size: 16px;
  padding: 10px 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

a.custom-link:hover {
  background-color: #f0f0f0;
  border-color: #999;
}
