/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #EDE3FB;
    color: #2c3e50;
    line-height: 1.6;
    overflow-x: hidden;
}


.presentation-frame .video-container {
    margin: 20px auto;
}


.presentation-frame .video-container video {
    width: 100%;
}


.download_presentation {
    color: white;
    font-size: 25px;
    padding: 15px 35px;
    margin-top: 20px;
    border: 2px solid white;
    border-radius: 40px;
}

.test_project {
    display: flex;
    position: relative;
    width: 90%;
    height: 60vh;
    background: linear-gradient(135deg, var(--accent-teal), var(--light-purple));
    border-radius: 30px;
}

.under_presentation {
    margin: 40px auto;
    margin-top: 20px;
}


.to_main {
    align-self: flex-start;
    text-align: left;
    font-size: 35px;
    font-weight: 600;
    color: white;
    border-bottom: 5px solid white;
    padding-bottom: 4px;

}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Новая цветовая палитра */
:root {
    --primary-blue: #02419E;
    --accent-teal: #17F2F4;
    --background-light: #EDE3FB;
    --light-purple: #D1B8F1;
    --dark-purple: #541F91;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
}

a {
    text-decoration: none;
}

ol,ul {
    padding-left: 18px;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.animate {
    opacity: 1;
    transform: translate(0, 0);
}

/* Шапка */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-purple) 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(2, 65, 158, 0.3);
    animation: gradient 8s ease infinite;
    background-size: 200% 200%;
}

/* Исправления для навигации */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    animation: float 4s ease-in-out infinite;
    z-index: 1001;
    color: white;

}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    display: block;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(23, 242, 244, 0.3), transparent);
    transition: left 0.6s;
}

nav ul li a:hover::before {
    left: 100%;
}

nav ul li a:hover {
    background: rgba(23, 242, 244, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 242, 244, 0.3);
}

/* Активный пункт меню */
nav ul li a.active {
    background: rgba(23, 242, 244, 0.3);
    box-shadow: 0 0 20px rgba(23, 242, 244, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    z-index: 1001;
}

.mobile-menu-btn:hover {
    background: rgba(23, 242, 244, 0.2);
    transform: scale(1.05);
}

/* Главный экран */
.hero {
    background: linear-gradient(rgba(2, 65, 158, 0.85), rgba(84, 31, 145, 0.85)), 
                url('https://images.unsplash.com/photo-1592210454359-9043f067919b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 5rem 0;
    height: calc(100vh - 80px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    height: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.2s both;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-teal), var(--light-purple));
    color: var(--primary-blue);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(23, 242, 244, 0.4);
    animation: fadeInUp 1s ease 0.4s both;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(23, 242, 244, 0.6);
}

/* Секции */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-teal), var(--light-purple));
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Introduction Section */
.introduction {
    background-color: var(--white);
}

.intro-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}

.intro-text {
    flex: 2;
    min-width: 300px;
}

.intro-text h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-left: 4px solid var(--accent-teal);
    padding-left: 1rem;
}

.intro-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify;
}

.intro-visual {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, var(--background-light), var(--light-purple));
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(209, 184, 241, 0.3);
    border-left: 5px solid var(--accent-teal);
}

.tech-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(209, 184, 241, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--accent-teal);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(23, 242, 244, 0.1), transparent);
    transition: left 0.6s;
}

.tech-card:hover::before {
    left: 100%;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(209, 184, 241, 0.4);
}

.tech-card h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.tech-card h4::before {
    content: '🔬';
    margin-right: 10px;
    font-size: 1.2rem;
}

.tech-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

.radar-visualization {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-purple));
    color: white;
    padding: 3rem;
    border-radius: 15px;
    margin-top: 3rem;
    text-align: center;
}

.radar-visualization h3 {
    color: var(--accent-teal);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.visual-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--accent-teal);
}

.visual-item .color-sample {
    width: 100%;
    height: 20px;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.visual-item .color-black { background: #000; }
.visual-item .color-pink { background: #ff69b4; }
.visual-item .color-green { background: #32cd32; }

.visual-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Футер */
footer {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-purple));
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-teal), var(--light-purple));
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-teal), var(--light-purple));
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-section ul li:hover {
    transform: translateX(8px);
}

.footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-teal);
    transition: width 0.3s ease;
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-section a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: #b0bec5;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
    }
    
    .mobile-nav {
        display: none;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .tech-highlights {
        grid-template-columns: 1fr;
    }
    
    .visual-grid {
        grid-template-columns: 1fr;
    }
}







/* Дополнительные стили для Introduction page */
.spec-item {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    border-left: 3px solid var(--accent-teal);
}

.color-legend {
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.color-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.science-content {
    background: var(--white);
    padding: 4rem 0;
}

.science-section {
    margin-bottom: 4rem;
}

.science-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-purple));
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.science-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.science-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.science-visual {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px dashed var(--light-purple);
}

.formula {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    border-left: 4px solid var(--accent-teal);
}

.figure {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.figure-caption {
    font-style: italic;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.polarization-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.polarization-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(209, 184, 241, 0.2);
    border-top: 3px solid var(--accent-teal);
}

.processing-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mode-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(209, 184, 241, 0.3);
    border-left: 4px solid var(--light-purple);
}

@media (max-width: 768px) {
    .science-grid-2col {
        grid-template-columns: 1fr;
    }
    
    .polarization-types,
    .processing-modes {
        grid-template-columns: 1fr;
    }
}










.color-legend {
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.color-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tech-specs {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border-left: 3px solid var(--accent-teal);
}

.tech-specs h4 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.tech-specs p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}