* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2e7d32;
    --primary-light: #4caf50;
    --primary-bg: #e8f5e9;
    --gray-light: #f5f5f5;
    --gray: #9e9e9e;
    --gray-dark: #616161;
    --text: #333333;
    --white: #ffffff;
    --shadow: 0 4px 30px rgba(0,0,0,0.06);
    --radius: 20px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gray-light);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 400;
    font-size: 15px;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary);
}

.nav a i {
    margin-right: 6px;
}

.lang-switch {
    display: flex;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.lang-switch a {
    text-decoration: none;
    color: var(--gray);
    transition: color 0.3s;
}

.lang-switch a.active {
    color: var(--primary);
}

.lang-switch a:hover {
    color: var(--primary);
}

.lang-switch span {
    color: var(--gray);
}

/* Герой */
.hero {
    background: var(--white);
    padding: 60px 0 50px;
    border-bottom: 2px solid var(--primary-bg);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-tag {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--primary);
    padding: 4px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}

.hero-text p {
    font-size: 18px;
    color: var(--gray-dark);
    max-width: 500px;
    font-weight: 300;
    margin-bottom: 28px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 14px 34px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.25);
}

.btn-primary:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(46, 125, 50, 0.35);
}

.btn-primary i {
    margin-right: 10px;
}

.hero-image {
    flex: 0 0 200px;
    text-align: center;
}

/* Блог */
.blog {
    padding: 50px 0 60px;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.blog-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    color: var(--text);
}

.blog-header h2 i {
    margin-right: 12px;
}

.post-count {
    background: var(--primary-bg);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(46, 125, 50, 0.10);
}

.post-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--gray-light);
}

.post-card-body {
    padding: 20px 24px 24px;
}

.post-card-date {
    font-size: 13px;
    color: var(--gray);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.post-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.post-card-excerpt {
    font-size: 15px;
    color: var(--gray-dark);
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 14px;
    background: var(--primary-bg);
    border-radius: 30px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 10px 18px;
    border: 2px solid var(--gray-light);
    background: var(--white);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Контакты */
.contact {
    background: var(--white);
    padding: 50px 0 40px;
    border-top: 2px solid var(--primary-bg);
}

.contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    text-align: center;
    margin-bottom: 24px;
}

.contact h2 i {
    margin-right: 12px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-info a {
    text-decoration: none;
    color: var(--gray-dark);
    font-size: 16px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info a:hover {
    color: var(--primary);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 28px;
    padding: 40px 45px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 32px;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--text);
    margin-bottom: 16px;
    padding-right: 30px;
}

.modal-content img {
    width: 100%;
    border-radius: 16px;
    margin: 12px 0 18px;
}

.modal-content p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.8;
}

/* Подвал */
.footer {
    background: var(--white);
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid var(--gray-light);
    color: var(--gray);
    font-size: 14px;
}

/* Адаптив */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text h1 { font-size: 32px; }
    .hero-text p { max-width: 100%; }
    .blog-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 28px 20px; }
    .header-inner { flex-direction: column; }
    .contact-info { flex-direction: column; align-items: center; }
}