/* ===== ОБЩИЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

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

/* ===== ШАПКА ===== */
header {
    background: #1a2a4a;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffb347;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
main {
    padding: 40px 0;
    min-height: 70vh;
}

/* ===== ПОДВАЛ ===== */
footer {
    background: #1a2a4a;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer a {
    color: #ffb347;
    text-decoration: none;
}

/* ===== СТРАНИЦЫ (общий класс для контента) ===== */
.page-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 0.5em;
    color: #1a1a1a;
}

.page-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #1a1a1a;
}

.page-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-top: 1.2em;
    margin-bottom: 0.3em;
    color: #1a1a1a;
}

.page-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1em;
    color: #333;
}

.page-content ul {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    margin-left: 1.5em;
    margin-bottom: 1em;
    color: #333;
}

.page-content ul li {
    margin-bottom: 0.3em;
}

.page-content a {
    color: #0066cc;
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

.page-content hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid #e0e0e0;
}

.page-content strong {
    font-weight: 600;
}

/* ===== КАРТОЧКИ ПРОЕКТОВ ===== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.project-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.project-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 0.5em;
    color: #1a2a4a;
}

.project-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.8em;
    color: #555;
}

.project-card a {
    font-weight: 600;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.95rem;
}

.project-card a:hover {
    text-decoration: underline;
}

.more-link {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0066cc;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.more-link:hover {
    border-bottom-color: #0066cc;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }
    .page-content {
        padding: 20px;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
}