/* Основные переменные цветов */
:root {
    --russian-white: #ffffff;
    --russian-blue: #0055a4;
    --russian-red: #ef4135;
    
    --glass-bg: rgba(0, 85, 164, 0.1);
    --glass-border: rgba(239, 65, 53, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    --text-primary: #2c3e50;
    --text-white: #ffffff;
}

/* Герой секция с логотипом */
.hero-section {
    background: rgba(27, 99, 166, 0.3); /* Уменьшена прозрачность */
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    margin-bottom: 2rem;
    color: var(--text-white);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    line-height: 1.6;
    opacity: 0.95; /* Увеличена непрозрачность текста */
}

/* Логотип */
.main-logo {
    width: 120px;
    height: 120px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 2px solid var(--glass-border);
    box-shadow: 
        var(--glass-shadow),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.tricolor-background {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tricolor-stripe {
    flex: 1;
}

.stripe-white {
    background-color: var(--russian-white);
}

.stripe-blue {
    background-color: var(--russian-blue);
}

.stripe-red {
    background-color: var(--russian-red);
}

.logo-content {
    position: relative;
    z-index: 2;
    width: 85px;
    height: 85px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-initials {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, 
        var(--russian-blue) 0%, 
        var(--russian-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.logo-subtitle {
    font-size: 0.5rem;
    color: var(--russian-blue);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.2;
}

/* Сетка услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.service-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    position: relative;
}

.service-info {
    padding: 1.5rem;
}

.service-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.service-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* План разработки */
.development-plan {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    margin-bottom: 2rem;
    color: var(--text-white);
}

.development-plan h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.timeline-item.current {
    border-left: 4px solid #27ae60;
}

.timeline-item.next {
    border-left: 4px solid #f39c12;
}

.timeline-item.future {
    border-left: 4px solid #95a5a6;
}

.timeline-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-current {
    background: #27ae60;
    color: white;
}

.status-next {
    background: #f39c12;
    color: white;
}

.status-future {
    background: #95a5a6;
    color: white;
}

.timeline-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
    font-weight: 600;
}

.timeline-item p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.timeline-features {
    list-style: none;
    margin-top: 1rem;
    padding: 0;
}

.timeline-features li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    line-height: 1.4;
}

.timeline-features li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--russian-red);
    font-weight: bold;
}

/* Секция разработчиков */
.developers-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    color: var(--text-white);
    margin-bottom: 2rem;
}

.developers-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 700;
}

.mission-statement {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.mission-statement h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
    font-weight: 600;
}

.mission-statement p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

.developers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
}

.developer-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.developer-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.developer-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--russian-blue) 0%, var(--russian-red) 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.developer-card:hover .developer-avatar {
    transform: scale(1.1);
}

.developer-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--text-white);
}

.developer-role {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.developer-bio {
    text-align: left;
    margin-top: 1.5rem;
}

.developer-bio p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.developer-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.skill-tag {
    background: linear-gradient(135deg, var(--russian-blue) 0%, var(--russian-red) 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.skill-tag:hover {
    transform: scale(1.05);
}

/* Кнопки связи */
.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--russian-blue) 0%, var(--russian-red) 100%);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.contact-btn.phone {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.contact-btn.email {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.contact-icon {
    font-size: 1.1rem;
}

/* Видение проекта */
.project-vision {
    text-align: center;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
}

.project-vision h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-white);
    font-weight: 600;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.vision-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vision-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
}

.vision-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.vision-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-white);
    font-weight: 600;
}

.vision-item p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* Бейджи в карточках услуг */
.service-card .nav-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Анимация скролла */
html {
    scroll-behavior: smooth;
}

/* Плавное появление элементов */
.service-card,
.timeline-item,
.developer-card,
.vision-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для main */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
        gap: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .main-logo {
        width: 100px;
        height: 100px;
    }
    
    .logo-content {
        width: 70px;
        height: 70px;
    }
    
    .logo-initials {
        font-size: 1.8rem;
    }
    
    .developers-section {
        padding: 2rem 1rem;
    }
    
    .developers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .developer-card {
        padding: 1.5rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .development-plan {
        padding: 1.5rem 1rem;
    }
    
    .mission-statement {
        padding: 0;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .service-info {
        padding: 1rem;
    }
    
    .developer-card {
        padding: 1rem;
    }
    
    .contact-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

/* Улучшения для темной темы */
@media (prefers-color-scheme: dark) {
    .service-card {
        background: rgba(255, 255, 255, 0.95);
    }
    
    .service-name {
        color: var(--text-primary);
    }
    
    .service-description {
        color: #555;
    }
}

/* Улучшения доступности */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Фокус для доступности */
.contact-btn:focus,
.service-card:focus {
    outline: 2px solid var(--russian-blue);
    outline-offset: 2px;
}