/* Сброс и нормализация */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #FFFFFF;
    font-size: 16px;
    line-height: 1.5;
    color: #1F2937;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Хедер */
header {
    background: #FFFFFF;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 80px;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1F2937;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-left: -1rem;
}

.burger-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 60;
    margin-left: auto;
    order: 2;
}

.burger-toggle span {
    width: 100%;
    height: 3px;
    background: #1F2937;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-toggle.active span:nth-child(2) {
    opacity: 0;
}

.burger-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-left: 7%;
    order: 1;
}

.nav-item {
    position: relative;
    color: #1F2937;
    text-decoration: none;
    font-size: 1.125rem;
    cursor: pointer;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-item i {
    font-size: 1rem;
    color: #0066FF;
    transition: color 0.3s;
    margin-right: 0.75rem;
}

.nav-item:hover i {
    color: #0055CC;
}

.nav-item > span {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item > span::after,
.nav-item > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #0066FF;
    transition: width 0.3s;
}

.nav-item:hover > span::after,
.nav-item:hover > a::after {
    width: 100%;
}

@media (max-width: 768px) {
    .burger-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #FFFFFF;
        flex-direction: column;
        align-items: flex-start;
        padding: 4rem 1.5rem;
        transition: right 0.3s ease;
        z-index: 50;
        overflow-y: auto;
        margin-left: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
        font-size: 1.25rem;
        padding: 0.5rem 0;
        white-space: nowrap;
    }

    .nav-item i {
        font-size: 1.125rem;
        margin-right: 0.75rem;
    }

    .nav-item > span {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Blog content styles */
.container {
    max-width: 1120px;
    margin: 80px auto 40px;
    padding: 20px;
    text-align: center;
    flex: 1;
}

h1 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.date-section {
    display: flex;
    margin-bottom: 20px;
    justify-content: center;
}

.date {
    width: 150px;
    font-weight: 500;
    padding-top: 5px;
    text-align: left;
}

.posts {
    flex: 1;
    text-align: left;
    overflow: hidden;
}

.post-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.post-thumbnail-list {
    width: 80px;
    height: auto;
    float: left;
    margin-right: 1rem;
    border-radius: 4px;
}

.post-link {
    display: block;
    color: #0066FF;
    text-decoration: none;
}

.post-link:visited {
    color: #0066FF;
}

.post-link:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #1F2937;
    color: #FFFFFF;
    padding: 2rem 0 1rem;
    width: 100%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.footer-section nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section a {
    color: #D1D5DB;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #FFFFFF;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.social-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: #D1D5DB;
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.footer-legal a {
    color: #D1D5DB;
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 80px auto 20px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .date {
        width: 100px;
        font-size: 0.9rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* Fix for social links to ensure horizontal layout */
.social-links {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    min-width: fit-content;
}

.footer-section {
    min-width: 250px;
}