:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --text-color: #333;
    --bg-color: #fff;
    --section-bg: #f8f9fa;
    --card-bg: #fff;
    --card-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --overlay-bg: rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e0e0e0;
        --bg-color: #1a1a1a;
        --section-bg: #2d2d2d;
        --card-bg: #333;
        --card-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
        --overlay-bg: rgba(0, 0, 0, 0.7);
    }
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

/* Navigation */
.navbar {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 600;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-color) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link i {
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.2);
}

/* Hero Section */
.hero-section {
    padding: 120px 0 100px;
    background-color: var(--section-bg);
    overflow: hidden;
    position: relative;
}

.hero-section .row {
    position: relative;
    z-index: 2;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
}

.hero-section .col-lg-6:first-child {
    padding-right: 30px;
    padding-left: 0;
    position: relative;
    z-index: 3;
    margin-left: -40px;
}

.hero-image, 
.hero-section .img-fluid {
    max-width: 125%;
    height: auto;
    margin-left: -10%;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    transform: perspective(1000px) rotateY(-3deg);
}

.hero-image:hover,
.hero-section .img-fluid:hover {
    transform: perspective(1000px) rotateY(-1deg) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Добавим обертку для контента, чтобы текст не перекрывался */
.hero-content-wrapper {
    position: relative;
    z-index: 3;
    padding-right: 15px;
    padding-left: 0;
}

.hero-content-wrapper h1 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    word-wrap: break-word;
    background: linear-gradient(135deg, var(--primary-color), #7742f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(66, 133, 244, 0.1);
    font-size: 3.5rem;
    letter-spacing: -1px;
}

.hero-content-wrapper p {
    line-height: 1.6;
    margin-bottom: 2rem;
    word-wrap: break-word;
    font-size: 1.2rem;
    color: #505965;
    display: flex;
    align-items: center;
}

.hero-content-wrapper p i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.4rem;
    background: rgba(66, 133, 244, 0.1);
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-content-wrapper p i:hover {
    transform: scale(1.1);
    background: rgba(66, 133, 244, 0.2);
}

/* Добавляем стиль для предотвращения переноса фразы */
.no-wrap {
    white-space: nowrap;
    display: inline;
    font-weight: 600;
    color: var(--primary-color);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.feature-card {
    padding: 30px;
    text-align: center;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    height: 100%;
}

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

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.2);
}

/* Screenshots Section */
.screenshots-section {
    padding: 80px 0;
    background-color: var(--section-bg);
}

.screenshot-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

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

.screenshot-wrapper {
    position: relative;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.screenshot {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screenshot-overlay i {
    color: #fff;
    font-size: 2rem;
}

.screenshot-wrapper:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-wrapper:hover .screenshot {
    transform: scale(1.05);
}

.screenshot-description {
    padding: 20px;
}

.screenshot-description h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.screenshot-description p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Modal for screenshots */
.screenshot-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
}

.screenshot-modal .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* Animation for modal */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.screenshot-modal.active {
    animation: modalFadeIn 0.3s ease;
}

/* Reviews Section */
.reviews-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.review-card {
    padding: 25px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    margin: 15px;
    transition: transform 0.3s ease;
}

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

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    padding: 2px;
}

.reviewer-name {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
}

.stars i {
    margin-right: 2px;
    transition: transform 0.3s ease;
}

.review-card:hover .stars i {
    transform: rotate(72deg);
}

.review-text {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 0;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--section-bg);
}

/* Install Button */
.install-button {
    background: linear-gradient(135deg, var(--primary-color), #4f6df5);
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    letter-spacing: 0.5px;
}

.install-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
}

.install-button i {
    transition: transform 0.3s ease;
}

.install-button:hover i {
    transform: rotate(360deg);
}

/* Footer */
.footer {
    padding: 40px 0;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-link i {
    transition: transform 0.3s ease;
}

.footer-link:hover i {
    transform: translateX(5px);
}

/* Section Headers */
section h2 i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

section:hover h2 i {
    transform: rotate(360deg);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .screenshot-wrapper, .review-card {
    animation: fadeIn 0.6s ease-out forwards;
}


@media (max-width: 1400px) {
    .hero-image,
    .hero-section .img-fluid {
        max-width: 120%;
        margin-left: -10%;
    }
    
    .hero-content-wrapper h1 {
        font-size: 3.2rem;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-left: -35px;
    }
}

@media (max-width: 1200px) {
    .hero-image,
    .hero-section .img-fluid {
        max-width: 115%;
        margin-left: -7.5%;
    }
    
    .hero-content-wrapper h1 {
        font-size: 2.8rem;
    }
    
    .hero-section {
        padding: 100px 0 80px;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-left: -25px;
    }
}

@media (max-width: 992px) {
    .hero-image,
    .hero-section .img-fluid {
        max-width: 115%;
        margin-left: -7.5%;
    }
    
    .hero-content-wrapper h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .col-lg-6:first-child {
        padding-right: 20px;
        margin-left: -20px;
    }
    
    .hero-content-wrapper {
        padding-left: 0;
    }
    
    .hero-section {
        padding: 90px 0 70px;
    }
    
    .hero-content-wrapper p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
        text-align: center;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 50px;
        padding-right: 15px;
        padding-left: 15px;
        margin-left: 0;
    }
    
    .hero-image,
    .hero-section .img-fluid {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        display: block;
        margin-top: 0;
    }
    
    .hero-content-wrapper h1 {
        font-size: 2.3rem;
        text-align: center;
    }
    
    .hero-content-wrapper {
        text-align: center;
        margin-bottom: 30px;
        padding-right: 15px;
        padding-left: 15px;
    }
    
    .hero-content-wrapper p {
        justify-content: center;
    }
}

/* Privacy Policy Section */
.privacy-policy-section {
    padding: 120px 0 60px;
    background-color: var(--bg-color);
    max-width: 900px;
    margin: 0 auto;
}

.privacy-policy-section h1 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.privacy-policy-section .last-updated {
    color: var(--text-color);
    font-style: italic;
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0.8;
}

.privacy-policy-section h2 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
}

.privacy-policy-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.privacy-policy-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.privacy-policy-section a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.privacy-policy-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.privacy-policy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.privacy-policy-section strong {
    font-weight: 600;
    color: var(--text-color);
}

/* Responsive adjustments for privacy policy */
@media (max-width: 992px) {
    .privacy-policy-section {
        padding: 100px 20px 40px;
    }
    
    .privacy-policy-section h1 {
        font-size: 2.2rem;
    }
    
    .privacy-policy-section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .privacy-policy-section {
        padding: 80px 15px 30px;
    }
    
    .privacy-policy-section h1 {
        font-size: 2rem;
    }
    
    .privacy-policy-section h2 {
        font-size: 1.4rem;
    }
    
    .privacy-policy-section p,
    .privacy-policy-section li {
        font-size: 1rem;
    }
}

/* Terms of Use Section */
.terms-section {
    padding: 120px 0 60px;
    background-color: var(--bg-color);
}

.terms-section h1 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.terms-section .last-updated {
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 2rem;
}

.terms-section h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.terms-section p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.terms-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-section a:hover {
    color: var(--secondary-color);
}