body {
    margin: 0;
    font-family: 'Georgia', serif;
    background-color: #0f172a; /* глубокий тёмно-синий */
    color: #e0f7ff;
    line-height: 1.6;
    font-family: 'Segoe UI', sans-serif;
}
header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem 2rem;
}
.header-left {
    display: flex;
    flex-direction: column;
}
nav {
    justify-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-right: 0.5rem;
    font-family: 'Segoe UI', sans-serif;
    text-decoration: none;
}
nav a {
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.08);
    font-weight: 600;
    color: #e4e4f5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}
.name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #cdb4ff;
    font-family: 'Segoe UI', sans-serif;
}
nav a:hover {
    color: #e0aaff;
}
.container {
    padding: 2rem;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
}
.profile-photo {
    width: 200px;
    height: 200px;
    background-color: #333;
    border-radius: 100px;
    background-image: url('../img/me.jpg');
    background-size: cover;
    background-position: center;
}
.content {
    column-count: 2;
    column-gap: 3rem;
}
.illustration {
    width: 100%;
    height: 150px;
    background-color: #2a213d;
    border: 1px solid #444;
    border-radius: 6px;
    color: #bbb;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    break-inside: avoid;
}
h1, h2 {
    color: #f0e6ff;
    font-family: 'Segoe UI', sans-serif;
    break-after: avoid;
}
h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    column-span: all;
}
h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    color: #e6ccff;
}
ul {
    padding-left: 1.5rem;
    break-inside: avoid;
}
hr {
    border: none;
    border-top: 1px solid #444;
    margin: 2rem 0;
    column-span: all;
}
.cta {
    text-align: center;
    margin: 3rem 0 0;
    padding: 2rem;
    background: linear-gradient(to right, #2b1d46, #1c132c);
    border-top: 1px solid #333;
}
.cta h2 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}
.cta p {
    font-size: 1rem;
    color: #c5c5ff;
}
.cta a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #1f4068, #283e51);
    color: #c5c5ff;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}
.cta a:hover {
    background-color: #e6caff;
}
@media (max-width: 768px) {
    .container {
    display: block;
    }
    .content {
    column-count: 1;
    }
}
header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.contacts {
    font-size: 0.9rem;
    text-align: right;
    line-height: 1.4;
    text-decoration: none;
    font-family: 'Segoe UI', sans-serif;
}

.contacts a {
    color: #aaccff;
    text-decoration: none;
    display: inline-block;
}

.contacts a:hover {
    color: #ffffff;
}
/* Красивое меню */
nav a {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
}
nav a:hover {
    background-color: #334155;
    color: #ffffff;
}

/* Слоган под хедером */
.slogan-bar {
    background: linear-gradient(to right, #1e293b, #3b3f58);
    color: #e0f7ff;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
    font-size: 1.9rem;
    padding: 0.7rem 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-bottom: 1px solid #334155;
    font-variant: small-caps;
}

.menu-toggle {
    background: none;
    border: none;
    color: #e0f7ff;
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
    display: block;
    margin-left: auto;
    }

    nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #1e293b;
    padding: 1rem;
    border-top: 1px solid #334155;
    }

    nav.open {
    display: flex;
    }

    nav a {
    padding: 0.5rem;
    margin: 0.3rem 0;
    font-size: 1rem;
    text-align: center;
    }
}