* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: #e0e0e0;
}

p {
    margin-bottom: 15px;
    color: #b0b0b0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    /* Изменено на розовый градиент */
    background: linear-gradient(135deg, #ff007f, #ff3399);
    color: #ffffff; /* Изменил цвет текста на белый для лучшего контраста с розовым */
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    /* Изменено на розовую тень */
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    /* Изменено на розовую тень */
    box-shadow: 0 8px 25px rgba(255, 0, 127, 0.4);
    /* Изменено на розовый градиент */
    background: linear-gradient(135deg, #ff3399, #ff007f);
}

.btn:active {
    transform: translateY(-1px);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    position: relative;
    color: #e0e0e0;
    /* Изменено на розовый градиент */
    background: linear-gradient(135deg, #ff007f, #ff3399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    /* Изменено на розовый градиент */
    background: linear-gradient(135deg, #ff007f, #ff3399);
    border-radius: 2px;
}

.hero {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #2d2d2d 100%);
    color: #e0e0e0;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Изменены RGBA на розовые */
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 0, 127, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 51, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    padding-bottom: 10px;
}

.hero-text h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    color: #e0e0e0;
    line-height: 1.4;
    /* Изменено на розовый градиент */
    background: linear-gradient(135deg, #fda4d0, #dd006f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    /* Изменено на розовый */
    color: #ff007f;
    font-weight: 600;
    line-height: 1.3;
}

.hero-text p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: #b0b0b0;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    padding: 12px 20px;
    /* Изменено на розовый RGBA */
    background: rgba(255, 0, 127, 0.1);
    border-radius: 10px;
    /* Изменено на розовый */
    border-left: 4px solid #ff007f;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateX(10px);
}

.feature svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    /* Добавил цвет иконкам */
    fill: #ff007f;
}

.feature:hover svg {
    transform: scale(1.2);
}

.hero-avatar {
    flex: 0 0 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-container {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    /* Изменено на розовый градиент */
    background: linear-gradient(135deg, #ff007f, #ff3399, #ff007f);
    padding: 8px;
    /* Изменено на розовые тени */
    box-shadow: 
        0 15px 35px rgba(255, 0, 127, 0.4),
        0 0 100px rgba(255, 0, 127, 0.2);
    animation: float 6s ease-in-out infinite;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2a2a2a;
    display: none;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid #2a2a2a;
    text-align: center;
    padding: 20px;
}

.avatar-placeholder p {
    /* Изменено на розовый */
    color: #ff007f;
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 0;
    font-weight: 600;
}

.avatar-loaded .avatar {
    display: block;
}

.avatar-loaded .avatar-placeholder {
    display: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.about {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Изменены RGBA на розовые */
    background: 
        radial-gradient(circle at 10% 10%, rgba(255, 0, 127, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(255, 51, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.about-text {
    max-width: 800px;
    text-align: center;
}

.about-text p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.8;
    /* Изменено на розовый RGBA */
    background: rgba(255, 0, 127, 0.05);
    padding: 25px;
    border-radius: 15px;
    /* Изменено на розовый */
    border-left: 4px solid #ff007f;
}

.city-link {
    /* Изменено на розовый */
    color: #ff007f;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.city-link:hover {
    /* Изменено на вторичный розовый */
    color: #ff3399;
    border-bottom: 2px solid #ff3399;
}

.buttons-intro {
    margin: 40px 0 25px 0;
    text-align: center;
}

.buttons-intro h3 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 15px;
    /* Изменено на розовый градиент */
    background: linear-gradient(135deg, #ff007f, #ff3399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.buttons-intro p {
    color: #b0b0b0;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin: 30px 0 50px 0;
}

.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    
    /* НОВЫЕ СВОЙСТВА ДЛЯ АНИМАЦИИ ФОНА */
    opacity: 0; /* Изначально фон прозрачный */
    visibility: hidden; /* Изначально невидимый */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Плавный переход */
}

.modal.open {
    opacity: 1; /* Фон становится непрозрачным */
    visibility: visible; /* Становится видимым */
    /* display: flex добавляется в JS, здесь не нужно */
}

.modal-content {
    /* Старые стили фона и рамки оставляем */
    background: linear-gradient(135deg, #2a2a2a, #1f1f1f);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(255, 0, 127, 0.1);
    border: 2px solid #ff007f;
    position: relative;
    overflow: hidden;

    /* ИЗМЕНЕНИЯ ДЛЯ ЦЕНТРИРОВАНИЯ И АНИМАЦИИ */
    /* Убираем margin: 5% auto; и используем современное центрирование */
    position: absolute;
    top: 50%;
    left: 50%;
    
    /* НАЧАЛЬНОЕ СОСТОЯНИЕ ОКНА (ЗАКРЫТО) */
    /* Смещаем немного вверх, уменьшаем и делаем прозрачным */
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.9);
    
    /* Плавный переход для закрытия (обычный ease) */
    transition: all 0.3s ease-in;
}

/* СОСТОЯНИЕ ОКНА ПРИ ОТКРЫТИИ */
/* Когда у родителя .modal есть класс .open */
.modal.open .modal-content {
    opacity: 1;
    /* Возвращаем в центр и к нормальному размеру */
    transform: translate(-50%, -50%) scale(1);
    
    /* Плавный переход для открытия (с эффектом "пружинки" в конце) */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    /* Изменено на розовый градиент */
    background: linear-gradient(135deg, #ff007f, #ff3399);
}


.modal-header {
    /* Изменено на розовый градиент */
    background: linear-gradient(135deg, #ff007f, #ff3399);
    color: #ffffff; /* Изменен цвет текста на белый */
    padding: 25px;
    margin: 0;
    border-radius: 18px 18px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    color: #ffffff; /* Изменен цвет текста на белый */
    font-size: 1.6rem;
    font-weight: 700;
}

.modal-header .close {
    color: #ffffff; /* Изменен цвет на белый */
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: static;
    float: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-header .close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
    /* Изменено на розовый */
    color: #ff007f;
}

.modal-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.modal-list li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #3a3a3a;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.modal-list li:hover {
    /* Изменено на розовый RGBA */
    background: rgba(255, 0, 127, 0.05);
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
}

.modal-list li:last-child {
    border-bottom: none;
}

.list-icon {
    font-size: 1.3rem;
    margin-right: 15px;
    width: 30px;
    text-align: center;
    /* Изменено на розовый */
    color: #ff007f;
}

.modal-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    border-radius: 12px;
    /* Изменено на розовый */
    border-left: 4px solid #ff007f;
    gap: 15px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateX(5px);
}

.stat-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    /* Изменено на розовый */
    color: #ff007f;
}

.stat-info {
    flex: 1;
}

.stat-info strong {
    /* Изменено на розовый */
    color: #ff007f;
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.stat-info span {
    color: #b0b0b0;
    font-size: 0.95rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    border-radius: 12px;
    /* Изменено на розовый */
    border-left: 4px solid #ff007f;
    gap: 15px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.3rem;
    width: 40px;
    text-align: center;
    /* Изменено на розовый */
    color: #ff007f;
}

.contact-info {
    flex: 1;
}

.contact-info strong {
    /* Изменено на розовый */
    color: #ff007f;
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-info span {
    color: #b0b0b0;
    font-size: 0.95rem;
}

.modal-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #3a3a3a;
    text-align: center;
}

.modal-footer p {
    margin-bottom: 0;
    font-size: 1rem;
}

.cat-emoji {
    font-size: 1.2rem;
}

.back-btn {
    margin-top: 20px;
}

.gallery-section {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    padding: 80px 0;
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Изменены RGBA на розовые */
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 0, 127, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 51, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.photo-item {
    /* --- ИЗМЕНЕНИЕ: Добавление CSS переменных для размера --- */
    --photo-width: 100%; /* Ширина по умолчанию - на 100% от ячейки сетки */
    --photo-height: 300px; /* Высота по умолчанию */
    
    width: var(--photo-width);
    height: var(--photo-height);
    /* --- КОНЕЦ ИЗМЕНЕНИЯ --- */
    
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    border-radius: 20px;
    /* Исходный розовый цвет для всех по умолчанию */
    border: 2px solid #ff007f; 
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.photo-item:hover {
    transform: translateY(-10px) scale(1.02);
    /* Изменено на розовые тени */
    box-shadow: 
        0 15px 35px rgba(255, 0, 127, 0.3),
        0 0 50px rgba(255, 0, 127, 0.1);
    /* Изменено на вторичный розовый */
    border-color: #ff3399;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    position: relative;
    overflow: hidden;
}

.photo-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Изменено на розовый RGBA */
    background: linear-gradient(135deg, transparent, rgba(255, 0, 127, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.photo-item:hover .photo-placeholder::before {
    opacity: 1;
}

.photo-placeholder span {
    font-size: 4rem;
    /* Изменено на розовый */
    color: #ff007f;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.photo-item:hover .photo-placeholder span {
    transform: scale(1.2);
}

.photo-placeholder p {
    /* Изменено на розовый */
    color: #ff007f;
    font-weight: 700;
    margin: 0;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

/* --- ИНДИВИДУАЛЬНЫЕ СТИЛИ ДЛЯ КАЖДОЙ ФОТОГРАФИИ --- */

/* 1. Автопортрет (Синий стиль) */
.photo-item.photo-1 {
    /* ПРИМЕР: Сделать эту фотографию выше (350px) */
    --photo-height: 350px; 
    
    background: linear-gradient(135deg, #2a2a35, #1f1f2a);
}



.photo-item.photo-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    transform: scale(1);
}

.photo-item.photo-1 .photo-placeholder {
    background: linear-gradient(135deg, #2a2a35, #1f1f2a);
}






/* 2. Игровые моменты (Зеленый стиль) */
.photo-item.photo-2 {
    /* ПРИМЕР: Сделать эту фотографию короче (200px) */
    --photo-height: 350px; 


}

.photo-item.photo-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    transform: scale(1);
}


/* 3. Работа с железом (Оранжевый стиль) */
.photo-item.photo-3 {
    --photo-height: 350px; 
}

.photo-item.photo-3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    transform: scale(1.2) translateX(10%);
}

/* 4. Настройка ПК (Красный стиль) */
.photo-item.photo-4 {
    --photo-height: 350px; 
}

.photo-item.photo-4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    transform: scale(1.15) translateX(7%);
}

/* 5. Автомобили (Фиолетовый стиль) */
.photo-item.photo-5 {
    --photo-height: 350px; 
}

.photo-item.photo-5 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    transform: scale(1) translateY(0%);
}

.photo-item.photo-6 {
    --photo-height: 350px; 
}
.photo-item.photo-6 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    transform: scale(1.1) translateY(-4.9%);
}

/* Не требует дополнительных стилей, так как использует базовые стили photo-item */


/* 7. Точная настройка (Желтый стиль) */
.photo-item.photo-7 {
    --photo-height: 350px; 
}

.photo-item.photo-7 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    transform: scale(1.2) translateY(-5%);
}

/* 8. Творческие проекты (Голубой стиль) */
.photo-item.photo-8 {
    --photo-height: 350px; 
}

.photo-item.photo-8 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    transform: scale(1);
}

/* 9. Эксперименты (Серый/Белый стиль) */
.photo-item.photo-9 {
    --photo-height: 350px; 
}

.photo-item.photo-9 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    transform: scale(1.05);
}

/* --- КОНЕЦ ИНДИВИДУАЛЬНЫХ СТИЛЕЙ --- */

.files-section {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    padding: 80px 0;
    position: relative;
}

.files-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Изменены RGBA на розовые */
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 127, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 51, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.files-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 2;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.file-card {
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    border-radius: 20px;
    padding: 30px;
    /* Изменено на розовый */
    border: 2px solid #ff007f;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.file-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    /* Изменено на розовый градиент */
    background: linear-gradient(135deg, #ff007f, #ff3399);
}

.file-card:hover {
    transform: translateY(-10px);
    /* Изменено на розовые тени */
    box-shadow: 
        0 15px 35px rgba(255, 0, 127, 0.3),
        0 0 50px rgba(255, 0, 127, 0.1);
    /* Изменено на вторичный розовый */
    border-color: #ff3399;
}

.file-icon {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 25px;
    /* Изменено на розовый */
    color: #ff007f;
    transition: transform 0.3s ease;
}

.file-card:hover .file-icon {
    transform: scale(1.2);
}

.file-info {
    flex: 1;
    margin-bottom: 25px;
}

.file-info h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-align: center;
}

.file-info p {
    color: #b0b0b0;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

.file-meta {
    display: flex;
    justify-content: space-between;
    /* Изменено на розовый */
    color: #ff007f;
    font-size: 0.95rem;
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid #3a3a3a;
    font-weight: 600;
}

.file-download {
    text-align: center;
}

.file-download .btn {
    width: 100%;
    justify-content: center;
}

.download-icon {
    margin-right: 8px;
}

.back-to-main {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.file-category {
    display: inline-block;
    /* Изменено на розовый градиент */
    background: linear-gradient(135deg, #ff007f, #ff3399);
    color: #ffffff; /* Белый текст на розовом фоне */
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.windows-warning {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    /* Изменено на розовые RGBA */
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.1), rgba(255, 51, 153, 0.1));
    border-radius: 15px;
    /* Изменено на розовый */
    border: 2px solid #ff007f;
    position: relative;
    z-index: 2;
}

.windows-warning p {
    /* Изменено на розовый */
    color: #ff007f;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Tools Section Styles */
.tools-section {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    padding: 40px 0;
    position: relative;
}

.tools-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Изменены RGBA на розовые */
    background: 
        radial-gradient(circle at 60% 40%, rgba(255, 0, 127, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 51, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.tools-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.tab-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    color: #e0e0e0;
    border: 2px solid #3a3a3a;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tab-btn:hover {
    /* Изменено на розовый градиент */
    background: linear-gradient(135deg, #ff007f, #ff3399);
    color: #ffffff; /* Белый текст при наведении */
    /* Изменено на розовый */
    border-color: #ff007f;
    transform: translateY(-3px);
    /* Изменено на розовую тень */
    box-shadow: 0 8px 25px rgba(255, 0, 127, 0.3);
}

.tab-btn.active {
    /* Изменено на розовый градиент */
    background: linear-gradient(135deg, #ff007f, #ff3399);
    color: #ffffff; /* Белый текст для активной кнопки */
    /* Изменено на розовый */
    border-color: #ff007f;
    /* Изменено на розовую тень */
    box-shadow: 0 8px 25px rgba(255, 0, 127, 0.4);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tool-card {
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    border-radius: 20px;
    padding: 30px;
    /* Изменено на розовый */
    border: 2px solid #ff007f;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.tool-header {
    margin-bottom: 25px;
    text-align: center;
}

.tool-header h3 {
    /* Изменено на розовый */
    color: #ff007f;
    font-size: 2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tool-header p {
    color: #b0b0b0;
    font-size: 1.2rem;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.input-field {
    flex: 1;
    min-width: 250px;
    padding: 16px;
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    /* Изменено на розовый */
    border-color: #ff007f;
    /* Изменено на розовую тень */
    box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.2);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #2a2a2a;
    border-radius: 3px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    /* Изменено на розовый градиент */
    background: linear-gradient(135deg, #ff007f, #ff3399);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.results-container {
    margin-top: 25px;
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.result-item {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #5555ff;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.result-item:hover {
    transform: translateY(-5px);
}

/* Цвета типов записей DNS оставлены как есть, так как они функциональные */
.dns-record-a {
    border-left-color: #00ff00;
}

.dns-record-aaaa {
    border-left-color: #55ff55;
}

.dns-record-mx {
    border-left-color: #ffaa00;
}

.dns-record-ns {
    border-left-color: #ff5555;
}

.dns-record-txt {
    border-left-color: #aa55ff;
}

.dns-record-cname {
    border-left-color: #55aaff;
}

.dns-record-soa {
    border-left-color: #ff55aa;
}

.dns-record-ptr {
    border-left-color: #ffa500;
}

.dns-record-srv {
    border-left-color: #20b2aa;
}

.dns-record-caa {
    border-left-color: #9370db;
}

.record-type {
    font-weight: bold;
    margin-bottom: 12px;
    /* Изменено на розовый */
    color: #ff007f;
    font-size: 1.2rem;
}

.record-value {
    color: #ccc;
    margin-left: 15px;
    margin-bottom: 8px;
    font-family: monospace;
    word-break: break-all;
    line-height: 1.5;
}

.record-ttl {
    color: #888;
    font-size: 0.85rem;
    margin-left: 10px;
}

.server-info {
    background: linear-gradient(135deg, #2a2a2a, #1f1f1f) !important;
    /* Изменено на розовый */
    border-left-color: #ff007f !important;
    margin-bottom: 25px;
    grid-column: 1 / -1;
}

.record-priority {
    /* Изменено на вторичный розовый (или можно оставить оранжевым для выделения приоритета) */
    color: #ff3399; 
    font-weight: bold;
    margin-right: 8px;
}

.empty-record {
    color: #888;
    font-style: italic;
}

.status {
    text-align: center;
    margin-top: 25px;
    /* Изменено на розовый */
    color: #ff007f;
    font-size: 1rem;
    font-weight: 600;
}

.loading {
    color: #aaa;
    font-style: italic;
}

.error {
    color: #ff5555;
}

.success {
    color: #00ff00;
}

/* IP Info Styles */
.ip-section {
    background: linear-gradient(135deg, #333, #2a2a2a);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
    border: 2px solid #3a3a3a;
}

.ip-title {
    /* Изменено на розовый */
    color: #ff007f;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.ip-address {
    font-size: 1.6rem;
    font-weight: bold;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 12px;
    word-break: break-all;
    margin-bottom: 20px;
    border: 2px solid #3a3a3a;
    font-family: monospace;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: linear-gradient(135deg, #333, #2a2a2a);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid #3a3a3a;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h4 {
    /* Изменено на розовый */
    color: #ff007f;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3a3a3a;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #3a3a3a;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    font-weight: bold;
    color: #aaa;
    flex: 1;
}

.info-value {
    color: #fff;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
    flex: 2;
}

/* Мобильные стили с статичным аватаром */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
        margin-bottom: 20px;
        line-height: 1.2;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
        line-height: 1.3;
    }
    
    .hero-text p {
        font-size: 1.2rem;
        margin-bottom: 35px;
        line-height: 1.7;
    }
    
    .hero-avatar {
        flex: none;
        width: 280px;
        height: 280px;
    }
    
    .avatar-container {
        width: 280px;
        height: 280px;
        animation: none; /* Убираем анимацию на мобилках */
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 220px;
        justify-content: center;
    }
    
    .buttons-intro h3 {
        font-size: 1.7rem;
    }
    
    .buttons-intro p {
        font-size: 1.1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .photo-item {
        height: var(--photo-height, 280px); /* Используем переменную, но с запасным значением */
    }
    
    .photo-placeholder span {
        font-size: 3.5rem;
    }
    
    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .file-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.3rem;
        margin-bottom: 15px;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .feature {
        font-size: 1.1rem;
    }
    
    .hero-avatar {
        width: 250px;
        height: 250px;
    }
    
    .avatar-container {
        width: 250px;
        height: 250px;
        animation: none; /* Убираем анимацию на мобилках */
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-item {
        height: var(--photo-height, 250px); /* Используем переменную, но с запасным значением */
    }
    
    .files-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-value {
        text-align: left;
        max-width: 100%;
        width: 100%;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-field {
        min-width: 100%;
    }
    
    .records-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
}