/* Основные стили для тела страницы */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    font-size: 16px;
    color: #e9e9e9;
}

body {
    min-height: 100vh;
    transition: background 0.4s;
}

/* Переключатель языка в верхнем правом углу */
.language-toggle {
    position: fixed;
    top: 2em;
    right: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #23234a 60%, #2a2a40 100%);
    padding: 0.7em 1.2em;
    border-radius: 2em;
    box-shadow: 0 4px 16px rgba(26, 33, 62, 0.13);
    z-index: 100;
    transition: background 0.3s;
}

.language-toggle:hover {
    background: linear-gradient(135deg, #34345a 60%, #23234a 100%);
}

.language-label {
    color: #bb86fc;
    font-size: 1.1em;
    font-weight: 500;
    transition: color 0.3s;
}

.switch {
    position: relative;
    display: inline-block;
    width: 2.5em;
    height: 1.2em;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: background 0.3s;
    border-radius: 1.2em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.slider:before {
    position: absolute;
    content: "";
    height: 1em;
    width: 1em;
    left: 0.15em;
    bottom: 0.1em;
    background-color: #bb86fc;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

input:checked + .slider {
    background-color: #6200ea;
}

input:checked + .slider:before {
    transform: translateX(1.2em);
    background-color: #fff;
}

/* Контейнер для всего резюме */
.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 3em auto 2em auto;
    box-shadow: 0 8px 32px rgba(26, 33, 62, 0.18);
    border-radius: 1.5em;
    overflow: hidden;
    background: linear-gradient(135deg, #23234a 60%, #2a2a40 100%);
    animation: fadeIn 1s cubic-bezier(0.4,0,0.2,1);
}

/* Боковая панель (aside) */
.loft-aside {
    width: 320px;
    background: linear-gradient(135deg, #23234a 60%, #2a2a40 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em 1em 1.5em 1em;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.12);
}

/* Рамка для фото */
.photo-frame {
    width: 320px;
    height: 320px;
    margin: 0 auto 1.5em auto;
    border-radius: 1.2em;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(26, 33, 62, 0.13);
    transition: transform 0.3s, box-shadow 0.3s;
}

.photo-frame:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(187,134,252,0.18);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.2em;
}

/* Контактная информация */
.contact-info {
    text-align: left;
    width: 100%;
    padding-bottom: 1em;
}

.contact-info p, .contact-info a {
    color: #d9e0e8;
    text-decoration: none;
    font-size: 1em;
    margin-bottom: 0.7em;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.contact-info a:hover {
    text-decoration: underline;
    color: #bb86fc;
}

.icon {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    vertical-align: middle;
    filter: grayscale(100%) brightness(150%);
    transition: filter 0.3s;
}

.icon:hover {
    filter: grayscale(0%) brightness(100%);
}

/* Основная часть (main) */
.loft-main {
    flex-grow: 1;
    padding: 2.5em 2em 2em 2em;
    background: transparent;
}

/* Заголовок */
.loft-header {
    text-align: center;
    margin-bottom: 2em;
}

.loft-title {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    color: #bb86fc;
    font-size: 2.2rem;
    margin-bottom: 0.5em;
    text-shadow: 0 2px 8px rgba(187,134,252,0.10);
    font-weight: 700;
    transition: color 0.3s, text-shadow 0.3s;
}

.loft-title:hover {
    color: #a59b8c;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.18);
}

#age {
    color: #d9e0e8;
    font-size: 1.1em;
    font-weight: 400;
}

/* Секции */
.loft-section {
    background: linear-gradient(135deg, #23234a 60%, #2a2a40 100%);
    border-radius: 1.2em;
    box-shadow: 0 4px 16px rgba(26, 33, 62, 0.13);
    padding: 1.5em 1.2em 1.2em 1.2em;
    margin-bottom: 2em;
    animation: fadeIn 1.2s cubic-bezier(0.4,0,0.2,1);
}

.loft-section:hover {
    box-shadow: 0 8px 32px rgba(187,134,252,0.18);
}

.loft-subtitle {
    color: #bb86fc;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1em;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px rgba(187,134,252,0.10);
    transition: color 0.3s;
}

.loft-job-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.2em;
}

.loft-job-date {
    color: #bb86fc;
    font-size: 1em;
    margin-bottom: 0.7em;
}

ul {
    padding-left: 1.2em;
    margin: 0.5em 0 1em 0;
}

li {
    color: #d9e0e8;
    font-size: 1em;
    margin-bottom: 0.5em;
    line-height: 1.5;
    position: relative;
    padding-left: 1.2em;
}

li:before {
    content: '•';
    color: #bb86fc;
    position: absolute;
    left: 0;
    font-size: 1.2em;
    top: 0.1em;
}

.loft-skills {
    color: #bb86fc;
    font-size: 1em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-weight: 500;
}

.loft-text {
    color: #d9e0e8;
    font-size: 1em;
    margin-bottom: 0.7em;
    line-height: 1.5;
}

.loft-link {
    color: #bb86fc;
    text-decoration: underline;
    transition: color 0.3s;
}

.loft-link:hover {
    color: #fff;
}

/* Верхний flex-контейнер для карточки и картинки скиллов */
.top-row {
    display: flex;
    gap: 2em;
    align-items: flex-start;
    margin-bottom: 2.5em;
}

/* Удаляю стили для .skills-image-block и .skills-image */
.skills-image-block, .skills-image {
    display: none !important;
}

/* skills-image-block только на мобильных */
@media (max-width: 700px) {
    .loft-aside {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .photo-frame {
        width: 100%;
        height: auto;
        max-width: 400px;
        margin: 0 auto 1.2em auto;
    }
    .profile-photo {
        width: 100%;
        height: auto;
        border-radius: 1.2em;
    }
}

/* Светлая тема */
body.light-theme, html.light-theme {
    background: linear-gradient(135deg, #f5f5fa 0%, #e3e3f3 100%);
    color: #23234a;
}
body.light-theme .language-toggle {
    background: linear-gradient(135deg, #fff 60%, #e3e3f3 100%);
    box-shadow: 0 4px 16px rgba(187,134,252,0.10);
}
body.light-theme .language-label {
    color: #6200ea;
}
body.light-theme .slider {
    background-color: #bb86fc;
}
body.light-theme .slider:before {
    background-color: #fff;
}
body.light-theme input:checked + .slider {
    background-color: #6200ea;
}
body.light-theme .container {
    background: linear-gradient(135deg, #fff 60%, #e3e3f3 100%);
    box-shadow: 0 8px 32px rgba(187,134,252,0.10);
}
body.light-theme .loft-aside {
    background: linear-gradient(135deg, #fff 60%, #e3e3f3 100%);
    color: #23234a;
}
body.light-theme .photo-frame {
    box-shadow: 0 4px 16px rgba(98,0,234,0.10);
}
body.light-theme .profile-photo {
    background: #fff;
}
body.light-theme .contact-info p, body.light-theme .contact-info a {
    color: #23234a;
}
body.light-theme .contact-info a:hover {
    color: #6200ea;
}
body.light-theme .icon {
    filter: grayscale(0%) brightness(100%);
}
body.light-theme .loft-main {
    background: transparent;
}
body.light-theme .loft-header {
    color: #23234a;
}
body.light-theme .loft-title {
    color: #6200ea;
    text-shadow: 0 2px 8px rgba(98,0,234,0.10);
}
body.light-theme .loft-section {
    background: linear-gradient(135deg, #fff 60%, #e3e3f3 100%);
    box-shadow: 0 4px 16px rgba(187,134,252,0.10);
}
body.light-theme .loft-section:hover {
    box-shadow: 0 8px 32px rgba(98,0,234,0.13);
}
body.light-theme .loft-subtitle {
    color: #6200ea;
    text-shadow: 0 2px 8px rgba(98,0,234,0.10);
}
body.light-theme .loft-job-title {
    color: #23234a;
}
body.light-theme .loft-job-date {
    color: #6200ea;
}
body.light-theme li {
    color: #23234a;
}
body.light-theme li:before {
    color: #6200ea;
}
body.light-theme .loft-skills {
    color: #6200ea;
}
body.light-theme .loft-text {
    color: #23234a;
}
body.light-theme .loft-link {
    color: #6200ea;
}
body.light-theme .loft-link:hover {
    color: #bb86fc;
}

/* Адаптивность */
@media (max-width: 1100px) {
    html { font-size: 15px; }
    .container { max-width: 900px; }
}
@media (max-width: 900px) {
    html { font-size: 14px; }
    .container { max-width: 700px; }
    .loft-aside { width: 220px; padding: 1em 0.5em 1em 0.5em; }
    .photo-frame { width: 120px; height: 120px; }
    .top-row {
        flex-direction: column;
        gap: 1.5em;
        align-items: stretch;
    }
    .loft-aside {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .photo-frame {
        width: 100%;
        height: auto;
        max-width: 400px;
        margin: 0 auto 1.2em auto;
    }
    .profile-photo {
        width: 100%;
        height: auto;
        border-radius: 1.2em;
    }
}
@media (max-width: 700px) {
    html { font-size: 13px; }
    .container { flex-direction: column; max-width: 98vw; margin: 1em auto; }
    .loft-aside { width: 100%; flex-direction: row; justify-content: flex-start; align-items: flex-start; padding: 1em 0.5em; box-shadow: none; }
    .photo-frame { width: 90px; height: 90px; margin-bottom: 0; margin-right: 1em; }
    .contact-info { padding-bottom: 0; }
    .loft-main { padding: 1.2em 0.5em 1em 0.5em; }
    .loft-section { padding: 1em 0.5em 0.7em 0.5em; margin-bottom: 1em; }
    .loft-title { font-size: 1.3rem; margin-bottom: 0.7em; }
    .loft-subtitle { font-size: 1.05rem; margin-bottom: 0.7em; }
    .loft-aside {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }
    .loft-header, .photo-frame, .contact-info {
        display: block !important;
        width: 100% !important;
        margin: 0 auto 1em auto !important;
        float: none !important;
    }
    .photo-frame {
        max-width: 220px !important;
        height: auto !important;
        margin: 0 auto 1em auto !important;
    }
    .profile-photo {
        width: 100% !important;
        height: auto !important;
        border-radius: 1.2em !important;
        object-fit: cover !important;
    }
    .contact-info {
        margin-bottom: 1.5em !important;
    }
}
@media (max-width: 400px) {
    html { font-size: 12px; }
    .container { margin: 0.5em auto; }
    .loft-title { font-size: 1.1rem; }
}
@media (max-width: 600px) {
    .photo-frame {
        max-width: 98vw;
    }
    .skills-image {
        max-width: 98vw;
    }
}
