/* Общие стили */
:root {
    --primary: #2a5ee6;
    --primary-dark: #1a4bc4;
    --white: #ffffff;
    --black: #121212;
    --silver: rgba(192, 192, 192, 0.9);
    --gray-100: #f5f7fa;
    --gray-200: #e4e7eb;
    --gray-500: #64748b;
    --gray-700: #334155;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--silver);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
    backdrop-filter: blur(5px);
}

.header.scrolled {
    padding: 1rem 0;
    background-color: rgba(192, 192, 192, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    margin-right: 15px;
}

.header.scrolled .logo-img {
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    transition: var(--transition);
}

.header.scrolled .logo-text {
    font-size: 1.3rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--black);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--silver);
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transition: var(--transition);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
}

.mobile-menu-logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.mobile-menu-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--black);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.mobile-nav-links {
    list-style: none;
    flex: 1;
}

.mobile-nav-links li {
    margin-bottom: 1.5rem;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
}

.mobile-nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Навигация по странице */
.page-nav-container {
    margin:2%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    padding: 1rem 0;
    position: sticky;
    top: 80px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-nav {
    
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.page-nav-link {
    
    display: inline-block;
    padding: 0.7rem 1.3rem;
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid rgba(74, 144, 226, 0.2);
    white-space: nowrap;
}

.page-nav-link:hover, .page-nav-link.active {
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-color: transparent;
    color: white;
}

/* Основное содержимое */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Секции */
.section {
    margin-bottom: 5rem;
    padding-top: 1rem;
}

.section-header {
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #141e30;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    border-radius: 2px;
}

/* О компании */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.about-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #555;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Наши принципы */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.principle-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.principle-icon {
    font-size: 2.5rem;
    color: #4facfe;
    margin-bottom: 1.5rem;
}

.principle-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #141e30;
}

.principle-card p {
    color: #555;
    line-height: 1.6;
}

/* История */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #4facfe 0%, #00f2fe 100%);
    transform: translateX(-50%);
}

.timeline-item {
    padding: 1.5rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-date {
    font-weight: 600;
    color: #4facfe;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #141e30;
}

.timeline-content p {
    color: #555;
    line-height: 1.6;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    border-radius: 50%;
    top: 2rem;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

/* Лицензии и награды */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.award-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.award-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

.award-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.award-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.award-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #141e30;
}

.award-content p {
    color: #555;
    line-height: 1.6;
    flex: 1;
}

/* Footer Styles */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    margin-right: 15px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-about {
    color: var(--gray-200);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    color: var(--white);
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--gray-200);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--gray-200);
}

.footer-contact-icon {
    margin-right: 0.8rem;
    color: var(--primary);
    min-width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-200);
    font-size: 0.9rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #1a4bc4;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .nav-links li {
        margin-left: 1.5rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        padding-right: 0;
        padding-left: 70px;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 20px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .page-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .page-nav::-webkit-scrollbar {
        display: none;
    }
    
    .page-nav-link {
        flex-shrink: 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .logo-img {
        height: 40px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .header.scrolled .logo-img {
        height: 35px;
    }

    .header.scrolled .logo-text {
        font-size: 1.1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-about {
        font-size: 0.95rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .page-nav-container {
        top: 70px;
    }
    
    .page-nav {
        padding: 0 1.5rem;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 400px) {
    .logo-text {
        display: none;
    }
    
    .page-nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}