/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6a994e;
    --primary-dark: #386641;
    --secondary-color: #bc4749;
    --accent-color: #a7c957;
    --dark-bg: #386641;
    --light-bg: #f2e8cf;
    --text-dark: #386641;
    --text-light: #6a994e;
    --text-medium: #6a994e;
    --card-bg: #ffffff;
    --gradient-1: linear-gradient(135deg, #6a994e 0%, #386641 100%);
    --gradient-2: linear-gradient(135deg, #a7c957 0%, #6a994e 100%);
    --gradient-3: linear-gradient(135deg, #386641 0%, #6a994e 100%);
    --gradient-hero: linear-gradient(135deg, #386641 0%, #6a994e 50%, #a7c957 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-btn.active {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

/* Header / Hero Section */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 80px 20px;
    text-align: 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 width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 1;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.hero .version {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Sections */
section {
    padding: 80px 20px;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
    font-weight: 700;
}

.lead {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.85;
}

/* Problem Section */
.problem {
    background: var(--light-bg);
}

/* Cards Grid */
.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* Solution Section */
.solution {
    background: var(--primary-color);
    color: white;
}

.solution h2 {
    color: white;
}

.solution .lead {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

/* Platforms Section */
.platforms {
    background: white;
    padding: 80px 20px;
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.platform-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.platform-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #f2e8cf 0%, #ffffff 100%);
}

.platform-header {
    text-align: center;
    margin-bottom: 25px;
}

.platform-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.platform-header h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.platform-badge {
    display: inline-block;
    background: var(--light-bg);
    color: var(--text-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.platform-badge.highlight {
    background: linear-gradient(135deg, #6a994e 0%, #386641 100%);
    color: white;
}

.platform-desc {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: center;
}

.platform-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.platform-features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.platform-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.platform-link {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 16px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-card.featured .platform-link {
    background: linear-gradient(135deg, #6a994e 0%, #386641 100%);
}

.platform-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

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

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse > * {
    direction: ltr;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

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

.feature-content li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

.feature-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.feature-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.feature-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #6a994e 0%, #386641 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.mockup i {
    color: white !important;
    opacity: 1 !important;
}

.mockup div {
    margin-top: 10px;
    color: white;
    opacity: 1;
}

.telegram-mockup {
    background: linear-gradient(135deg, #6a994e 0%, #a7c957 100%);
    position: relative;
    overflow: hidden;
}

.telegram-mockup i,
.telegram-mockup div {
    position: relative;
    z-index: 2;
}

.telegram-mockup::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -50%;
    left: -50%;
    z-index: 1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.tg-icon {
    font-size: 5rem;
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Tech Section */
.tech {
    background: var(--dark-bg);
    color: white;
}

.tech h2 {
    color: white;
}

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

.tech-category h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease;
    color: rgba(255, 255, 255, 0.95);
}

.tag:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, #6a994e 0%, #386641 100%);
    color: white;
}

.stats h2 {
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Capabilities Section */
.capabilities {
    background: var(--light-bg);
}

.capabilities-list {
    max-width: 900px;
    margin: 0 auto;
}

.capability {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.capability:hover {
    transform: translateX(10px);
}

.capability .check {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.capability p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
}

/* Use Cases Section */
.use-cases {
    background: white;
}

/* Advantages Section */
.advantages {
    background: var(--light-bg);
}

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

.comparison-item {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease;
}

.comparison-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.comparison-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.comparison-item p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #386641 0%, #6a994e 50%, #a7c957 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button.primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tg-button-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 1.2em;
}

.cta-note {
    margin-top: 30px;
    font-size: 1rem;
    opacity: 0.85;
}

.cta-note a {
    color: white;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.cta-note a:hover {
    opacity: 0.8;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.cta-platform {
    background: rgba(255, 255, 255, 0.2);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.cta-platform:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.cta-platform.featured {
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.25);
}

.cta-platform h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.cta-platform p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.button.gradient {
    background: linear-gradient(135deg, #6a994e 0%, #386641 100%);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

footer p {
    margin: 5px 0;
    opacity: 0.85;
    font-size: 0.95rem;
}

.version-footer {
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Flaticon Icons Styling */
.fi {
    display: inline-block;
    line-height: 1;
}

/* Icon colors in different contexts */
.card .icon .fi {
    color: var(--primary-color);
}

.platform-icon .fi {
    color: var(--primary-color);
}

.advantage-icon .fi {
    color: var(--primary-color);
}

.tg-icon .fi {
    color: white !important;
}

.capability .check .fi {
    color: var(--accent-color);
}

.tg-button-icon .fi {
    font-size: 1.2rem;
    vertical-align: middle;
    margin-right: 5px;
}

/* Icons in headings */
h3 .fi {
    margin-right: 10px;
    vertical-align: middle;
}

.cta-platform h3 .fi {
    color: white;
}

.feature-content h3 .fi {
    color: var(--primary-color);
}

.use-cases h3 .fi,
.card h3 .fi {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    section {
        padding: 60px 20px;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .feature-block,
    .feature-block.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        direction: ltr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .platform-cards {
        grid-template-columns: 1fr;
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .feature-content h3 {
        font-size: 1.5rem;
    }

    .mockup {
        height: 200px;
        font-size: 1.5rem;
    }
}
