* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #30581f;
    --secondary-color: #f4a261;
    --accent-color: #4b8830;
    --background-color: #f8f9fa;
    --text-color: #333;
    --font-family: "Merriweather", serif;
}

html,
body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: "Merriweather", serif !important;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

section {
    padding: 20px 0;
}

.container {
    position: relative;
    flex: 1;
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 20px;
}

nav {
    background: var(--background-color);
    color: var(--text-color);
    border-bottom: 3px solid var(--primary-color);
    text-align: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.logo {
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: var(--primary-color);
    padding: 50px 15px;
    width: 100%;
}

.logo h1 {
    text-transform: uppercase;
    font-size: 36px;
    font-weight: bold;
    color: white;
}

.logo h1::first-letter {
    font-size: 36px;
}

.logo h2 {
    text-transform: uppercase;
    font-size: 24px;
    font-weight: normal;
    margin: 0;
    color: white;
}

.nav-links a {
    margin: 0 15px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.nav-links a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    color: var(--text-color);
    font-family: "Playfair Display", serif;
    font-weight: 700;
}

h1 {
    font-size: 24px;
    font-weight: bold;
}

h2 {
    font-size: 18px;
    font-weight: normal;
}

p {
    font-family: "Merriweather", serif;
    font-size: 1rem;
    opacity: 0.9;
    line-height: 2em;
}

.highlighted {
    background-color: var(--primary-color); /* Light background for each item */
    border-radius: 5px;
    color: white;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    margin-right: -14px;
    padding: 5px 10px;
}

.accent {
    background-color: var(--accent-color);
    color: white;
}

ul.services-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    max-width: 800px;
    line-height: 1.8;
}

ul.services-list li {
    margin-bottom: 10px; /* Add spacing between list items */
    padding: 5px 10px; /* Add padding for better spacing */
    background-color: #f9f9f9; /* Light background for each item */
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: var(--text-color);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

ul.services-list li:hover {
    background-color: #f4f4f4;
    cursor: pointer;
}

ul.about-me-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    line-height: 1.8;
}

ul.about-me-list li {
    margin-bottom: 10px; /* Add spacing between list items */
    padding: 5px 10px; /* Add padding for better spacing */
    background-color: var(--primary-color); /* Light background for each item */
    border-radius: 5px;
    font-size: 1rem;
    color: white;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    margin-right: -14px;
}

ul.about-me-list li:hover {
    background-color: var(--accent-color);
    cursor: pointer;
}

ul.about-me-list li.accent {
    background-color: var(--accent-color);
    color: white;
}

.button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s;
}

.button a {
    color: white;
    text-decoration: none;
}

footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    font-size: 18px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

footer a {
    color: white;
    text-decoration: underline;
}

footer ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
}

/* Blog */
.blog-article {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid #000;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-article p,
.blog-article ul > li {
    font-size: 16px;
    color: #333;
}

.article-spoiler-content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.meta {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    font-style: italic;
}

/* Contact */
.contact-form {
    max-width: 500px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form label[for="privacy-policy"] {
    display: inline-block;
    margin-right: 10px;
}

.contact-form input#privacy-policy {
    display: inline-block;
}

.contact-form button {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide links by default */
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 60px;
        right: 20px;
        background: white;
        border: 1px solid #ddd;
        padding: 10px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex; /* Show links when active */
    }

    .mobile-menu-toggle {
        display: block; /* Show toggle button on mobile */
    }
}

@media (min-width: 768px) {
    .logo {
        width: 70%;
    }
}

@media (min-width: 992px) {
    .container::after {
        content: "";
        position: absolute;
        top: 0;
        right: calc((100vw - min(100vw, 1200px)) / -2);
        width: calc((100vw - min(100vw, 1200px)) / 2);
        height: 100%;
        background-color: var(--primary-color);
        z-index: -1;
    }
}
