* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0c0c0c 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Общие стили для хедера */
.header, #header {
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #000000 100%);
    color: #00ffff;
    padding: 2rem;
    text-align: center;
    border-bottom: 2px solid #00ffff;
    position: relative;
    overflow: hidden;
}

.header::before, #header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.header h1, #header h1, 
body > h1:first-of-type {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    font-weight: 300;
    letter-spacing: 2px;
}

.header p, #header p {
    font-size: 1.2rem;
    opacity: 0.8;
    text-shadow: 0 0 5px #00ffff;
}

/* Общие стили для навигации */
.nav, #menu {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem 0;
    border-bottom: 1px solid #ff00ff;
    backdrop-filter: blur(10px);
}

.nav-list, #menu ul, 
body > div:first-of-type ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-item, #menu li, 
body > div:first-of-type li {
    margin: 0;
    position: relative;
}

.nav-link, #menu a, 
body > div:first-of-type a {
    color: #00ffff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 0;
    transition: all 0.4s ease;
    display: block;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.nav-link::before, #menu a::before, 
body > div:first-of-type a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.nav-link:hover, #menu a:hover, 
body > div:first-of-type a:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #ff00ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.4);
    color: #ff00ff;
}

.nav-link:hover::before, #menu a:hover::before, 
body > div:first-of-type a:hover::before {
    left: 100%;
}

/* Общие стили для контента */
.content, #content, 
body > h1:first-of-type ~ * {
    flex: 1;
    padding: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
    border-left: 1px solid #00ffff;
    border-right: 1px solid #00ffff;
}

/* Специальные стили для страницы practices.html */
body > #menu + h1 {
    text-align: center;
    color: #ff00ff;
    margin: 2rem auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ffff;
    max-width: 1400px;
    width: calc(100% - 6rem);
}

body > h1 + h2,
body > h1 + p + h2,
body > h1 + p + h3 {
    max-width: 1400px;
    margin: 1rem auto;
    padding: 0 3rem;
    color: #00ffff;
}

body > h1 + p,
body > h2 + p,
body > h3 + p,
body > ul + p {
    max-width: 1400px;
    margin: 1rem auto;
    padding: 0 3rem;
}

body > ul {
    max-width: 1400px;
    margin: 1rem auto;
    padding: 1rem 3rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #ff00ff;
    border-left: 5px solid #00ffff;
}

body > ul li {
    margin: 0.5rem 0;
    padding-left: 1rem;
    position: relative;
}

body > ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00ffff;
}

/* Общие стили для футера */
.footer, #footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 100%);
    color: #00ffff;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    border-top: 2px solid #ff00ff;
}

.footer p, #footer p {
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px #00ffff;
}

/* Стили для главной страницы */
.profile-header {
    text-align: center;
    margin-bottom: 3rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 3rem;
    border: 1px solid #00ffff;
    position: relative;
    overflow: hidden;
}

.profile-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(0, 255, 255, 0.1) 50%, transparent 60%);
    animation: scan 4s linear infinite;
}

.profile-title {
    color: #ff00ff;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px #ff00ff;
    font-size: 2.5rem;
    font-weight: 300;
}

.profile-photo {
    border-radius: 50%;
    margin: 2rem auto;
    border: 3px solid #00ffff;
    box-shadow: 0 0 20px #00ffff;
    width: 200px;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.profile-photo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px #ff00ff;
    border-color: #ff00ff;
}

.profile-name {
    color: #00ffff;
    margin: 2rem 0 1rem 0;
    font-size: 2rem;
    text-shadow: 0 0 10px #00ffff;
}

.profile-group {
    color: #888;
    font-size: 1.3rem;
    font-style: italic;
}

.about-me {
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid #ff00ff;
    border-left: 5px solid #00ffff;
    position: relative;
}

.about-me::before {
    content: '▶';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ffff;
    font-size: 1.5rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.skill-tag {
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 100%);
    color: #00ffff;
    padding: 1.5rem;
    border-radius: 0;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #00ffff;
    position: relative;
    overflow: hidden;
}

.skill-tag:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
    border-color: #ff00ff;
    color: #ff00ff;
}

.experience-section {
    background: rgba(0, 0, 0, 0.7);
    padding: 3rem;
    border: 1px solid #00ffff;
}

.section-title {
    color: #ff00ff;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.2rem;
    text-shadow: 0 0 10px #ff00ff;
}

.experience-card {
    background: rgba(26, 26, 46, 0.6);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 0;
    border-left: 4px solid #ff00ff;
    transition: all 0.3s ease;
    position: relative;
}

.experience-card:hover {
    transform: translateX(10px);
    box-shadow: 5px 5px 15px rgba(255, 0, 255, 0.2);
}

.experience-title {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Стили для товаров */
.product-card {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    margin: 1.5rem;
    border-radius: 0;
    text-align: center;
    transition: all 0.4s ease;
    display: inline-block;
    width: calc(33.333% - 3rem);
    vertical-align: top;
    border: 1px solid #00ffff;
    position: relative;
}



.product-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.3);
    border-color: #ff00ff;
}

.product-card img {
    border-radius: 0;
    margin-bottom: 1.5rem;
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border: 2px solid #00ffff;
    transition: all 0.3s ease;
}

.product-card:hover img {
    border-color: #ff00ff;
    transform: scale(1.1);
}

.product-card h3 {
    color: #ff00ff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.product-card p {
    color: #00ffff;
    font-weight: bold;
    font-size: 1.3rem;
    text-shadow: 0 0 5px #00ffff;
}


.news-item {
    background: rgba(0, 0, 0, 0.7);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 0;
    border: 1px solid #00ffff;
    border-left: 5px solid #ff00ff;
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 5px 5px 20px rgba(0, 255, 255, 0.2);
}

.news-item h2 {
    color: #ff00ff;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px #ff00ff;
}

.news-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.news-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}


.contact-info {
    background: rgba(0, 0, 0, 0.7);
    padding: 3rem;
    border-radius: 0;
    text-align: center;
    border: 1px solid #00ffff;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.contact-info strong {
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
}

.contact-info button {
    background: linear-gradient(135deg, #000000 0%, #ff00ff 100%);
    color: #00ffff;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.contact-info button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
    color: #ffffff;
}

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

.contact-info button:hover::before {
    left: 100%;
}





