/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Новая цветовая схема */
    --sage-green: #A6B0AB;    /* Мягкий серо-зеленый */
    --deep-black: #000000;    /* Глубокий черный */
    --pure-white: #FFFFFF;    /* Чистый белый */
    --ocean-blue: #0E4D85;    /* Глубокий синий */
    --light-mint: #C8E5E8;    /* Светлый мятный */
    
    /* Семантические переменные */
    --primary-color: var(--ocean-blue);
    --secondary-color: var(--sage-green);
    --accent-color: var(--light-mint);
    --text-dark: var(--deep-black);
    --text-light: var(--pure-white);
    --bg-light: var(--pure-white);
    --bg-accent: var(--light-mint);
    --bg-secondary: var(--sage-green);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-logo h2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    min-height: 170px;
    display: flex;
    align-items: center;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text br {
    display: block;
}

.space-replacement {
    display: none;
}

@media (max-width: 768px) {
    .gradient-text br {
        display: none;
    }
    
    .space-replacement {
        display: inline;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--pure-white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 77, 133, 0.2);
    background: var(--accent-color);
}

.btn-secondary {
    background: transparent;
    color: var(--pure-white);
    border: 2px solid var(--pure-white);
}

.btn-secondary:hover {
    background: var(--pure-white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: var(--text-dark);
    color: var(--pure-white);
    font-size: 0.7rem;
    font-weight: 600;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.signal-bars {
    display: flex;
    gap: 2px;
    align-items: end;
}

.signal-bars .bar {
    width: 3px;
    background: var(--pure-white);
    border-radius: 1px;
}

.signal-bars .bar:nth-child(1) { height: 4px; }
.signal-bars .bar:nth-child(2) { height: 6px; }
.signal-bars .bar:nth-child(3) { height: 8px; }
.signal-bars .bar:nth-child(4) { height: 10px; }

.battery {
    width: 20px;
    height: 10px;
    border: 1px solid var(--pure-white);
    border-radius: 2px;
    position: relative;
}

.battery::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 3px;
    width: 1px;
    height: 4px;
    background: var(--pure-white);
    border-radius: 0 1px 1px 0;
}

.battery-level {
    width: 80%;
    height: 100%;
    background: var(--pure-white);
    border-radius: 1px;
}

/* App Top Bar */
.app-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--primary-color);
    color: var(--pure-white);
    font-weight: 600;
}

.back-button, .menu-button {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.3s ease;
}

.back-button:hover, .menu-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.app-title {
    font-size: 1rem;
    font-weight: 700;
}

/* Map Container */
.map-container {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--bg-light) 100%);
    overflow: hidden;
}

.map-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(14, 77, 133, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(166, 176, 171, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 40%, rgba(200, 229, 232, 0.3) 50%, transparent 60%);
}


@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.route-line {
    position: absolute;
    top: 30px;
    left: 25px;
    width: 3px;
    height: 240px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

.waypoint {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--pure-white);
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.waypoint-label {
    position: absolute;
    left: 25px;
    top: -8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
}

.waypoint-1 { 
    top: 40px; 
    left: 18px; 
    background: #ff4757;
    border-color: #ff4757;
    animation: waypoint-pulse 10s infinite 0s;
}
.waypoint-2 { 
    top: 100px; 
    left: 18px; 
    animation: waypoint-pulse 10s infinite 0.5s;
}
.waypoint-3 { 
    top: 160px; 
    left: 18px; 
    animation: waypoint-pulse 10s infinite 1s;
}
.waypoint-4 { 
    top: 220px; 
    left: 18px; 
    animation: waypoint-pulse 10s infinite 1.5s;
}

@keyframes waypoint-pulse {
    0%, 10% { 
        transform: scale(1); 
        border-color: var(--primary-color);
    }
    30% { 
        transform: scale(1.3); 
        border-color: var(--accent-color);
    }
    50%, 100% { 
        transform: scale(1); 
        border-color: var(--primary-color);
    }
}

/* Bottom Panel */
.bottom-panel {
    background: var(--bg-light);
    padding: 15px;
    border-top: 1px solid var(--accent-color);
}

.route-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

.route-time, .route-distance {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

.time-icon, .distance-icon {
    font-size: 0.9rem;
}

.ai-chat {
    margin-bottom: 10px;
}

.start-route-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--pure-white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-route-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.chat-bubble {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(14, 77, 133, 0.1);
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes slideUp {
    0%, 80%, 100% { transform: translateY(0); opacity: 0; }
    10%, 70% { transform: translateY(-10px); opacity: 1; }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--pure-white);
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Problem Section */
.problem {
    padding: 100px 0;
    background: white;
}

.problem-content h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.problem-item {
    text-align: center;
    padding: 2rem;
}

.problem-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2.5rem;
}

.problem-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.problem-item p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Audience Section */
.audience {
    padding: 100px 0;
    background: var(--bg-accent);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.audience-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.audience-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--pure-white);
    font-size: 2.5rem;
}

.audience-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.audience-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Team Section */
.team {
    padding: 100px 0;
    background: white;
}

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

.team-member {
    text-align: center;
    padding: 2rem;
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 30px rgba(14, 77, 133, 0.15);
    transition: all 0.3s ease;
    border: 4px solid var(--accent-color);
    position: relative;
}

.member-photo:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(14, 77, 133, 0.25);
    border-color: var(--primary-color);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(1.1) contrast(1.1);
    transition: filter 0.3s ease;
}

.member-photo:hover img {
    filter: brightness(1.2) contrast(1.2);
}

/* Индивидуальные настройки для каждого участника */
.amir-photo img {
    object-fit: cover;
    object-position: center center;
}

.kirill-photo img {
    object-position: center 30%;
}

.vladimir-photo img {
    object-position: center 25%;
}

.team-member h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-member p {
    color: var(--secondary-color);
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--pure-white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Footer */
.footer {
    background: var(--deep-black);
    color: var(--pure-white);
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section.social-section h4 {
    text-align: center;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #4a5568;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        min-height: 60px;
        justify-content: center;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Скрываем телефон на планшетах и мобильных */
    .hero-image {
        display: none;
    }
    
    .features-grid,
    .problems-grid,
    .audience-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        min-height: 50px;
        justify-content: center;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .member-photo {
        width: 120px;
        height: 120px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card, .problem-item, .audience-card {
        padding: 1.5rem;
    }
    
    .feature-icon, .problem-icon, .audience-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

