:root {
    --primary-color: #0066ff;
    --primary-dark: #0052cc;
    --text-color: #333;
    --bg-color: #f5f7fa;
    --card-bg: #fff;
    --border-color: #e1e5eb;
}

[data-theme="dark"] {
    --primary-color: #4d88ff;
    --primary-dark: #1a66ff;
    --text-color: #f0f0f0;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --border-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.beta-text {
    color: #4285f4; 
    font-size: 0.6em;
    vertical-align: super;
    margin-left: 5px;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 40px;
}

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

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

nav a:hover {
    background-color: var(--primary-color);
    color: white;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.hero {
    display: flex;
    padding: 5rem 10%;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--primary-dark);
}

.features-preview {
    padding: 5rem 10%;
    background-color: var(--card-bg);
}

.features-preview h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid var(--border-color);
}

.feature-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.download-section {
    padding: 5rem 10%;
    text-align: center;
}

.download-section h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 240px;
    margin: 0 auto;
}

.download-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.download-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.download-card h4 {
    margin-bottom: 0.5rem;
}

.download-card p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.download-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: var(--primary-dark);
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--card-bg);
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 3rem 5%;
    }
    
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Общие стили для страниц */
.page-container {
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.9;
}

/* Стили для features.html */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.feature-card.big-card {
    grid-column: span 2;
}

.feature-icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-list {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    position: relative;
}

.feature-list li::before {
    color: var(--primary-color);
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -0.1em;
}

/* Стили для security.html */
        .security-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin: 3rem 0;
        }

        .security-card {
            background: var(--card-bg);
            border-radius: 12px;
            padding: 2rem;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            border: 1px solid var(--border-color);
            transition: transform 0.3s ease;
        }

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

        .security-card.full-width {
            grid-column: 1 / -1;
        }

        .security-icon {
            color: var(--primary-color);
            margin-right: 0.5rem;
            font-size: 1.2em;
        }

        .security-list {
            margin-top: 1.5rem;
            padding-left: 1.5rem;
            list-style-type: none;
        }

        .security-list li {
            margin-bottom: 0.8rem;
            position: relative;
            padding-left: 1.8rem;
        }

        .security-list li::before {
            content: "•";
            color: var(--primary-color);
            font-weight: bold;
            position: absolute;
            left: 0;
        }

        .comparison-table {
            overflow-x: auto;
            margin-top: 1.5rem;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
        }

        th, td {
            padding: 1rem;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }

        th {
            background-color: var(--primary-light);
            font-weight: 600;
        }

        tr:nth-child(even) {
            background-color: rgba(0, 0, 0, 0.02);
        }

        .cta-section {
            text-align: center;
            padding: 3rem 0;
            margin-top: 2rem;
            background-color: var(--primary-light);
            border-radius: 12px;
        }

        .cta-content {
            max-width: 800px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        .cta-content a {
            margin-top: 30px;
        }

        @media (max-width: 768px) {
            .security-card {
                padding: 1.5rem;
            }
            
            th, td {
                padding: 0.8rem;
            }
        }

/* Стили для contacts.html */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-methods {
    display: grid;
    gap: 2rem;
}

.contact-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-link {
    color: var(--primary-color);
    word-break: break-all;
}

.pgp-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
}

.pgp-key {
    display: none;
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 4px;
    position: relative;
}

.copy-pgp {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.social-link {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    color: white;
}

.social-link.twitter { background: #1DA1F2; }
.social-link.github { background: #181717; }
.social-link.mastodon { background: #6364FF; }

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--card-bg);
    color: var(--text-color);
}

.contact-form textarea {
    min-height: 150px;
}

.submit-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1rem;
    background: var(--card-bg);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 1rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Секция CTA */
.cta-section {
    text-align: center;
    padding: 3rem 0;
    margin: 4rem 0;
    background: rgba(0, 102, 255, 0.05);
    border-radius: 12px;
}

.cta-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Активная ссылка в навигации */
nav a.active {
    background-color: var(--primary-color);
    color: white !important;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 1rem;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 1;
    }
    
    .logo-container {
        order: 0;
        flex-grow: 1;
    }
    
    .theme-toggle {
        order: 2;
    }
    
    nav {
        order: 3;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    nav.active {
        max-height: 500px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0.5rem;
    }
    
    nav li {
        width: 100%;
    }
    
    nav a {
        display: block;
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    .hero {
        flex-direction: column;
        padding: 2rem 1rem;
    }
    
    .hero-text, .hero-image {
        width: 100%;
    }
    
    .hero-image img {
        margin-top: 2rem;
    }
}