/* Базовые стили */
@import "files/basic_style.css";

/* Адаптивный макет */
@import "files/layout_1col.css";

/* ------------- ОСНОВНЫЕ СТИЛИ БЛОКОВ -------------------------------------------------------------------- */

/* Стили для блоков с закругленными краями */
.info-block {
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.block-header {
    background: linear-gradient(135deg, #1b005e, #2a1a5e);
    padding: 18px 30px;
    color: white;
}

.block-header h1,
.block-header h2,
.block-header h3 {
    color: white;
    margin: 0;
    text-indent: 0;
    font-family: "Times New Roman", Arial, sans-serif;
    font-weight: bold;
}

h4{
    font-size: 20px;
    font-family: "Times New Roman", Arial, sans-serif;
    font-weight: bold;
    text-align: center;
}

.block-header h1 {
    font-size: 26px;
}

.block-header h3 {
    font-size: 20px;
}

.block-content {
    padding: 30px;
}

/* Специфичные стили для разных блоков */
.resume-block .block-content {
    padding: 20px;
}

.contacts-block {
    background: linear-gradient(180deg, #f0f4ff, #e8edff);
    border: 1px solid #d0d8f0;
}

.contacts-block .block-header {
    background: linear-gradient(135deg, #0066cc, #004499);
}

/* Стили для контактов */
.contacts-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e1e5e9;
    transition: background-color 0.2s ease;
}

.contact-item:hover {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 10px 15px;
    margin: 0 -15px;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    font-weight: bold;
    color: #1b005e;
    min-width: 120px;
    margin-right: 20px;
    font-family: "Times New Roman", serif;
    font-size: 18px;
}

.contact-link {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: "Times New Roman", serif;
    font-size: 18px;
}

.contact-link:hover {
    color: #004499;
    text-decoration: underline;
}

.contact-text {
    color: #444;
    font-family: "Times New Roman", serif;
    font-size: 18px;
}

/* Стили для контейнера резюме */
.resume-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.resume-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.2s ease;
}

.resume-item:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
}

.resume-item:last-child {
    border-bottom: none;
}

.resume-label {
    width: 30%;
    font-weight: bold;
    color: #1b005e;
    flex-shrink: 0;
    font-family: "Times New Roman", serif;
    font-size: 18px;
}

.resume-value {
    width: 70%;
    color: #444;
    font-family: "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.6;
}

/* Стили для списков внутри блоков */
.info-block ul,
.info-block ol {
    padding: 0px 25px;
    margin: 15px 0;
}

.info-block ul li,
.info-block ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.info-block ul.content {
    list-style-type: none;
    padding-left: 0;
}

/* Стили для ссылок внутри блоков */
.info-block a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-block a:hover {
    color: #004499;
    text-decoration: underline;
}

/* ------------- АДАПТИВНОСТЬ ---------------------------------------------------------------------------- */

/* Планшеты и маленькие десктопы */
@media (max-width: 1100px) {
    .content-container {
        display: block;
    }

    .content-container img {
        margin-top: 20px;
    }

    .secblock {
        text-align: center;
    }

    .secblock-img {
        width: 60%;
    }

    .firblock {
        width: 100%;
    }
    
    .block-content {
        padding: 25px;
    }
    
    .resume-block .block-content {
        padding: 15px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    #headertext h1{
        text-align: center;
    }
    #header {
        flex-direction: column;
        text-align: center;
        margin: 10px;
        padding: 15px;
    }
    
    #menu {
        flex-direction: column;
        margin: 10px;
        padding: 8px;
    }
    
    .button {
        /*width: 100%;*/
        margin-bottom: 8px;
        padding: 10px 15px;
    }
    
    .info-block {
        margin: 15px 10px;
        border-radius: 12px;
    }
    
    .block-header {
        padding: 15px 20px;
    }
    
    .block-header h1 {
        font-size: 22px;
    }
    
    .block-header h3 {
        font-size: 18px;
    }
    
    .block-content {
        padding: 20px;
    }
    
    .resume-block .block-content {
        padding: 10px;
    }
    
    .resume-item {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }
    
    .resume-label, 
    .resume-value {
        width: 100%;
        text-align: left;
    }
    
    .resume-label {
        font-weight: bold;
        color: #1b005e;
        border-bottom: 1px dashed #e8e8e8;
        padding-bottom: 5px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }
    
    .contact-label {
        min-width: auto;
        margin-right: 0;
        font-weight: bold;
        color: #1b005e;
    }
    
    .contact-item:hover {
        padding: 12px 10px;
        margin: 0 -10px;
    }
    
    /* Уменьшаем отступы для списков на мобильных */
    .info-block ul,
    .info-block ol {
        padding: 0px 15px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .block-content {
        padding: 15px;
    }
    
    .block-header {
        padding: 12px 15px;
    }
    
    .resume-item {
        padding: 10px 12px;
    }
    
    .info-block ul,
    .info-block ol {
        padding: 0px 10px;
    }
    
    .resume-label,
    .resume-value,
    .contact-label,
    .contact-link,
    .contact-text {
        font-size: 16px;
    }
}

/* ------------- АНИМАЦИИ И ЭФФЕКТЫ ---------------------------------------------------------------------- */

/* Плавное появление блоков */
.info-block {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Эффект при нажатии на кнопки */
.button:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Плавный скролл для якорных ссылок */
html {
    scroll-behavior: smooth;
}

/* ------------- ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ УЛУЧШЕНИЯ ВИЗУАЛА ---------------------------------------------- */

/* Улучшенные тени для глубины */
.info-block {
    position: relative;
}

.info-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.info-block:hover::before {
    opacity: 1;
}

/* Стили для разделителей */
.block-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e1e5e9, transparent);
    margin: 20px 0;
}

/* Улучшенные стили для заголовков внутри контента */
.block-content h2 {
    font-family: "Times New Roman", Arial, sans-serif;
    font-size: 22px;
    font-weight: bold;
    color: #1b005e;
    margin: 20px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e8e8;
}

.block-content h3 {
    font-family: "Times New Roman", Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #1b005e;
    margin: 18px 0 12px 0;
}

/* Стили для цитат и выделенного текста */
.block-content blockquote {
    background: linear-gradient(90deg, #f0f4ff, transparent);
    border-left: 4px solid #0066cc;
    padding: 15px 20px;
    margin: 15px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* Улучшенные стили для таблиц (если понадобятся) */
.info-block table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-block table th {
    background: linear-gradient(135deg, #1b005e, #2a1a5e);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
}

.info-block table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e8e8e8;
    background: white;
}

.info-block table tr:hover td {
    background: #f8f9fa;
}

/* Стили для кода (если понадобятся) */
.info-block code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

.info-block pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

/* ------------- КОНТЕЙНЕРЫ И СЕТКИ ---------------------------------------------------------------------- */

.content-container {
    display: flex;
    align-items: center;
}

.secblock-img {
    width: 100%;
}

.firblock {
    width: 70%;
}

/* Утилитарные классы */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

.hidden {
    display: none;
}

/* Стили для состояний загрузки */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Стили для всплывающих подсказок */
[title] {
    position: relative;
    cursor: help;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
}

/*стили для списка источников*/