/* Общие стили */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    color: #2d3748;
    line-height: 1.6;
}

/* Верхний блок */
#topblock {
    background:  #2c3e50;
    color: #e2e8f0;
    padding: 8px 20px;
    box-shadow: 0 2px 10px rgba(58, 77, 112, 0.1);
}

#donntu {
    text-align: right;
}

#donntu a {
    color: #e2e8f0;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.2s ease;
}

#donntu a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Шапка с фото и информацией */
#header {
    background: linear-gradient(to right, #ffffff 0%, #f9fafb 100%);
    padding: 25px 30px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(58, 77, 112, 0.08);
    overflow: hidden;
    position: relative;
}

#header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(to left, rgba(58, 77, 112, 0.03), transparent);
    pointer-events: none;
}

#photomag {
    float: left;
    margin-right: 25px;
    border: 3px solid #e2e8f0;
    padding: 4px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#photomag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#photomag img {
    display: block;
    border-radius: 2px;
}

#headertext {
    overflow: hidden;
}

.hdr {
    margin: 8px 0;
    color: #2d3748;
    line-height: 1.5;
}

.hdr a {
    color: #3a4d70;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}

.hdr a:hover {
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px solid #3a4d70;
}

h1.hdr {
    font-size: 28px;
    color: #1a202c;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2.hdr {
    font-size: 18px;
    color: #3a4d70;
    margin: 15px 0;
    font-weight: 600;
    line-height: 1.4;
}

h3.hdr {
    font-size: 15px;
    color: #4a5568;
    font-weight: 500;
}

/* Основной блок с меню и контентом */
#middleblock {
    background-color: white;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(58, 77, 112, 0.08);
    overflow: hidden;
}

/* Меню */
#menu {
    background: linear-gradient(135deg, #3a4d70 0%, #2c3e50 100%);
    padding: 12px;
    text-align: center;
    position: relative;
}

#menu::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #667eea, #764ba2);
    opacity: 0.3;
}

.button {
    display: inline-block;
    padding: 10px 24px;
    margin: 0 6px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.button.color {
    background-color: #4a6285;
    color: #ffffff;
    border: 1px solid #3a4d70;
    box-shadow: 0 2px 4px rgba(58, 77, 112, 0.2);
}

.button.colorfix {
    background-color: #5d7ca6;
    color: white;
    border: 1px solid #4a6285;
    cursor: default;
    box-shadow: 0 2px 4px rgba(58, 77, 112, 0.2);
}

.button.color:hover {
    background-color: #3a4d70;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(58, 77, 112, 0.3);
}

/* Основной текст */
#maintext {
    padding: 30px;
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin: 25px 0;
}

/* Таблица резюме */
#resume {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 25px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(58, 77, 112, 0.05);
}

#resume tr {
    transition: background-color 0.2s ease;
}

#resume tr:hover {
    background-color: #f7fafc;
}

#resume tr.even {
    background-color: #f9fafb;
}

#resume td {
    padding: 16px 20px;
    vertical-align: top;
    border-bottom: 1px solid #edf2f7;
}

#resume tr:last-child td {
    border-bottom: none;
}

#resume td.c1 {
    width: 220px;
    font-weight: 600;
    color: #2c3e50;
    background-color: #f1f5f9;
    border-right: 2px solid #e2e8f0;
    font-size: 14px;
}

#resume td.c2 {
    color: #4a5568;
    background-color: white;
}

/* Списки в таблице */
#resume ol, #resume ul {
    margin: 8px 0;
    padding-left: 24px;
}

#resume li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #4a5568;
}

#resume ul li {
    list-style-type: none;
    position: relative;
}

#resume ul li:before {
    content: "•";
    color: #3a4d70;
    font-weight: bold;
    position: absolute;
    left: -18px;
}

#resume ol li {
    padding-left: 5px;
}

/* Нижнее меню */
#menub {
    background: linear-gradient(135deg, #3a4d70 0%, #2c3e50 100%);
    text-align: center;
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(58, 77, 112, 0.08);
    position: relative;
}

#menub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #667eea, #764ba2);
    opacity: 0.3;
}

.mitemb {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    margin: 0 10px;
    background-color: #4a6285;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #3a4d70;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(58, 77, 112, 0.2);
}

.mitemb:hover {
    background-color: #3a4d70;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(58, 77, 112, 0.3);
}

/* Ссылки */
a {
    color: #3a4d70;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2c3e50;
    text-decoration: none;
}

/* Заголовки в контенте */
#maintext h1 {
    color: #2c3e50;
    font-size: 24px;
    margin: 25px 0 20px 0;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

#maintext h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #3a4d70, #5d7ca6);
    border-radius: 2px;
}

#maintext h3 {
    color: #3a4d70;
    font-size: 16px;
    margin: 20px 0 15px 0;
    font-weight: 600;
}

#maintext p {
    color: #4a5568;
    margin-bottom: 20px;
    padding: 0 10px;
}

u {
    color: #3a4d70;
    text-decoration: none;
    font-weight: 600;
    background-color: rgba(58, 77, 112, 0.08);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    #header {
        padding: 15px;
        margin: 10px;
    }
    
    #photomag {
        float: none;
        margin: 0 auto 15px auto;
        text-align: center;
        display: inline-block;
    }
    
    #menu .button, .mitemb {
        display: block;
        margin: 8px auto;
        width: 90%;
        max-width: 300px;
    }
    
    #resume td.c1 {
        width: 150px;
        display: block;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    #resume td.c2 {
        display: block;
        padding-top: 8px;
    }
    
    #resume tr {
        display: block;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #e2e8f0;
    }
    
    #resume tr:last-child {
        border-bottom: none;
    }
}

/* Плавная анимация для всего контента */
#maintext, #header, #menu, #menub {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 20px;
}

.video-section h3 {
    text-align: center;
    color: #3a4d70;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Стили для круглого видео с эффектами */
video[style*="border-radius: 50%"] {
    border: 4px solid #3a4d70;
    box-shadow: 0 4px 15px rgba(58, 77, 112, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

video[style*="border-radius: 50%"]:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(58, 77, 112, 0.4);
}

/* Адаптивность для круглого видео */
@media (max-width: 768px) {
    .video-container video {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .video-container video {
        width: 250px;
        height: 250px;
    }
}