/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-white: #ffffff;
    --text-light: #f5f5f5;
    --accent-purple: #9d4edd;
    --accent-purple-light: #c77dff;
    --accent-purple-dark: #7b2cbf;
    --border-color: #1a1a1a;
    --border-hover: #2a2a2a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
}

/* Navigation */
nav {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

nav li {
    margin: 0;
}

nav a {
    color: var(--text-white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
    border: 1px solid transparent;
    font-size: 0.9rem;
}

nav a:hover {
    background-color: var(--border-hover);
    border-color: var(--border-color);
    color: var(--accent-purple-light);
}

nav a.active {
    color: var(--accent-purple);
    border-color: var(--accent-purple-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Separator */
.separator {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* Sections */
section {
    margin-bottom: 2.5rem;
}

section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-white);
}

section p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Links */
a {
    color: var(--accent-purple-light);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--accent-purple);
    border-bottom-color: var(--accent-purple);
}

/* Lists */
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

li {
    margin-bottom: 0.5rem;
}

/* Nested lists */
ul ul, ol ol, ul ol, ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Steps */
.steps {
    counter-reset: step-counter;
}

.step {
    counter-increment: step-counter;
    margin-bottom: 2rem;
}

.step h3::before {
    content: "Шаг " counter(step-counter) ". ";
    font-weight: 600;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

/* Cards/Boxes */
.info-box {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.info-box:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.1);
}

.info-box strong {
    color: var(--accent-purple-light);
}

/* Warning */
.warning {
    color: #ffa500;
}

/* Emoji spacing */
h2, h3 {
    margin-bottom: 0.75rem;
}

/* Team page styles */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-member:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.15);
    transform: translateY(-3px);
}

.team-member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.team-member:hover .team-member-photo {
    border-color: var(--accent-purple-dark);
}

.team-member-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.team-member-role {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.team-member-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: center;
}

.team-member-contacts a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: auto;
}

.team-member-contacts a:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple-light);
    background-color: rgba(157, 78, 221, 0.1);
}

/* Mobile First - Base styles are mobile */

/* Tablet and up */
@media (min-width: 768px) {
    body {
        font-size: 17px;
    }

    header h1 {
        font-size: 2.2rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    nav a {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }

    .container {
        padding: 3rem 2rem;
    }

    nav .container {
        padding: 0 2rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    header h1 {
        font-size: 2.5rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .container {
        padding: 4rem 2rem;
    }

    nav ul {
        gap: 1rem;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
