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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
}

html, body {
    height: 100%;
    min-height: 100vh;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    background-attachment: fixed;
    box-sizing: border-box;
    overscroll-behavior: none;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: none;
    transform: none !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffd700;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

.cta-button {
    display: inline-block;
    background: #ffd700;
    color: #333;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.4);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

/* Удаляю градиентную линию под заголовками секций */
.section-title::after { display: none !important; }

/* Apps Section */
.apps-section {
    padding: 80px 0;
    background: white;
}

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

.app-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    min-width: 320px;
    max-width: 340px;
    flex: 0 0 320px;
    margin: 48px 0;
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.app-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.app-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.app-category {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

.app-store-btn {
    margin-top: auto;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.app-store-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.value-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.value-icon {
    font-size: 6rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.value-icon img {
    width: 96px;
    height: 96px;
    margin-top: 0.5rem;
}

.value-card h3,
.value-card p {
    text-align: center;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-info {
    text-align: center;
    margin-top: 1.2rem;
    margin-bottom: 4.5rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #666;
}

.contact-info p:last-child {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #667eea;
    text-decoration: none;
}

.social-links {
    margin-top: 60px;
    margin-bottom: -100px;
    text-align: center;
}

.social-links h4 {
    margin-bottom: 1rem;
    color: #333;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.social-icon:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    margin-top: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-info p {
    color: #ccc;
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

.footer-social .social-icons {
    gap: 0.5rem;
}

.footer-social .social-icon {
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    font-size: 1.2rem;
    padding: 10px;
}

.footer-social .social-icon:hover {
    background: #ffd700;
    color: #333;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0 1rem 0;
    color: #fff;
    background: transparent;
    border-top: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.app-card,
.value-card,
.faq-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Hover Effects */
.app-card:hover .app-icon,
.value-card:hover .value-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.lang-btn img {
    width: 22px !important;
    height: 22px !important;
    display: block;
    margin: 0 auto;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.lang-btn.active {
    background: #ffd700;
    color: #333;
}

/* Apps Carousel */
.apps-carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 5vw 30px 5vw;
    box-sizing: border-box;
    overflow: visible;
}

.apps-carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    width: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-left: 100px;
    padding-right: 100px;
}
.apps-carousel-track::-webkit-scrollbar {
    display: none;
}

.app-card {
    min-width: 320px;
    max-width: 340px;
    flex: 0 0 320px;
    margin: 48px 0;
}

/* Скролл-индикатор */
.carousel-progress {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin: 18px 0 0 0;
    overflow: hidden;
    position: relative;
}
.carousel-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s cubic-bezier(.4,1.3,.6,1);
}

/* Скрываю стрелки */
.carousel-arrow { display: none !important; }

@media (max-width: 600px) {
    .apps-carousel {
        padding: 0 2vw 24px 2vw;
    }
    .app-card {
        margin: 32px 0;
    }
    .apps-carousel-track {
        padding-left: 50px;
        padding-right: 50px;
    }
}

/* Градиенты по краям карусели */
.carousel-fade {
    position: absolute;
    top: 0;
    bottom: 24px;
    width: 100px;
    pointer-events: none;
    z-index: 100;
}
.carousel-fade-left {
    left: 0;
    background: linear-gradient(to right, #fff 60%, rgba(255,255,255,0) 100%);
    display: block;
}
.carousel-fade-right {
    right: 0;
    background: linear-gradient(to left, #fff 60%, rgba(255,255,255,0) 100%);
    display: block;
}
@media (max-width: 600px) {
    .carousel-fade {
        width: 50px;
        bottom: 16px;
    }
}

/* Убираю скрытие header при скролле */
.header {
    transform: none !important;
} 