body {
    background-color: #f1f1f1;
    color: #333333;
    font-family: Georgia, 'Times New Roman', serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 20px auto;
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #333333;
}

.logo-image {
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.menu {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    background-color: #ffffff;
}

.menu a {
    color: #333333;
    text-decoration: none;
    margin: 0 20px;
    font-weight: normal;
    font-size: 14px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.menu a:hover {
    border-bottom-color: #333333;
}

.section {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    color: #333333;
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.3;
    border-left: 4px solid #333333;
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section.project h2 {
    display: none;
}

.section.simple h2 {
    display: none;
}

.project-logo {
    max-width: 180px;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.section-logo:has(img[alt="Drift Tengoku Logo"]) img {
    max-width: 220px;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.section-logo {
    flex-shrink: 0;
}

.section-links {
    flex: none;
}

.links {
    margin: 0;
    background: linear-gradient(to right, #fafafa 0%, #f5f5f5 100%);
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 12px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: centcenter;
    width: fit-content;
}

.links.simple-links {
    justify-content: centerlex-start;
    width: fit-content;
}

.links a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: none;
    padding: 5px 12px;
    display: inline-block;
    white-space: nowrap;
    position: relative;
}

.links a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background-color: #ddd;
}

.links a:last-child {
    border-bottom: none;
}

.links a:hover {
    color: #333333;
    background-color: rgba(0, 102, 204, 0.1);
    border-radius: 2px;
    padding-left: 15px;
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 12px;
    color: #666666;
    border-top: 1px solid #ddd;
}

.counter {
    text-align: center;
    margin: 20px 0;
    font-size: 13px;
    color: #666666;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid #333333;
}

/* Адаптивный дизайн для мобильных устройств */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        max-width: 100%;
        padding: 15px;
        margin: 10px auto;
    }

    .logo-container {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .logo-image {
        max-width: 150px;
    }

    .menu {
        margin-bottom: 15px;
        padding: 10px 0;
    }

    .menu a {
        margin: 0 8px;
        font-size: 13px;
        padding: 4px 8px;
    }

    .section {
        margin-bottom: 15px;
        padding: 15px 0;
    }

    .section h2 {
        font-size: 18px;
        margin-bottom: 10px;
        padding-left: 12px;
    }

    .section-content {
        gap: 12px;
    }

    .project-logo {
        max-width: 140px;
    }

    .section-logo:has(img[alt="Drift Tengoku Logo"]) img {
        max-width: 170px;
    }

    .links {
        padding: 10px 12px;
        font-size: 13px;
        flex-wrap: wrap;
        gap: 5px;
    }

    .links a {
        padding: 4px 8px;
        font-size: 13px;
    }

    .links a:not(:last-child)::after {
        height: 12px;
    }

    .footer {
        font-size: 11px;
        margin-top: 15px;
        padding-top: 10px;
    }

    .counter {
        margin: 10px 0;
        font-size: 0.9em;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .logo-image {
        max-width: 120px;
    }

    .menu a {
        margin: 0 5px;
        font-size: 12px;
        padding: 3px 6px;
    }

    .section {
        margin-bottom: 12px;
        padding: 12px 0;
    }

    .section h2 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .project-logo {
        max-width: 110px;
    }

    .section-logo:has(img[alt="Drift Tengoku Logo"]) img {
        max-width: 140px;
    }

    .links {
        padding: 8px 10px;
    }

    .links a {
        padding: 3px 6px;
        font-size: 12px;
    }

    .links a:not(:last-child)::after {
        height: 10px;
    }
}
