:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-color: #8A2BE2;
    --transition: all 0.3s ease;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(18, 18, 18, 0.95);
    position: fixed;
    width: 84%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #252525;
}

.logo {
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 20px;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-color);
}

.lang-select {
    background: transparent;
    color: white;
    border: 1px solid #444;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Sections */

.container {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
    margin-top: 150px;
}

.section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 120px;
    gap: 50px;
}

.section.reverse {
    flex-direction: row-reverse;
}

.content-block {
    flex: 1;
}

.image-placeholder {
    flex: 1;
    height: 350px;
    background: #252525;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    border: 2px dashed #333;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.accent-text {
    color: var(--accent-color);
}

.description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
}

/* Divider */

.divider {
    border: 0;
    border-top: 1px solid #252525;
    margin: 100px 0;
}

.projects-title {
    text-align: center;
}

/* Cards */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #252525;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.card-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: #333;
}

.img-one {
    background: url('https://via.placeholder.com/400/2a0e0e') center/cover;
}

.img-two {
    background: url('https://via.placeholder.com/400/0e1a2a') center/cover;
}

.img-placeholder {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #333;
}

.card-info {
    padding: 25px;
}

.card-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.card-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faded {
    opacity: 0.8;
}

/* Footer */

footer {
    text-align: center;
    padding: 50px;
    color: #444;
    font-size: 0.8rem;
}


/* Scroll animation */

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.lang-select {
    background-color: #1a1a1a; /* тёмный фон */
    color: #f0f0f0;            /* светлый текст */
    border: 2px solid #8A2BE2; /* акцентная рамка */
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

.lang-select option {
    background-color: #1a1a1a; /* тёмный фон выпадающего списка */
    color: #f0f0f0;            /* светлый текст */
}

.lang-select {
    appearance: none;          /* убирает стандартную стрелку */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23f0f0f0" height="10" viewBox="0 0 24 24" width="10" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    padding-right: 30px;      /* чтобы текст не налезал на стрелку */
}