/* Основные стили */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Верхний блок с ссылками */
#topblock {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    text-align: center;
}

#donntu a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#donntu a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Контейнер для контента */
#middleblock {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 20px auto;
    max-width: 1200px;
    padding: 30px;
}

/* Шапка */
#header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

#headertext .hdr {
    color: white;
    margin: 10px 0;
}

#headertext .hdr a {
    color: #ecf0f1;
    text-decoration: none;
}

#headertext .hdr a:hover {
    color: #3498db;
}

/* Фотография */
#photomag {
    margin-right: 30px;
}

#photomag img {
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

#photomag img:hover {
    transform: scale(1.05);
}

/* Меню */
#menu {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.button {
    display: inline-block;
    padding: 12px 25px;
    margin: 5px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.button.color {
    background: #3498db;
    color: white;
}

.button.color:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.button.colorfix {
    background: #2c3e50;
    color: white;
}

/* Таблицы */
#resume {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

#resume td {
    padding: 15px;
    border: 1px solid #ddd;
}

#resume .c1 {
    background: #f8f9fa;
    font-weight: bold;
    width: 30%;
    color: #2c3e50;
}

#resume .c2 {
    background: white;
}

#resume tr.even td {
    background: #f8f9fa;
}

#resume tr.odd td {
    background: white;
}

/* Заголовки */
h1 {
    color: #2c3e50;
    text-align: center;
    margin: 30px 0;
    font-size: 2.2em;
}

h2 {
    color: #3498db;
    border-left: 5px solid #3498db;
    padding-left: 15px;
    margin: 25px 0 15px 0;
}

h3 {
    color: #2c3e50;
}

/* Нижнее меню */
#menub {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: #2c3e50;
    border-radius: 10px;
}

.mitemb {
    display: inline-block;
    color: white;
    text-decoration: none;
    margin: 0 15px;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.mitemb:hover {
    background: #3498db;
    transform: translateY(-2px);
}

/* Списки */
ul, ol {
    margin: 15px 0;
    padding-left: 30px;
}

li {
    margin: 8px 0;
    line-height: 1.5;
}

/* Ссылки */
a {
    color: #3498db;
    transition: color 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Разделительная линия */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    margin: 30px 0;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    #header {
        flex-direction: column;
        text-align: center;
    }
    
    #photomag {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .button {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
    
    #menub {
        padding: 15px;
    }
    
    .mitemb {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
}
