/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #1a252f;
}

/* Шапка */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    display: inline-block;
    margin-right: 40px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-right: 20px;
}

.main-nav a {
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2c3e50;
}

/* Первый экран */
.hero {
    background-color: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #7f8c8d;
}

.consultation-form {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.consultation-form h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

/* Почему мы */
.why-us {
    padding: 80px 0;
    text-align: center;
}

.why-us h2 {
    font-size: 32px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.feature {
    flex: 0 0 calc(33.333% - 20px);
    margin-bottom: 30px;
    padding: 20px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Отзывы */
.testimonials {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.testimonials h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.testimonial-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.testimonial {
    flex: 0 0 calc(33.333% - 20px);
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial span {
    font-weight: bold;
    color: #7f8c8d;
}

/* FAQ */
.faq {
    padding: 80px 0;
}

.faq h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background-color: #f8f9fa;
    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.show {
    padding: 15px 20px;
    max-height: 500px;
}

/* Форма подписки */
.newsletter {
    background-color: #2c3e50;
    padding: 60px 0;
    color: white;
    text-align: center;
}

.newsletter h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.newsletter p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.8;
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Футер */
.footer {
    background-color: #1a252f;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    margin: 0 15px;
    color: #bdc3c7;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #7f8c8d;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .features, .testimonial-list {
        flex-direction: column;
    }
    
    .feature, .testimonial {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav li {
        margin-bottom: 10px;
    }
}
/* Articles Page Styles */
.articles-page {
    padding: 60px 0;
}

.articles-page h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

.articles-page .subtitle {
    font-size: 18px;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 40px;
}

.articles-filter {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: bold;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-image-link {
    display: block;
    height: 200px;
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #7f8c8d;
}

.article-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.article-title a {
    color: #2c3e50;
    text-decoration: none;
}

.article-title a:hover {
    color: #3498db;
}

.article-excerpt {
    color: #555;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover:not(.disabled) {
    background: #f8f9fa;
}

.pagination-btn.active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message, .no-articles {
    text-align: center;
    padding: 30px;
    color: #e74c3c;
    font-size: 18px;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-filter {
        flex-direction: column;
    }
}
/* Article Specific Styles */
.article-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.article-content {
    grid-column: 1;
}

.article-header {
    margin-bottom: 40px;
}

.breadcrumbs {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.breadcrumbs a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #7f8c8d;
    font-size: 14px;
    margin: 15px 0 25px;
}

.article-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

.article-body {
    line-height: 1.7;
    font-size: 16px;
}

.article-body h2 {
    font-size: 24px;
    margin: 35px 0 20px;
    color: #2c3e50;
}

.article-body h3 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: #2c3e50;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 10px;
}

.intro {
    font-size: 18px;
    line-height: 1.8;
    color: #34495e;
    font-weight: 500;
}

.info-box, .warning-box {
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.info-box {
    background-color: #e8f4fd;
    border-left: 4px solid #3498db;
}

.warning-box {
    background-color: #fde8e8;
    border-left: 4px solid #e74c3c;
}

.info-box h3, .warning-box h3 {
    margin-top: 0;
    color: inherit;
}

.card-comparison {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin: 30px 0;
}

.comparison-header, .comparison-row {
    display: grid;
    grid-template-columns: 150px 1fr 100px 80px 1fr;
    padding: 15px;
    align-items: center;
}

.comparison-header {
    background-color: #2c3e50;
    color: white;
    font-weight: bold;
}

.comparison-row:nth-child(even) {
    background-color: #f9f9f9;
}

.bank-name img {
    max-height: 30px;
    max-width: 100%;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.category {
    text-align: center;
    padding: 20px 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category .icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.category h4 {
    margin: 10px 0 5px;
}

.alternatives-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.alternatives-table th, .alternatives-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.alternatives-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.alternatives-table tr:hover {
    background-color: #f5f5f5;
}

.conclusion {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
}

.conclusion h3 {
    margin-top: 0;
    color: #27ae60;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.tags a {
    display: inline-block;
    padding: 5px 10px;
    background: #f1f1f1;
    border-radius: 4px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #3498db;
    text-decoration: none;
}

.tags a:hover {
    background: #e0e0e0;
}

.share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.share-buttons span {
    font-weight: bold;
    font-size: 14px;
}

.social {
    padding: 8px 15px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.social.vk {
    background-color: #4a76a8;
}

.social.tg {
    background-color: #0088cc;
}

.social.ok {
    background-color: #ee8208;
}

.related-articles {
    grid-column: 2;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.related-article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.related-image {
    display: block;
    height: 150px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-article:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 15px;
}

.related-content h4 {
    margin: 0 0 10px;
    font-size: 16px;
}

.related-content h4 a {
    color: #2c3e50;
    text-decoration: none;
}

.related-content h4 a:hover {
    color: #3498db;
}

.related-content p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

@media (max-width: 900px) {
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .related-articles {
        grid-column: 1;
        margin-top: 50px;
    }
    
    .comparison-header, .comparison-row {
        grid-template-columns: 100px 1fr 80px 70px 1fr;
        font-size: 14px;
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .card-comparison {
        overflow-x: auto;
    }
    
    .comparison-header, .comparison-row {
        width: 700px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .article-footer {
        flex-direction: column;
    }
}
/* Digital Ruble Specific Styles */
.image-caption {
    font-size: 14px;
    color: #7f8c8d;
    text-align: center;
    margin-top: 5px;
    font-style: italic;
}

.info-box.important {
    background-color: #fff8e6;
    border-left: 4px solid #ffc107;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
}

.comparison-table .comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid #eee;
}

.comparison-table .comparison-row.header {
    font-weight: bold;
    background-color: #f8f9fa;
}

.comparison-table .comparison-row > div {
    padding: 12px 15px;
}

.myth-reality {
    margin: 30px 0;
}

.myth-block {
    margin-bottom: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.myth-block h3 {
    background-color: #f8f9fa;
    margin: 0;
    padding: 15px;
    font-size: 18px;
    color: #e74c3c;
}

.reality {
    padding: 15px;
    background-color: white;
}

.reality h4 {
    color: #27ae60;
    margin: 0 0 10px;
}

.changes-timeline {
    position: relative;
    padding-left: 30px;
    margin: 40px 0;
}

.changes-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #3498db;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item .date {
    position: absolute;
    left: -30px;
    top: 0;
    width: 60px;
    text-align: right;
    padding-right: 15px;
    font-weight: bold;
    color: #2c3e50;
}

.timeline-item .content {
    padding-left: 40px;
}

.timeline-item .content h4 {
    margin-top: 0;
    color: #2c3e50;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.pros {
    background-color: #f0f9f0;
    padding: 20px;
    border-radius: 8px;
}

.cons {
    background-color: #f9f0f0;
    padding: 20px;
    border-radius: 8px;
}

.pros h3 {
    color: #27ae60;
}

.cons h3 {
    color: #e74c3c;
}

.expert-opinion {
    display: flex;
    gap: 25px;
    align-items: center;
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
}

.expert-opinion img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.expert-text blockquote {
    font-size: 18px;
    font-style: italic;
    margin: 0 0 15px;
    position: relative;
    padding-left: 20px;
}

.expert-text blockquote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 40px;
    color: #3498db;
    opacity: 0.3;
}

.expert-info {
    font-size: 14px;
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .expert-opinion {
        flex-direction: column;
        text-align: center;
    }
    
    .expert-text blockquote {
        padding-left: 0;
    }
    
    .expert-text blockquote::before {
        display: none;
    }
}
/* Contacts Page Styles */
.contacts-page {
    padding: 60px 0 80px;
}

.contacts-page h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.contacts-page .subtitle {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 40px;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.breadcrumbs a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #1a5276;
    text-decoration: underline;
}

.breadcrumbs span {
    color: #95a5a6;
}

/* Contacts Grid */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.contact-info h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #3498db;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.contact-item p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #1a5276;
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #2980b9;
    text-decoration: none;
}

/* Contact Form */
.contact-form-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-form-section h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.contact-form-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #3498db;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #3498db;
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    background-color: #3498db;
    transition: background-color 0.3s;
}

.contact-form .btn:hover {
    background-color: #2980b9;
}

/* Map Section */
.map-section {
    margin-bottom: 60px;
}

.map-section h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.map-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #3498db;
}

.map-container {
    height: 400px;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.transport-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.transport-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.transport-info ul {
    list-style: none;
}

.transport-info li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.transport-info li::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: #3498db;
    font-weight: bold;
}

.transport-info strong {
    color: #2c3e50;
}

/* Work Hours */
.work-hours {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.work-hours h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.work-hours h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #3498db;
}

.work-hours ul {
    list-style: none;
}

.work-hours li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.work-hours li::before {
    content: '✓';
    position: absolute;
    left: 5px;
    color: #27ae60;
    font-weight: bold;
}

.work-hours strong {
    color: #2c3e50;
}

/* Responsive */
@media (max-width: 900px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info,
    .contact-form-section {
        padding: 25px;
    }
}

@media (max-width: 600px) {
    .contacts-page {
        padding: 40px 0 60px;
    }
    
    .contacts-page h1 {
        font-size: 28px;
    }
    
    .contacts-page .subtitle {
        font-size: 16px;
    }
    
    .contact-info h2,
    .contact-form-section h2,
    .map-section h2,
    .work-hours h2 {
        font-size: 22px;
    }
    
    .contact-item h3 {
        font-size: 17px;
    }
}