/* ========== ПОДКЛЮЧЕНИЕ ШРИФТА ========== */
@font-face {
    font-family: 'MySiteFont';
    src: url('fonts/font_site1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ========== ОБНУЛЕНИЕ И БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MySiteFont', Arial, sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
    width: 100%;
}

/* ========== ШАПКА И МЕНЮ ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
}

.burger {
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #003366;
    margin: 3px 0;
    transition: 0.3s;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 60px);
    background-color: #003366;
    transition: left 0.3s ease;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    z-index: 999;
    overflow-y: auto;
}

.menu.active {
    left: 0;
}

.menu ul {
    list-style: none;
}

.menu ul li {
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 15px 25px;
    transition: background 0.2s, border-left 0.2s;
}

.menu ul li a:hover {
    background-color: #002244;
}

.menu ul li a.active {
    background-color: #004488;
    border-left: 4px solid #ffd700;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

.theme-toggle {
    position: absolute;
    right: 20px;
    top: 10px;
    width: 40px;
    height: 40px;
    background-color: #003366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-icon {
    font-size: 24px;
    line-height: 1;
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
main {
    margin-top: 60px;
    padding: 0;
    min-height: calc(100vh - 60px);
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    width: 100%;
    box-sizing: border-box;
}

.section {
    display: none;
    width: 100%;
}

.section.active {
    display: block;
}

h1, h2, h3 {
    color: #003366;
    margin-bottom: 20px;
    word-wrap: break-word;
}

h1 {
    font-size: 1.8em;
    margin-bottom: 25px;
}

/* ========== БЛОКИ НА ГЛАВНОЙ ========== */
#home-content {
    margin: 20px 0;
}

.home-block {
    margin-bottom: 30px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.home-block.image-left,
.home-block.image-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-block.image-left .text,
.home-block.image-right .text {
    width: 100%;
}

.home-block img {
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.home-block .text {
    flex: 1;
    width: 100%;
}

.home-block .text h3 {
    margin-bottom: 15px;
    color: #003366;
    font-size: 1.3em;
}

.home-block .text p {
    margin-bottom: 10px;
    line-height: 1.6;
    word-wrap: break-word;
}

.home-block.image-full {
    text-align: left;
    padding: 0;
    background: none;
    box-shadow: none;
}

.home-block.image-full img {
    max-width: 100%;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
}

.home-block.image-full .text {
    padding: 0;
}

.home-block.text-only {
    text-align: left;
    background: none;
    box-shadow: none;
    padding: 20px 0;
}

/* ========== СЕТКА ПРОЕКТОВ ========== */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
}

.project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #003366;
}

.project-card h3 {
    padding: 15px;
    color: #003366;
    font-size: 1.1em;
    text-align: center;
    word-wrap: break-word;
}

/* ========== ДЕТАЛЬНАЯ ИНФОРМАЦИЯ ПРОЕКТА ========== */
#project-detail {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    word-wrap: break-word;
}

#project-detail img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
    border-radius: 12px;
}

#project-detail h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    word-wrap: break-word;
}

#project-detail .version {
    color: #666;
    margin: 15px 0;
    font-size: 0.95em;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    display: inline-block;
}

.project-meta {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    color: #666;
    font-size: 0.85em;
    margin-bottom: 5px;
}

.meta-value {
    color: #003366;
    font-weight: bold;
    font-size: 1em;
    word-wrap: break-word;
}

.file-info {
    background: #f0f7ff;
    border: 1px solid #003366;
    border-radius: 12px;
    padding: 12px 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.file-info .file-size {
    background: #003366;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
}

.file-info .file-label {
    color: #003366;
    font-weight: bold;
}

.download-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed #003366;
}

.download-btn {
    display: inline-block;
    background-color: #003366;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1em;
    font-weight: bold;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
    width: 100%;
    max-width: 250px;
}

.download-btn:hover {
    background-color: #002244;
    transform: translateY(-2px);
}

.back-btn {
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}

.back-btn:hover {
    background-color: #002244;
}

/* ========== НОВОСТИ ========== */
.news-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #003366;
    word-wrap: break-word;
}

.news-item h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
    word-wrap: break-word;
}

.news-item .date {
    color: #666;
    font-size: 0.85em;
    margin-bottom: 12px;
    display: block;
}

.news-item p {
    word-wrap: break-word;
    line-height: 1.6;
}

.news-item a {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.news-item a:hover {
    text-decoration: underline;
}

/* ========== ПОЛЕЗНЫЕ ССЫЛКИ ========== */
#useful-links {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 16px;
}

#useful-links h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
}

#useful-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#useful-links a {
    color: #003366;
    text-decoration: none;
    padding: 10px 15px;
    background: #fff;
    border-radius: 25px;
    display: block;
    border: 1px solid #003366;
    transition: all 0.2s;
    text-align: center;
    word-wrap: break-word;
}

#useful-links a:hover {
    background: #003366;
    color: #fff;
}

/* ========== РАЗРАБОТЧИКИ ========== */
.developers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.developer-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.developer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.developer-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-bottom: 3px solid #003366;
    background: #f5f5f5;
}

.developer-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.developer-card h3 {
    color: #003366;
    font-size: 1.3em;
    margin-bottom: 8px;
    font-weight: bold;
    word-wrap: break-word;
    text-align: center;
}

.developer-card .role {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 12px;
    font-style: italic;
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 30px;
    display: inline-block;
    align-self: center;
    text-align: center;
}

.developer-card .short-desc {
    color: #333;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 10px 0 0;
    text-align: left;
    word-wrap: break-word;
}

/* Детальная информация о разработчике */
#developer-detail {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    word-wrap: break-word;
}

.developer-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.developer-header img {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 3px solid #003366;
    margin: 0 auto;
}

.developer-info {
    flex: 1;
    width: 100%;
}

.developer-info h2 {
    color: #003366;
    font-size: 1.6em;
    margin-bottom: 8px;
    word-wrap: break-word;
    text-align: center;
}

.developer-info .role {
    color: #003366;
    font-size: 1.1em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #003366;
    display: inline-block;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.developer-info p {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #444;
    word-wrap: break-word;
}

.developer-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
    background: #e6edf6;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #003366;
}

.dev-stat-item {
    text-align: center;
    padding: 12px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,51,102,0.1);
    border: 1px solid #003366;
}

.dev-stat-item .stat-label {
    color: #003366;
    font-size: 0.85em;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.dev-stat-item .stat-value {
    color: #000000;
    font-size: 1.4em;
    font-weight: 800;
}

.developer-skills {
    margin: 20px 0;
}

.developer-skills h3 {
    font-size: 1.2em;
    margin-bottom: 12px;
    color: #003366;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.skill-tag {
    background: #003366;
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85em;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,51,102,0.2);
    word-wrap: break-word;
}

.developer-projects {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed #003366;
}

.developer-projects h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #003366;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.project-badge {
    background: #e8f0fe;
    color: #003366;
    padding: 8px 15px;
    border-radius: 30px;
    text-decoration: none;
    border: 1px solid #003366;
    transition: all 0.3s;
    font-weight: 500;
    display: inline-block;
    font-size: 0.9em;
    text-align: center;
    flex: 0 0 auto;
}

.project-badge:hover {
    background: #003366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,51,102,0.2);
}

/* ========== СТАТИСТИКА НА ГЛАВНОЙ ========== */
.stats-section {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #003366, #001122);
    border-radius: 16px;
    color: white;
}

.stats-section h2 {
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    font-size: 1.4em;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.85em;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== ПОИСК ========== */
.search-container {
    margin: 20px 0;
}

#project-search,
#faq-search {
    width: 100%;
    padding: 12px 15px;
    font-size: 0.95em;
    border: 2px solid #003366;
    border-radius: 30px;
    transition: 0.3s;
    box-sizing: border-box;
}

#project-search:focus,
#faq-search:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(0,51,102,0.3);
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    font-size: 1em;
    color: #666;
}

/* ========== FAQ ========== */
.faq-list {
    margin-top: 25px;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 15px 18px;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #003366;
    transition: 0.3s;
    font-size: 0.95em;
    gap: 10px;
}

.faq-question:hover {
    background: #e8e8e8;
}

.faq-question .arrow {
    font-size: 1em;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-question .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 18px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: white;
    line-height: 1.6;
    font-size: 0.9em;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 15px 18px;
}

/* ========== КОНТАКТЫ ========== */
#contact-info {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    word-wrap: break-word;
}

#contact-info p {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95em;
}

#contact-info a {
    color: #003366;
    text-decoration: none;
    border-bottom: 1px dashed #003366;
    word-wrap: break-word;
}

#contact-info a:hover {
    border-bottom: 1px solid #003366;
}

/* ========== КНОПКА НАВЕРХ ========== */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.scroll-top:hover {
    background-color: #002244;
    transform: translateY(-3px);
}

.scroll-top.visible {
    display: flex;
}

/* ========== FOOTER ========== */
footer {
    background: #003366;
    color: white;
    margin-top: 40px;
    padding: 30px 0 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9em;
}

.footer-column a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85em;
}

.footer-bottom a {
    color: #ddd;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* ========== АДАПТИВНОСТЬ ========== */

/* Планшеты (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .developers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .developer-header {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .developer-header img {
        max-width: 200px;
        border-radius: 16px;
    }
    
    .developer-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .home-block.image-left img,
    .home-block.image-right img {
        border-radius: 12px;
    }
}

/* Маленькие десктопы и планшеты (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .container {
        padding: 25px 20px;
    }
    
    .developers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .home-block.image-left,
    .home-block.image-right {
        flex-direction: row;
        gap: 30px;
        align-items: center;
    }
    
    .home-block.image-left {
        flex-direction: row;
    }
    
    .home-block.image-right {
        flex-direction: row-reverse;
    }
    
    .home-block.image-left img,
    .home-block.image-right img {
        width: 300px;
        max-width: 40%;
        border-radius: 12px;
        flex-shrink: 0;
    }
    
    .developer-header {
        flex-direction: row;
        gap: 30px;
    }
    
    .developer-header img {
        width: 220px;
        height: 220px;
        border-radius: 18px;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Десктопы (993px и выше) */
@media (min-width: 993px) {
    .container {
        padding: 30px 20px;
    }
    
    .developers-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .home-block.image-left,
    .home-block.image-right {
        flex-direction: row;
        gap: 40px;
        align-items: center;
    }
    
    .home-block.image-left {
        flex-direction: row;
    }
    
    .home-block.image-right {
        flex-direction: row-reverse;
    }
    
    .home-block.image-left img,
    .home-block.image-right img {
        width: 400px;
        max-width: 40%;
        border-radius: 16px;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .developer-header {
        flex-direction: row;
        gap: 40px;
        align-items: flex-start;
    }
    
    .developer-header img {
        width: 300px;
        height: 300px;
        border-radius: 24px;
    }
    
    .developer-info h2 {
        font-size: 2.2em;
        text-align: left;
    }
    
    .developer-info .role {
        width: auto;
        text-align: left;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
    
    #useful-links ul {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    #useful-links a {
        text-align: center;
        padding: 8px 20px;
        border-radius: 30px;
    }
}

/* Большие десктопы (1200px и выше) */
@media (min-width: 1200px) {
    .home-block.image-left img,
    .home-block.image-right img {
        width: 450px;
        max-width: 40%;
        border-radius: 16px;
    }
    
    .developer-header img {
        width: 350px;
        height: 350px;
        border-radius: 28px;
    }
}

/* ========== ТЁМНАЯ ТЕМА ========== */
body.dark-theme {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

body.dark-theme header {
    background-color: #2d2d2d;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

body.dark-theme .burger span {
    background-color: #66aaff;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3 {
    color: #66aaff;
}

body.dark-theme .menu {
    background-color: #002244;
}

body.dark-theme .menu ul li a.active {
    background-color: #0055aa;
}

body.dark-theme .overlay {
    background: rgba(0,0,0,0.7);
}

body.dark-theme .theme-toggle {
    background-color: #66aaff;
}

body.dark-theme .project-card,
body.dark-theme .news-item,
body.dark-theme #project-detail,
body.dark-theme #contact-info,
body.dark-theme .faq-item {
    background-color: #2d2d2d;
    border-color: #444;
    color: #f0f0f0;
}

body.dark-theme .project-card h3 {
    color: #66aaff;
}

body.dark-theme #company-info,
body.dark-theme .home-block {
    background-color: #2d2d2d;
}

body.dark-theme .home-block .text p {
    color: #f0f0f0;
}

body.dark-theme .home-block .text h3 {
    color: #66aaff;
}

body.dark-theme #useful-links {
    background-color: #2d2d2d;
}

body.dark-theme #useful-links a {
    background-color: #3a3a3a;
    color: #66aaff;
    border-color: #66aaff;
}

body.dark-theme #useful-links a:hover {
    background-color: #66aaff;
    color: #1a1a1a;
}

body.dark-theme #useful-links h2 {
    color: #66aaff;
}

body.dark-theme .developer-card {
    background-color: #2d2d2d !important;
    border-color: #66aaff !important;
}

body.dark-theme .developer-card h3 {
    color: #66aaff !important;
}

body.dark-theme .developer-card .role {
    background: #3a3a3a !important;
    color: #dddddd !important;
    border: 1px solid #66aaff;
}

body.dark-theme .developer-card .short-desc {
    color: #ffffff !important;
}

body.dark-theme .developer-card img {
    border-bottom-color: #66aaff !important;
}

body.dark-theme #developer-detail {
    background-color: #2d2d2d !important;
    border: 1px solid #66aaff;
}

body.dark-theme .developer-info h2 {
    color: #66aaff !important;
}

body.dark-theme .developer-info .role {
    color: #66aaff !important;
    border-bottom-color: #66aaff !important;
}

body.dark-theme .developer-info p {
    color: #ffffff !important;
}

body.dark-theme .developer-stats {
    background: #1a1a1a !important;
    border-color: #66aaff !important;
}

body.dark-theme .dev-stat-item {
    background: #2d2d2d !important;
    border-color: #66aaff !important;
}

body.dark-theme .dev-stat-item .stat-label {
    color: #66aaff !important;
}

body.dark-theme .dev-stat-item .stat-value {
    color: #ffffff !important;
}

body.dark-theme .developer-skills h3 {
    color: #66aaff !important;
}

body.dark-theme .skill-tag {
    background: #66aaff !important;
    color: #1a1a1a !important;
}

body.dark-theme .developer-projects h3 {
    color: #66aaff !important;
}

body.dark-theme .developer-projects {
    border-top-color: #66aaff !important;
}

body.dark-theme .project-badge {
    background: #2d2d2d !important;
    color: #66aaff !important;
    border-color: #66aaff !important;
}

body.dark-theme .project-badge:hover {
    background: #66aaff !important;
    color: #1a1a1a !important;
}

body.dark-theme .version,
body.dark-theme .date,
body.dark-theme .meta-label {
    color: #aaa;
}

body.dark-theme .project-meta {
    background-color: #333;
}

body.dark-theme .meta-value {
    color: #66aaff;
}

body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
    background-color: #333;
    color: #f0f0f0;
    border-color: #555;
}

body.dark-theme .faq-question {
    background-color: #333;
    color: #66aaff;
}

body.dark-theme .faq-answer {
    background-color: #2d2d2d;
    color: #f0f0f0;
}

body.dark-theme .file-info {
    background: #2d2d2d;
    border-color: #66aaff;
}

body.dark-theme .file-info .file-label {
    color: #66aaff;
}

body.dark-theme .file-info .file-size {
    background: #66aaff;
    color: #1a1a1a;
}

body.dark-theme footer {
    background-color: #002244;
    color: #ddd;
}

body.dark-theme .scroll-top {
    background-color: #66aaff;
    color: #1a1a1a;
}

body.dark-theme .stats-section {
    background: linear-gradient(135deg, #004488, #001122);
}

.dev-stat-item .stat-label {
    color: #003366 !important;
}

body.dark-theme .dev-stat-item .stat-label {
    color: #66aaff !important;
}

/* ========== СТИЛИ ДЛЯ СЧЕТЧИКА ПРОЕКТОВ ========== */
.projects-counter {
    margin: 15px 0 20px 0;
    padding: 10px 15px;
    background: #f0f7ff;
    border-radius: 12px;
    font-size: 0.95em;
    color: #003366;
    text-align: center;
    font-weight: 500;
    border: 1px solid #003366;
    display: inline-block;
    width: auto;
    min-width: 200px;
}

/* Тёмная тема */
body.dark-theme .projects-counter {
    background: #2d2d2d;
    color: #66aaff;
    border-color: #66aaff;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .projects-counter {
        font-size: 0.85em;
        padding: 8px 12px;
        margin: 10px 0 15px 0;
        width: 100%;
        text-align: center;
    }
}