/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

a {
    text-decoration: none;
    color: #3498db;
    transition: color 0.3s;
}

a:hover {
    color: #2980b9;
}


/* Основной контент */
.main-content {
    padding: 60px 0;
}

.about, .approach, .author, .documentation {
    margin-bottom: 60px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.topic {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.topic:hover {
    transform: translateY(-5px);
}

.topic h3 {
    color: #e74c3c;
    margin-bottom: 10px;
}

/* Подход */
.approach-list {
    list-style: none;
    margin-top: 20px;
}

.approach-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.approach-list i {
    color: #e74c3c;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Автор */
.author-card {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    align-items: flex-start;
}

.author-photo {
    flex: 0 0 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-height: 400px;
}

.author-photo img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s;
    object-fit: cover;
    object-position: center top;
}

.author-photo:hover img {
    transform: scale(1.03);
}

.author-info {
    flex: 1;
    min-width: 300px;
}

.author-info h2 {
    font-size: 2.2rem;
    color: #e74c3c;
    margin-bottom: 10px;
}

.author-title {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 20px;
    font-weight: 500;
}

.author-description p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.author-features {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 1.5rem;
    color: #e74c3c;
    margin-right: 15px;
}

.feature span {
    font-weight: 500;
}

/* Документация */
.doc-links {
    list-style: none;
    margin-top: 25px;
}

.doc-links li {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.doc-links li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.doc-links a {
    display: block;
    font-weight: 500;
    font-size: 1.1rem;
}

.doc-links i {
    margin-right: 10px;
    color: #e74c3c;
}

/* Секция Телеграм */
.telegram-section {
    background-color: #3498db;
    color: white;
    padding: 40px;
    text-align: center;
    margin-bottom: 60px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

.telegram-section h2 {
    color: white;
    font-size: 1.8rem;
}

.telegram-section p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.telegram-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e74c3c;
    padding: 15px 20px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    color: #ffffff;
    font-weight: 500;
    margin-top: 15px;
    width: 100%;
}

.telegram-button i {
    margin-right: 10px;
    font-size: 1.3rem;
}

.telegram-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #c0392b;
    color: white;
}

/* Подвал */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.contact-info {
    margin-top: 20px;
}

.contact-info p {
    margin: 10px 0;
}

.contact-info i {
    margin-right: 10px;
}

/* Анимация для элементов */
.topic, .doc-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.topic.visible, .doc-links li.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .documentation {
        padding: 20px;
    }
    
    .author-card {
        flex-direction: column;
        padding: 20px;
        gap: 25px;
    }
    
    .author-photo {
        margin: 0 auto;
        max-width: 100%;
        height: 350px;
    }
    
    .author-info h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .author-title {
        text-align: center;
        font-size: 1.1rem;
    }
    
    .author-description p {
        font-size: 1rem;
    }
    
    .author-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature {
        padding: 12px;
    }
    
    .feature i {
        font-size: 1.3rem;
    }
    
    .telegram-button {
        justify-content: center;
        margin-top: 10px;
        padding: 12px;
    }
    
    .doc-links li {
        padding: 12px;
    }
    
    .doc-links a {
        font-size: 1rem;
    }
    
    footer {
        padding: 30px 0;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .author-photo {
        height: 300px;
    }
    
    .author-info h2 {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .author-card {
        padding: 15px;
    }
    
    .documentation {
        padding: 15px;
    }
} 

.doc-title {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        padding-left: 1200px;
}


