/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Background Video */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.8;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px; /* Ensure padding on smaller screens */
}

/* Main container styling */
.container {
    width: 90%;
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.521);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
    color: #333;
    margin: 20px 0; /* Ensure margin for top and bottom spacing */
}

/* Logo and Heading */
.logo {
    width: 200px;
    margin-bottom: 10px;
}

h1 {
    font-size: 2.2rem;
    color: #ffffff;
}

h2{
    margin-bottom: 20px;
    color:white;
}

.subheading {
    color: #bea9a9;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Social Media Styling */
.social-media {
    display: flex;
    justify-content: center; /* Центрирование иконок по горизонтали */
    align-items: center; /* Вертикальное центрирование иконок */
    gap: 20px; /* Расстояние между иконками */
    margin: 25px auto; /* Центрирование всей секции */
    flex-wrap: wrap; /* Позволяет перенос элементов на новую строку */
}

.social-media a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    color: rgb(255, 255, 255);
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-media a:hover {
    background-color: #ff4c4c; /* Изменение фона при наведении */
}

/* Gradient Button */
.button-group a {
    display: block;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(45deg, #ff8282, #f71010);
    padding: 15px;
    border-radius: 5px;
    font-size: 1rem;
    margin: 10px 0;
    transition: background 0.3s;
}

.button-group a:hover {
    background: linear-gradient(45deg, #ff4c4c, #ff6b6b);
}

/* Section Styling */
.section {
    background: linear-gradient(135deg, #ff4c4c, #ffdd99);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.section:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #ffdd99, #ff4c4c);
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

/* Download App Section */
.section.download-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f0fdf4;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    margin: 0 auto;
}

.image-container {
    position: relative;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding-bottom:50px;
}

.app-image {
    width: 100%;
    display: block;
    z-index: 4;
    margin-left: 130px;
}

.floating-text {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: #004d40;
    text-align: center;
    width: 90%;
    font-family: 'Poppins', sans-serif;
}

.floating-text h2 {
    font-size: 2em;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 10px;
    padding-right: 200px;
}

.benefits-list {
    list-style: none;
    padding-right: 200px;
    margin: 10px 0;
    color: #e0f7fa;
    font-size: 1em;
}

.cta-button {
    display: inline-block;
    margin: 5px;
    margin-left: -190px; 
    padding-left: 400px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 8px rgb(255, 255, 255);
}


.earning-options {
    display: flex;
    justify-content: space-between; /* или используйте space-around для равномерного распределения */
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 30px;
}

.earning-options span {
    background-color: #ffffff;
    color: #2e7d32;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

/* Contact Buttons */
.contact-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    color: #fff;
    background-color: #4CAF50;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.contact-button:hover {
    background-color: #45a049;
    color: #fff;
}

/* WhatsApp Button */
.whatsapp-button {
    background-color: #25D366; /* WhatsApp color */
}

.whatsapp-button:hover {
    background-color: #1ebe58;
}

/* VK Button */
.vk-button {
    background-color: #4C75A3; /* VK color */
}

.vk-button:hover {
    background-color: #3b5a75;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #fff;
    color: #ff4c4c;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #ff4c4c;
    color: #fff;
}

/* Testimonials Carousel Styling */
.testimonials-carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

/* Ensure the container is full width and testimonials are displayed correctly */
.testimonial-container {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.testimonials-header {
    margin-top: 20px;
    color: #ffffff;
}

.testimonial-item {
    min-width: 100%;
    box-sizing: border-box;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 20px;
    float: left;
}

.testimonial-text {
    overflow: hidden;
}

.testimonial-name {
    font-weight: bold;
    margin-bottom: 10px;
}

/* Carousel Button Styling */
.carousel-button {
    background: none;
    border: none;
    color: rgb(0, 0, 0);
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    z-index: 2;
    padding: 10px;
}

.carousel-button.left {
    right: 50px;
}

.carousel-button.right {
    right: 10px;
}

.carousel-button:hover {
    color: #ff4c4c; /* Изменение цвета текста при наведении */
}


/* Footer Styling */
.footer {
    color: #ffffffb6;
    font-size: 0.9em;
    margin-top: 20px;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .section.download-app {
      max-width: 90%;
      padding: 15px;
    }
  
    .floating-text h2 {
      font-size: 1.6em;
    }
  
    .benefits-list, .cta-button, .earning-options span {
      font-size: 0.8em;
    }
  
    .logo {
      width: 150px;
    }
    .social-media {
        display: flex;
        justify-content: center; /* Центрирование иконок по горизонтали */
        align-items: center; /* Вертикальное центрирование иконок */
        gap: 10px; /* Расстояние между иконками */
        margin: 25px auto; /* Центрирование всей секции */
        flex-wrap: wrap; /* Позволяет перенос элементов на новую строку */
    }
  }
@media (max-width: 685px) {
    .earning-options {
        font-size:15px;
    }
}

@media (max-width: 480px) {
    .section.download-app {
        max-width: 100%;
        padding: 10px;
    }
    .floating-text h2 {
        font-size: 1.2em;
    }
    .benefits-list {
        font-size: 0.5em;
        padding-right: 100px;
    }
    .cta-button {
        margin-top: 2px;
        margin-bottom: -10px;
        margin-left: -100px;
        font-size: 0.5em;
        padding: 5px 10px;
    }
    .earning-options {
        gap: 3px;
    }
    .earning-options span {
        font-size: 0.5em;
        padding: 3px 3px;
        margin-top: -8px;
    }
    .app-image {
        width: 100%;
        display: block;
        z-index: 4;
        margin-left: 65px;
    }
    .testimonial-image {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        margin-right: 20px;
        float: left;
    }
    .social-media {
        display: flex;
        justify-content: center; /* Центрирование иконок по горизонтали */
        align-items: center; /* Вертикальное центрирование иконок */
        gap: 10px; /* Расстояние между иконками */
        margin: 25px auto; /* Центрирование всей секции */
        flex-wrap: wrap; /* Позволяет перенос элементов на новую строку */
    }
}