* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f8f7f3;
    color: #343832;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.header {
    padding: 24px 20px;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid #eeece5;
}

.logo {
    color: #46594a;
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 600;
    text-decoration: none;
}

.tagline {
    margin: 7px 0 0;
    color: #85877e;
    font-size: 14px;
}

.container {
    width: min(100% - 36px, 1050px);
    margin: 0 auto;
}

.intro {
    max-width: 700px;
    margin: 55px auto 60px;
    text-align: center;
}

.intro h1 {
    margin: 0 0 16px;
    color: #46594a;
    font-family: Georgia, serif;
    font-size: clamp(30px, 5vw, 43px);
    font-weight: 500;
    line-height: 1.2;
}

.intro p {
    margin: 0;
    color: #777a70;
    font-size: 17px;
    line-height: 1.65;
}

.articles h2 {
    margin: 0 0 25px;
    color: #46594a;
    font-family: Georgia, serif;
    font-size: 29px;
    font-weight: 500;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.article-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #eeece5;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(50, 55, 45, 0.04);
}

.article-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #eeece5;
}

.article-info {
    padding: 20px;
}

.article-info h3 {
    margin: 0 0 18px;
    color: #343832;
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.35;
}

.read-link {
    color: #71836d;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.read-link:hover {
    color: #46594a;
}

.empty-state {
    padding: 35px 20px;
    color: #85877e;
    text-align: center;
    background: #fff;
    border-radius: 15px;
}

.footer {
    margin-top: 75px;
    padding: 25px 20px;
    color: #85877e;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid #eeece5;
}

@media (max-width: 700px) {
    .intro {
        margin: 40px auto 45px;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .article-info {
        padding: 17px;
    }

    .article-info h3 {
        font-size: 20px;
    }
}

/* Страница статьи */
.article-page {
    max-width: 780px;
    padding-top: 30px;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: #71836d;
    text-decoration: none;
    font-size: 14px;
}

.article-title {
    margin: 0 0 28px;
    color: #46594a;
    font-family: Georgia, serif;
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 500;
    line-height: 1.2;
}

.article-main-cover {
    display: block;
    width: 100%;
    max-height: 460px;
    margin-bottom: 30px;
    border-radius: 15px;
    object-fit: cover;
}

.article-content {
    color: #45483f;
    font-size: 17px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.feedback {
    margin-top: 50px;
    padding: 25px;
    background: #fff;
    border: 1px solid #eeece5;
    border-radius: 15px;
}

.feedback h2 {
    margin: 0 0 20px;
    color: #46594a;
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 500;
}

.feedback-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feedback-buttons button {
    padding: 12px 18px;
    color: #46594a;
    background: #f3f4ee;
    border: 1px solid #e2e6dc;
    border-radius: 10px;
    font: inherit;
    cursor: pointer;
}

.feedback-buttons button:hover {
    background: #e9eee4;
}

.feedback-buttons button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.feedback-buttons button.selected {
    background: #dfe9da;
    border-color: #9eaf96;
}

@media (max-width: 600px) {
    .article-page {
        padding-top: 22px;
    }

    .article-content {
        font-size: 16px;
    }

    .feedback {
        padding: 20px;
    }
}
