/* ===== БАЗОВЫЕ СТИЛИ ===== */
body {
    margin-left: 30px;
    margin-top: 10px;
    font-family: Georgia, serif;
    line-height: 1.3;
    font-size: 20px;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

.visually-hidden {
    visibility: hidden;
}

li {
    list-style-type: none;
}

a {
    text-decoration: none;
}

/* ===== ШАПКА ===== */
header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgb(25, 25, 112, 0.5);
    padding-bottom: 35px;
    padding-top: 10px;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}

.main-menu {
    display: flex;
    margin-left: auto;
    align-items: center;
}

.menu-point {
    margin-right: 40px;
    font-size: 30px;
}

.menu-point--color {
    color: #191970;
}
.menu-point--color:visited {
    color: #191970;
}
.menu-point--color:hover {
    border-bottom: 1px solid rgba(25, 25, 112, 0.3);
}

/* ===== ЗАГОЛОВОК САЙТА ===== */
.site-name {
    font-family: Verdana, sans-serif;
    font-size: 40px;
    font-weight: 400;
    word-spacing: 5px;
    color: #191970;
    line-height: 55px;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.site-name:hover {
    background-color: rgba(25, 25, 112, 0.05);
}

/* ===== ОБЩИЕ СТИЛИ ДЛЯ СТРАНИЦ (оставлены для других разделов) ===== */
.about-smelin {
    display: flex;
    padding-bottom: 40px;
    padding-right: 30px;
    margin-top: -55px;
}

.about-smelin__text {
    margin-right: 50px;
    margin-top: 30px;
}

.smelin-address {
    margin-top: -30px;
}

.about-program {
    padding-top: 20px;
    border: 1px solid rgb(25, 25, 112, 0.5);
    padding-bottom: 50px;
    background-color: #FFF0F5;
    padding-left: 30px;
    margin-right: 30px;
}

.program-preview {
    width: 80%;
    margin-top: 30px;
    margin-bottom: 25px;
}

.first-article {
    display: flex;
}

.article-block {
    margin-left: 50px;
    margin-top: -15px;
}

.article-image {
    height: 400px;
}

.articles {
    margin-top: 40px;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

/* ===== ПОДВАЛ ===== */
footer {
    display: flex;
    margin-top: 100px;
    align-items: center;
    border-top: 1px solid rgb(25, 25, 112, 0.2);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 30px;
}

.social_media {
    display: flex;
    margin-left: auto;
    margin-right: 20px;
}

.sm-icon {
    width: 30px;
    margin-right: 15px;
}

h2 {
    font-family: Verdana, sans-serif;
    color: #191970;
    font-weight: 400;
    font-size: 37px;
}

.program-link {
    font-size: 20px;
    font-family: Verdana, sans-serif;
}

.download {
    margin-left: 40px;
    font-size: 20px;
    font-family: Verdana, sans-serif;
}

.smelin-photo {
    height: 432px;
}

.signature {
    font-style: italic;
    font-size: 18px;
}

.copy {
    margin-right: 7px;
}

.copyright {
    color: rgb(25, 25, 112);
}

h1 {
    color: #191970;
}

.video-panacea {
    display: flex;
    margin-left: 0;
}

.video-text-block {
    flex-basis: 700px;
    margin-right: 20px;
    margin-left: 0;
    margin-top: -15px;
}

.video-annanews {
    margin-left: 20px;
}

.articles_list li {
    margin-bottom: 20px;
    font-size: 26px;
}

/* ===== НОВЫЕ СТИЛИ ДЛЯ СТАТЕЙ (главная) ===== */
.new-article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 0;
    margin: 0;
    border-bottom: 1px solid rgba(25, 25, 112, 0.1);
}

.new-article.reverse {
    flex-direction: row-reverse;
}

.new-article-content {
    flex: 1;
    min-width: 0;
}

.new-article-image {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.new-article-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #191970;
    font-family: Verdana, sans-serif;
    font-weight: 400;
    font-size: 37px;
    line-height: 1.2;
}

.new-article-content p {
    line-height: 1.7;
    margin-bottom: 0;
    color: #333;
    font-size: 20px;
    font-family: Georgia, serif;
}

/* Ссылки-кнопки */
.read-more {
    display: inline-block;
    /* Убираем margin-top, чтобы не создавать лишних отступов */
    margin-top: 0;
    padding: 12px 30px;
    background-color: #191970;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-family: Verdana, sans-serif;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #0d0d4d;
}

/* Блок с несколькими ссылками */
.article-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;   /* уменьшено с 20px */
    margin-top: 25px;  /* отступ от текста до всего блока кнопок */
}

.buy-link {
    background-color: #191970;
}

.ideas-link {
    background-color: #2c8c4a;
}

.buy-link:hover {
    background-color: #0d0d4d;
}

.ideas-link:hover {
    background-color: #1f6b38;
}

/* Превью видео */
.video-preview {
    width: 100%;
}

.video-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    transition: transform 0.2s;
}

.video-link:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-title {
    margin-top: 12px;
    font-family: Verdana, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #191970;
    text-align: center;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .about-smelin {
        flex-direction: column;
    }
    .smelin-photo {
        width: 100%;
        height: auto;
        margin-top: -50px;
        margin-bottom: 35px;
    }
    .about-program {
        max-width: 100%;
    }
    .first-article {
        display: block;
    }
    .article-image {
        width: 100%;
        height: auto;
    }
    .smelin-address {
        padding-bottom: 25px;
        order: 2;
    }
    .articles {
        margin-right: 30px;
    }
    .article-block {
        margin-right: 35px;
    }
    .program-preview {
        width: 100%;
    }
    .download {
        margin-left: 20px;
    }
    .sm-icon {
        width: 30px;
    }
    .video-panacea {
        flex-direction: column;
    }
    .video-text-block {
        margin-left: 40px;
        margin-bottom: 30px;
        order: 2;
    }
    .video-annanews {
        margin-left: 0;
        margin-right: 40px;
        width: calc(100% - 80px);
        height: 450px;
    }
    .site-name {
        font-size: 32px;
        line-height: 40px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
        padding-right: 20px;
    }
    .main-menu {
        margin-left: 0;
        margin-right: 0;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 20px;
    }
    .menu-point {
        font-size: 30px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .new-article {
        flex-direction: column;
        gap: 30px;
        padding: 40px 0;
    }
    .new-article.reverse {
        flex-direction: column;
    }
    .new-article-image {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .new-article-content {
        width: 100%;
    }
    .new-article-content h2 {
        font-size: 32px;
    }
    main {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    body {
        margin-left: 15px;
        margin-right: 15px;
        font-size: 18px;
    }

    header {
        padding: 20px 15px;
        flex-direction: column;
        align-items: stretch;
    }
    .site-name {
        width: auto;
        margin: 0 0 20px 0;
        padding: 20px;
        box-sizing: border-box;
        background-color: #f8f9fa;
        border-radius: 8px;
        border: 1px solid rgba(25, 25, 112, 0.15);
        text-align: center;
        font-size: 28px;
        line-height: 36px;
    }
    .title-smelin {
        display: block;
        font-size: 20px;
        color: #666;
        margin-bottom: 4.7px;
        letter-spacing: 0.5px;
    }
    .site-name b {
        font-size: 26px;
        color: #191970;
        display: block;
        line-height: 1.2;
    }
    .main-menu {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        border-top: 1px solid #eee;
        padding-top: 20px;
    }
    .menu-point {
        font-size: 26px;
        margin-bottom: 12px;
        width: 100%;
    }

    h2 {
        font-size: 30px;
    }

    .about-smelin__text {
        margin-right: 0;
    }
    .about-program {
        margin-right: 0;
        padding-left: 15px;
        padding-right: 15px;
    }
    .article-block {
        margin-left: 0;
        margin-right: 0;
    }
    .program-link, .download {
        display: block;
        margin-left: 0;
        margin-bottom: 4px;
        padding: 10px 15px;
        box-sizing: border-box;
        text-align: center;
    }
    footer {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 50px;
        padding: 20px;
    }
    .social_media {
        margin-left: 0;
        margin-top: 15px;
    }
    .video-panacea {
        flex-direction: column;
        margin-left: 15px;
        margin-right: 15px;
    }
    .video-text-block {
        margin-left: 0;
        margin-bottom: 20px;
        order: 2;
        width: 100%;
    }
    .video-annanews {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        height: auto;
        max-height: 450px;
    }

    /* Кнопки на мобильных */
    .article-links {
        flex-direction: column;
        gap: 6px;
    }
    .read-more {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        box-sizing: border-box;
        margin-top: 6px; /* небольшой отступ между кнопками в столбик */
    }

    .play-button {
        width: 50px;
        height: 35px;
    }

    .new-article {
        margin: 0;
        padding: 30px 0;
    }
    .new-article-content {
        padding: 0 10px;
    }
    .new-article-content h2 {
        font-size: 28px;
    }
    .new-article-content p {
        font-size: 18px;
    }
    main {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    body {
        margin-left: 10px;
        margin-right: 10px;
        font-size: 16px;
    }
    .site-name {
        padding: 15px !important;
        margin-bottom: 15px !important;
        width: auto;
        font-size: 24px;
        line-height: 32px;
    }
    .title-smelin {
        font-size: 18px;
        margin-bottom: 3.5px;
    }
    .site-name b {
        font-size: 22px;
    }
    .menu-point {
        font-size: 22px;
        margin-bottom: 10px;
    }
    h2 {
        font-size: 26px;
    }
    .smelin-photo {
        height: auto;
    }
    .article-image {
        height: 300px;
    }
    .program-link, .download {
        font-size: 18px;
        padding: 8px 12px;
        margin-bottom: 4px;
    }
    .video-panacea {
        margin-left: 10px;
        margin-right: 10px;
    }
    .video-annanews {
        width: 100%;
        height: 300px;
    }
    .new-article {
        padding: 20px 0;
        gap: 20px;
    }
    .new-article-content {
        padding: 0 5px;
    }
    .new-article-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .new-article-content p {
        font-size: 17px;
    }
    main {
        padding: 0 10px;
    }
}