@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Playfair+Display:wght@400;700&display=default');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.9;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 700;
    color: #00695c;
    background: linear-gradient(to right, #00695c, #26a69a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo a {
    text-decoration: none;
}

header nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

header nav a {
    color: #263238;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    position: relative;
    transition: color 0.4s ease;
}

header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #00695c, #26a69a);
    bottom: -8px;
    left: 0;
    transition: width 0.4s ease;
}

header nav a:hover {
    color: #00695c;
}

header nav a:hover::after {
    width: 100%;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form input {
    padding: 8px 15px;
    border: 2px solid #00695c;
    border-radius: 20px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-form input:focus {
    border-color: #004d40;
}

.search-form button {
    background: none;
    color: #00695c;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-form button:hover {
    color: #004d40;
}

.main-content {
    flex: 3;
    padding: 50px 20px;
}

.posts, .about, .contact {
    margin: 0 auto;
}

.posts h2, .about h2, .contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #00695c;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.posts h2::after, .about h2::after, .contact h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #00695c, #26a69a);
    margin: 10px auto;
    border-radius: 2px;
}

.no-posts {
    font-size: 18px;
    color: #37474f;
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post, .about .post-content, .contact .post-content {
    background: #fff;
    border-radius: 20px;
    margin-bottom: 50px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.post-content {
    padding: 40px;
}

.post-content ul {
    list-style: none;
    padding-left: 20px;
    margin: 20px 0;
}

.post-content ul li {
    position: relative;
    font-size: 17px;
    color: #37474f;
    margin-bottom: 12px;
    padding-left: 30px;
}

.post-content ul li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: bold;
}

.post-title {
    color: #1a1a1a;
    text-decoration: none;
}

.post-title:hover {
    color: #00695c;
}

.post h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.post-meta {
    font-size: 15px;
    color: #78909c;
    margin-bottom: 20px;
    font-style: italic;
    letter-spacing: 0.6px;
}

.post-content p {
    font-size: 17px;
    color: #37474f;
    margin-bottom: 25px;
}

.post-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #00695c;
    margin: 30px 0 15px;
}

.post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-link {
    padding: 10px 15px;
    background: #fff;
    border: 2px solid #00695c;
    border-radius: 20px;
    color: #00695c;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.page-link:hover {
    background: #00695c;
    color: #fff;
}

.page-link.active {
    background: #00695c;
    color: #fff;
}

.sidebar {
    flex: 1;
    padding: 50px 40px;
    min-width: 320px;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sidebar-widget:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.sidebar-widget.about-author {
    background: linear-gradient(135deg, #d1f0ef, #a0e4e0);
    border: none;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.sidebar-widget.about-author::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
    z-index: 0;
    transform: rotate(45deg);
}

.sidebar-widget.about-author > div {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.about-author img {
    width: 180px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.about-author p {
    font-size: 1em;
    color: #1a1a1a;
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
    flex: 1;
}

.sidebar-widget.categories {
    background: linear-gradient(135deg, #f0f9ff, #d6efff);
    border: none;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.sidebar-widget.categories h3 {
    font-size: 1.5em;
    color: #004d40;
    margin-bottom: 15px;
}

.sidebar-widget.categories ul li a {
    color: #00695c;
    font-size: 1em;
    font-weight: 600;
}

.sidebar-widget.disclaimer {
    background: linear-gradient(135deg, #fff9e6, #ffecd2);
    border: none;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.sidebar-widget.disclaimer h3 {
    font-size: 1.5em;
    color: #004d40;
    margin-bottom: 10px;
}

.sidebar-widget.disclaimer p {
    font-size: 1em;
    color: #1a1a1a;
    line-height: 1.7;
}

.sidebar-widget h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #00695c;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    margin-bottom: 18px;
}

.sidebar-widget ul li a {
    color: #00695c;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    transition: color 0.4s ease;
}

.sidebar-widget ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #00695c;
    bottom: -4px;
    left: 0;
    transition: width 0.4s ease;
}

.sidebar-widget ul li a:hover {
    color: #004d40;
}

.sidebar-widget ul li a:hover::after {
    width: 100%;
}

footer {
    background: linear-gradient(135deg, #263238, #37474f);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

footer p {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
}

footer .disclaimer {
    font-size: 13px;
    color: #1a1a1a;
}

/* Стили для формы и текста на странице контактов */
.contact .post-content {
    background: linear-gradient(135deg, #f0f9ff, #d6efff);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.contact .post-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    z-index: 0;
    transform: rotate(45deg);
}

.contact-intro {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.contact-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: #1a1a1a;
    font-weight: 400;
    margin-bottom: 20px;
    text-align: justify;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #00695c;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #f7fafc;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 105, 92, 0.3);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #78909c;
    font-style: italic;
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

.submit-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 15px;
    background: linear-gradient(135deg, #00695c, #26a69a);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-button:hover {
    background: linear-gradient(135deg, #004d40, #007bff);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 105, 92, 0.4);
}

.success-message {
    font-size: 18px;
    color: #00695c;
    background: #d1f0ef;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.5s ease;
}

.error-message {
    font-size: 18px;
    color: #d32f2f;
    background: #ffebee;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.related-posts.end-related {
    width: 100%;
    margin: 10px 0 0;
    padding: 10px 0;
    background: transparent;
    text-align: left;
    float: left;
    max-width: 100%;
    margin-left: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.related-posts.end-related h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #004d40;
    margin-bottom: 8px;
    text-align: left;
}

.related-posts.end-related h4::after {
    content: none;
}

.related-grid {
    display: block;
    margin-left: 0;
}

.related-card {
    display: block;
    padding: 4px 0;
    text-decoration: none;
    color: #00695c;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.related-card:hover {
    color: #004d40;
    padding-left: 10px;
}

.related-card::before {
    content: '→';
    margin-right: 6px;
    color: #00695c;
    font-size: 12px;
}

.related-title {
    display: inline;
}

.related-arrow {
    display: none;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 0 20px;
    }
    .main-content, .sidebar {
        flex: 1;
        padding: 20px 10px;
    }
    header .container {
        flex-direction: column;
        gap: 20px;
    }
    header nav {
        flex-direction: column;
        gap: 15px;
    }
    header nav a {
        margin: 0;
    }
    .search-form {
        width: 100%;
        justify-content: center;
    }
    .search-form input {
        width: 70%;
    }
    .post h3 {
        font-size: 28px;
    }
    .contact-form {
        max-width: 100%;
        padding: 20px;
    }
    .contact .post-content {
        padding: 30px;
    }
    .related-grid {
        display: block;
        margin-left: 0;
    }
}

/* Стили из index.php */
.container { 
    display: flex; 
    max-width: 100% !important; 
    width: 100% !important; 
    padding: 0 30px !important; 
    margin: 0 auto; 
    gap: 40px !important; 
}
.main-content { 
    width: 80% !important; 
    padding: 15px; 
    box-sizing: border-box; 
}
.sidebar { 
    width: 20% !important; 
    padding: 20px 50px; 
    font-family: Arial, sans-serif; 
    box-sizing: border-box; 
}
.about-author { 
    display: flex; 
    align-items: center; 
    padding: 30px; 
    margin-bottom: 40px; 
    border: none; 
    border-radius: 15px; 
    background: linear-gradient(135deg, #d1f0ef, #a0e4e0); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); 
    transition: transform 0.3s ease; 
    flex-wrap: wrap;
    gap: 20px;
}
.about-author:hover { 
    transform: scale(1.02); 
}
.about-author img { 
    width: 180px; 
    height: auto; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 4px solid #fff; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); 
}
.about-author p { 
    font-size: 1em; 
    color: #1a1a1a; 
    line-height: 1.7; 
    margin: 0; 
    font-weight: 500; 
    flex: 1; 
}
.categories { 
    padding: 20px; 
    margin-bottom: 20px; 
    border: none; 
    border-radius: 15px; 
    background: linear-gradient(135deg, #f0f9ff, #d6efff); 
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); 
}
.categories h3 { 
    font-size: 1.5em; 
    color: #004d40; 
    margin: 0 0 15px; 
}
.categories ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}
.categories ul li { 
    margin: 8px 0; 
}
.categories ul li a { 
    color: #00695c; 
    text-decoration: none; 
    font-size: 1em; 
    font-weight: 600; 
}
.categories ul li a:hover { 
    text-decoration: underline; 
}
.disclaimer { 
    padding: 20px; 
    border: none; 
    border-radius: 15px; 
    background: linear-gradient(135deg, #fff9e6, #ffecd2); 
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); 
}
.disclaimer h3 { 
    font-size: 1.5em; 
    color: #004d40; 
    margin: 0 0 10px; 
}
.disclaimer p { 
    font-size: 1em; 
    color: #1a1a1a; 
    line-height: 1.7; 
    margin: 0; 
}
.related-posts { 
    margin: 25px 0;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f0f9ff, #d6efff);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    margin-left: auto;
    float: right;
}
.related-posts h4 { 
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    color: #00695c;
    margin: 0 0 15px;
    font-weight: 700;
    text-align: left;
}
.related-posts ul { 
    list-style: none;
    padding: 0;
    margin: 0;
}
.related-posts li { 
    margin-bottom: 12px;
}
.related-posts a { 
    color: #26a69a;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
    position: relative;
    padding-left: 20px;
    user-select: text;
    pointer-events: auto;
    z-index: 1;
}
.related-posts a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00695c;
    font-weight: bold;
    pointer-events: none;
    z-index: -1;
}
.related-posts a:hover { 
    color: #004d40;
    padding-left: 25px;
}