.card-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

.card-title {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
}

.card-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 1rem auto;
    border-radius: 15px;
}

.card-text {
    font-size: 1.2rem;
    color: #444;
    text-align: left;
    margin: 1rem 0;
    padding: 0 5%;
}

.card-links {
    text-align: center;
    margin: 1rem 0;
}

.card-links a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
}

.form-title {
    text-align: center;
    font-weight: bold;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}

.request-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-input {
    width: 100%;
    max-width: 300px;
    margin: 0.5rem 0;
    padding: 0.7rem 1rem;
    border: 1px solid #ccc;
    border-radius: 25px;
    text-align: center;
    font-size: 1rem;
    background-color: #fff;
}

.error-message {
    color: #d00;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

.privacy-text {
    font-size: 0.8rem;
    text-align: center;
    margin: 0.5rem 0 1rem 0;
    color: #666;
}

.submit-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: #bd8947;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #bc9462;
}

.arrow {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 0.8rem;
}
.article-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.article-title {
    font-size: 2rem;
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.article-content {
    text-align: center;
}

.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 0 auto 1rem auto;
    display: block;
}

.article-text {
    font-size: 1.2rem;
    color: #444;
    text-align: justify;
    padding: 0 5%;
    margin: 1rem 0;
    line-height: 1.7;
}

.article-links {
    text-align: center;
    margin: 1.5rem 0;
}

.article-links a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
}
/*Добавление кода для index.php*/

/* Общий контейнер секции */
.mbr-cards {
    background-color: #f9f9f9; /* светлый общий фон секции */
    padding: 2rem 1rem;
}

/* Карточка */
.card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 1.5rem;
    height: 100%;
}

/* Hover-эффект */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Заголовки */
.card-block h2, 
.card-block h3, 
.card-title {
    color: #3677a1;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Текст */
.card-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    text-align: justify;
    margin-bottom: 1.2rem;
    font-family: "Roboto", Arial, sans-serif;
}

/* Картинка */
.card-block img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 auto 1rem auto;
    display: block;
}

/* Кнопка */
.card-btn .btn {
    border-radius: 25px;
    border: 2px solid #3677a1;
    color: #3677a1;
    font-weight: bold;
    padding: 0.5rem 1.2rem;
    transition: all 0.2s ease;
}

.card-btn .btn:hover {
    background-color: #3677a1;
    color: #fff;
}
.last-article-title {
  font-size: 1rem;
  margin: 0.25rem 0;
  line-height: 1.35;
  text-align: center;  /* заголовки последних статей — по центру */
}

/* Текст сниппета последних статей */
.last-article-text {
  font-size: 0.98rem;
  color: var(--text);
  margin: 0.25rem 0 0.8rem;
  text-align: justify;   /* удобнее читать — переносы и выравнивание */
  padding: 0 8%;
}
/*Адаптивность*/
@media (max-width: 768px) {
    .card-text {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0 0.5rem;
    }

    .card-block h2 {
        font-size: 1.2rem;
    }
}