/* Общие стили */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    margin: 0 0 20px;
}

.btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn:hover {
    background: #45a049;
}

/* Логотип-ссылка */
.logo-container {
    text-align: center;
    padding: 20px 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.logo-gradient {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #2ecc71, #27ae60, #1abc9c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
    transition: opacity 0.3s;
}

.logo-link:hover .logo-gradient {
    opacity: 0.9;
}

/* Хлебные крошки */
.breadcrumbs {
    padding: 15px 0;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.breadcrumbs a {
    color: #2ecc71;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #27ae60;
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 8px;
    color: #999;
}

/* Главная страница */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://ondoconline.ru/images/dietolog.jpg');
    background-size: cover;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.consultation-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    gap: 15px;
}

.consultation-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-success {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 20px;
    border-radius: 4px;
    max-width: 500px;
    margin: 20px auto;
    text-align: center;
}

.how-it-works {
    padding: 60px 0;
    text-align: center;
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.step-number {
    display: inline-block;
    background: #4CAF50;
    color: white;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 15px;
}

.doctors {
    padding: 60px 0;
    background: #f5f5f5;
    text-align: center;
}

.doctors-list {
    max-width: 800px;
    margin: 0 auto;
}

.doctor-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: left;
}

.doctor-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.doctor-info {
    flex: 1;
}

.specialization {
    color: #666;
    font-style: italic;
}

.experience, .price {
    font-weight: 500;
    margin: 5px 0;
}

.description {
    margin-top: 10px;
    color: #555;
}

.reviews {
    padding: 60px 0;
    text-align: center;
}

.reviews-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.review-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.review-text {
    font-style: italic;
}

.review-author {
    font-weight: 600;
    margin-top: 10px;
}

/* Страницы политик */
.policy-container {
    padding: 40px 0 60px;
    min-height: 70vh;
}

.policy-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
}

.policy-content h3 {
    color: #2ecc71;
    margin-top: 25px;
}

.policy-content ul {
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 10px;
}

.last-updated {
    color: #777;
    font-style: italic;
    margin-bottom: 30px;
}

/* Блог */
.blog-container {
    padding: 40px 0 60px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-meta {
    color: #777;
    font-size: 0.9rem;
    margin: 10px 0;
}

.article-excerpt {
    color: #555;
    margin-bottom: 20px;
}

.read-more {
    color: #2ecc71;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

/* Футер */
.footer {
    background: #333;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .article-card {
        max-width: 100%;
    }
    
    .article-image {
        height: 180px;
    }
    
    .article-content {
        padding: 18px;
    }
    
    .read-more-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
	
	/* Стили для страницы статьи */
.blog-container {
    padding: 40px 0 60px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Улучшенные стили для карточек статей */
.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
}

.article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-content h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.4;
    color: #333;
}

.article-excerpt {
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 0.85rem;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.read-more-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #2ecc71;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: #27ae60;
}

.error {
    color: #d9534f;
    padding: 20px;
    text-align: center;
    grid-column: 1 / -1;
}

.loading {
    text-align: center;
    padding: 20px;
    grid-column: 1 / -1;
}
	
	@media (max-width: 768px) {
		.article-content {
			padding: 20px;
		}
		
		.article-meta {
			flex-direction: column;
			gap: 5px;
			text-align: center;
		}
	}
}