/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Плавная прокрутка для якорных ссылок */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Навигация */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.menu a {
    margin-left: 2rem;
    text-decoration: none;
    color: #2c3e50;
}

/* Основные секции */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#hero {
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
    color: white;
    margin-top: 60px;
}

/* VK Community Section - Большой и красивый блок */
#vk-community {
    background: #f0f4f8;
    padding: 6rem 2rem;
    text-align: center;
    border-radius: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
}

.vk-content {
    max-width: 800px;
    margin: 0 auto;
}

#vk-community h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

#vk-community p {
    font-size: 1.2rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.vk-action {
    display: flex;
    justify-content: center;
}

.vk-section-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #0077ff;
    color: white !important;
    text-decoration: none;
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0, 119, 255, 0.3);
}

.vk-section-button:hover {
    background: #0066dd;
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 119, 255, 0.4);
}

.vk-btn-icon {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    #vk-community {
        padding: 4rem 1rem;
    }
    
    #vk-community h2 {
        font-size: 2rem;
    }
    
    #vk-community p {
        font-size: 1.1rem;
    }
    
    .vk-section-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        justify-content: center;
    }
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Сетки */
.services-grid, .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card, .benefit-card {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover, .benefit-card:hover {
    transform: translateY(-5px);
}

/* Форма контактов */
#contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

input, textarea {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

textarea {
    height: 150px;
}

button {
    padding: 1rem 2rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #2563eb;
}

/* Футер */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .menu {
        display: none;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 2rem 1rem;
    }
    
    .services-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 1rem;
    }
}

/* Оптимизация производительности */
.service-card, .benefit-card, .feature-card {
    will-change: transform;
    backface-visibility: hidden;
}

/* Добавьте эти стили для новой секции */
#beta-testing {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 15px;
    margin: 2rem auto;
}

.beta-info {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.beta-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-info {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #0088cc 0%, #005bea 100%);
    border-radius: 8px;
    color: white;
}

.telegram-link {
    display: inline-block;
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    margin-top: 1rem;
    border: 2px solid white;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.telegram-link:hover {
    background: white;
    color: #0088cc;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.beta-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 2rem;
}

/* Медиа запросы для адаптивности */
@media (max-width: 768px) {
    .beta-info {
        padding: 1rem;
    }
    
    .telegram-link {
        font-size: 1.2rem;
    }
}

/* Общие стили для секции */
#about {
    padding: 4rem 2rem;
    /* Убран градиентный фон */
}

.about-container {
    max-width: 1000px; /* Уменьшена максимальная ширина */
    margin: 0 auto;
}

.about-content {
    display: grid;
    gap: 1.5rem; /* Уменьшен отступ между карточками */
}

/* Стили для карточек */
.about-card, .mission-card, .value-card, .vision-card {
    background: white;
    border-radius: 15px; /* Уменьшены радиусы */
    padding: 1.8rem; /* Уменьшены внутренние отступы */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Стили для заголовков */
#about h2 {
    text-align: center;
    font-size: 2.2rem; /* Уменьшен размер */
    margin-bottom: 2.5rem;
    color: #2c3e50;
}

#about h3 {
    font-size: 1.6rem; /* Уменьшен размер */
    margin-bottom: 1rem;
}

#about h4 {
    font-size: 1.3rem; /* Уменьшен размер */
    margin-bottom: 0.8rem;
}

/* Стили для текста */
#about p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

/* Специальные стили для блоков */
.mission-card {
    background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
}

.vision-card {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

/* Иконки */
.mission-icon, .value-icon, .vision-icon {
    font-size: 2rem; /* Уменьшен размер */
    display: block;
    margin-bottom: 0.8rem;
}

/* Медиа запросы */
@media (max-width: 768px) {
    #about {
        padding: 2rem 1rem;
    }

    .about-content {
        gap: 1rem;
    }

    .about-card, .mission-card, .value-card, .vision-card {
        padding: 1.2rem;
    }

    #about h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    #about h3 {
        font-size: 1.4rem;
    }

    #about h4 {
        font-size: 1.2rem;
    }

    #about p {
        font-size: 0.95rem;
    }
}

#features {
    padding: 4rem 2rem;
}

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

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

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style: none;
    padding-left: 0;
}

.feature-card li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

.feature-card li:last-child {
    border-bottom: none;
}

.stack-container {
    display: grid;
    gap: 1.5rem;
}

.stack-group {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Анимация */
.slide-up {
    animation: slideUp 0.8s ease-out;
}

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

/* Медиа запросы */
@media (max-width: 768px) {
    #features {
        padding: 2rem 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

#company-details {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.info-card {
    background: white;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #eee;
}

.header-icon {
    font-size: 1.8rem;
}

.card-content {
    padding: 1.5rem;
}

/* Деятельность компании */
.company-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1.5rem;
}

.activities-list ul {
    list-style: none;
    padding: 0;
}

.activities-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: #555;
}

.bullet {
    color: #005bea;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Технологический стек */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.tech-category {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 1.2rem;
    transition: transform 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.tech-icon {
    font-size: 1.5rem;
}

.tech-category h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0;
}

.tech-category ul {
    list-style: none;
    padding: 0;
}

.tech-category li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
}

.tech-category li:last-child {
    border-bottom: none;
}

/* Стили для заголовков */
.info-card h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 0;
}

.info-card h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0;
}

/* Стили для списков в tech-category */
.tech-category ul {
    list-style: none;
    padding: 0;
}

.tech-category li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
}

.tech-category li:last-child {
    border-bottom: none;
}

/* Стили для правовой информации в футере */
.footer-legal {
    margin-top: 1rem;
}

.footer-legal h3 {
    color: #fff;
    margin-bottom: 1rem;
}

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

.footer-legal a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Стили для кнопки входа в личный кабинет */
.login-btn {
    background-color: transparent;
    border: 2px solid #005bea;
    color: #005bea;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.login-btn:hover {
    background-color: #005bea;
    color: white;
}

/* Стили для кнопки "Спланировать путешествие" */
.cta-button {
    background: linear-gradient(135deg, #005bea 0%, #00c6fb 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    margin-top: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 91, 234, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 91, 234, 0.4);
}

.cta-button:active {
    transform: translateY(1px);
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.4s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

/* Стили для вкладок авторизации */
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #777;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: #005bea;
    transition: width 0.3s ease;
}

.tab-btn.active {
    color: #005bea;
}

.tab-btn.active:after {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Стили для форм */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    border-color: #005bea;
    box-shadow: 0 0 0 2px rgba(0, 91, 234, 0.2);
    outline: none;
}

.form-group input.error {
    border-color: #e74c3c;
}

.error-message {
    display: none;
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

/* Стили для группы с email и кнопкой кода */
.email-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.email-group input {
    flex: 1;
    min-width: 200px;
}

.code-btn {
    background-color: #005bea;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.code-btn:hover {
    background-color: #0048b8;
}

/* Стили для чекбокса */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
    margin-top: 4px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-group a {
    color: #005bea;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Стили для кнопки отправки формы */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #005bea 0%, #00c6fb 100%);
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0048b8 0%, #00a7d5 100%);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Стили для ссылки переключения вкладок */
.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.auth-link a {
    color: #005bea;
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .email-group {
        flex-direction: column;
    }
    
    .code-btn {
        width: 100%;
        padding: 10px;
    }
}

/* Анимация для slide-in */
.slide-in {
    animation: slideIn 0.8s ease-out;
}

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

/* Медиа запросы для адаптивности */
@media (max-width: 768px) {
    #company-details {
        padding: 1rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-header {
        padding: 1rem;
    }

    .company-description {
        font-size: 1rem;
    }

    .tech-category {
        padding: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-legal {
        margin-top: 2rem;
    }
    
    .login-btn {
        margin-top: 1rem;
        margin-left: 0;
    }
    
    .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Стили для видео-демонстрации */
#video-demo {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

#video-demo h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: scale(1.02);
}

.video-container video {
    width: 100%;
    border-radius: 10px;
}

@media (max-width: 768px) {
    #video-demo {
        padding: 2rem 1rem;
    }
    
    #video-demo h2 {
        font-size: 1.5rem;
    }
}

/* Стили для блока грантовой поддержки */
.grant-support-section {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 4rem 0;
    text-align: center;
}

.grant-support-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.grant-support-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 91, 234, 0.1);
}

.grant-support-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grant-title {
    font-size: 1.8rem;
    line-height: 1.4;
    color: #2c3e50;
    margin: 0 0 3rem 0;
    font-weight: 600;
    text-align: center;
}

.grant-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.grant-logo-main {
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 91, 234, 0.15);
    transition: transform 0.3s ease;
}

.grant-support-link:hover .grant-logo-main {
    transform: scale(1.02);
}

.grant-support-link:hover .grant-title {
    color: #005bea;
}

/* Дополнительные стили для заголовков в activities-list */
.activities-list h4 {
    margin-bottom: 10px;
}

.activities-list ul {
    list-style: none;
    padding-left: 0;
}

.activities-list li {
    margin-bottom: 8px;
}

/* Адаптивные стили для блока грантовой поддержки */
@media (max-width: 768px) {
    .grant-support-section {
        padding: 3rem 0;
    }
    
    .grant-support-content {
        padding: 0 1rem;
    }
    
    .grant-title {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
    
    .grant-logos {
        gap: 2rem;
        margin-top: 1.5rem;
    }
    
    .grant-logo-main {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .grant-support-section {
        padding: 2rem 0;
    }
    
    .grant-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .grant-logos {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .grant-logo-main {
        max-width: 250px;
    }
}