/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #6d4aff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #5a3ae0;
}

/* Header styles */
.header {
    background-color: #1a1a2e;
    color: white;
    padding: 20px 0;
}

.logo-link {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.logo-link span {
    color: #6d4aff;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin-top: 15px;
}

.main-nav li {
    margin-right: 20px;
}

.main-nav a {
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover {
    color: #6d4aff;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://astro-vibe.ru/images/back.jpg') no-repeat center center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Form styles */
.forecast-form, .newsletter {
    padding: 60px 0;
    text-align: center;
}

.forecast-form {
    background-color: white;
}

.newsletter {
    background-color: #f0f0f7;
}

.contact-form, .subscribe-form {
    max-width: 500px;
    margin: 30px auto 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

/* Features section */
.features {
    padding: 60px 0;
    text-align: center;
}

.features h2 {
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    color: #6d4aff;
    margin-bottom: 15px;
}

/* Footer styles */
.footer {
    background-color: #1a1a2e;
    color: white;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    margin: 0 15px 10px;
    color: #aaa;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #aaa;
    font-size: 14px;
}
/* Services section */
.services {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.service-item h3 {
    color: #6d4aff;
    margin-bottom: 15px;
}

.service-item p {
    margin-bottom: 20px;
    color: #666;
}

.btn-outline {
    background: transparent;
    border: 2px solid #6d4aff;
    color: #6d4aff;
}

.btn-outline:hover {
    background: #6d4aff;
    color: white;
}

/* FAQ section */
.faq {
    padding: 60px 0;
    background-color: white;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-weight: bold;
    position: relative;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.faq-question.active:after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 20px 0;
}
/* Page header */
.page-header {
    background-color: #1a1a2e;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
}

/* Text blocks */
.text-block {
    margin-bottom: 40px;
}

.text-block h2 {
    color: #6d4aff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.text-block p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Lists */
.policy-list, .principles-list {
    margin: 20px 0;
    padding-left: 20px;
}

.policy-list li, .principles-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.review-item h3 {
    color: #6d4aff;
    margin-bottom: 5px;
}

.review-date {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.review-text p {
    line-height: 1.7;
}

/* Active link in navigation */
.main-nav a.active {
    color: #6d4aff;
    position: relative;
}

.main-nav a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #6d4aff;
}

/* Active link in footer */
.footer-links a.active {
    color: #6d4aff;
}
.articles-loading {
    text-align: center;
    padding: 50px 0;
    font-size: 1.2rem;
    color: #666;
}

.articles-error {
    text-align: center;
    padding: 50px 0;
    color: #dc3545;
    font-size: 1.2rem;
}

.load-more {
    text-align: center;
    margin: 40px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-image {
    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-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    background: #6d4aff;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.article-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
}
/* Article page specific styles */
.article-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 15px;
}

.article-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    color: #aaa;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article-content h2 {
    color: #6d4aff;
    margin: 30px 0 20px;
    font-size: 1.8rem;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1.1rem;
}

.principles-list {
    margin: 20px 0;
    padding-left: 20px;
}

.principles-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-tags a {
    color: #6d4aff;
    margin-right: 10px;
}

.article-tags a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .article-content {
        padding: 0 10px;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}