/* --- Global Styles & Variables --- */
:root {
    --primary-blue: #3498db;
    --primary-purple: #8e44ad;
    --dark-text: #2c3e50;
    --light-text: #ecf0f1;
    --bg-color: #ffffff;
    --secondary-bg-color: #f8f9fa;
    --border-color: #e9ecef;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

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

h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Header --- */
.main-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #7f8c8d;
}

.lang-link {
    color: #7f8c8d;
    font-weight: 600;
    transition: color 0.3s ease-in-out;
    /* УЛУЧШЕНИЕ 1: Плавность */
    padding: 5px;
}

.lang-link:hover,
.lang-link.active {
    color: var(--primary-blue);
}

/* --- Buttons --- */
.cta-button {
    display: inline-block;
    background: var(--primary-blue);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    /* Убираем рамку, так как будет тень */
    /* УЛУЧШЕНИЕ 2: Объем у кнопок */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    /* УЛУЧШЕНИЕ 1: Плавность для всех свойств */
}

.cta-button:hover {
    background: #2980b9;
    transform: translateY(-3px);
    /* Чуть больше эффект */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    /* Тень становится заметнее */
}

/* Добавим состояние при нажатии - это хороший тон для UX */
.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.cta-button-large {
    font-size: 1.2rem;
    padding: 15px 30px;
    margin-top: 1rem;
}

/* --- Hero & Final CTA Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: var(--light-text);
    text-align: center;
    padding: 100px 0;
}

.hero-section h1,
.hero-section h2 {
    color: #fff;
    /* УЛУЧШЕНИЕ 4: Читаемость заголовков */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
}

.hero-section .cta-button {
    background: #fff;
    color: var(--primary-blue);
}

.hero-section .cta-button:hover {
    background: #eee;
}

/* --- Content Sections --- */
.content-section {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -1rem auto 3rem auto;
    color: #7f8c8d;
}

.alternate-bg {
    background-color: var(--secondary-bg-color);
}

/* --- Features Grid (MODIFIED) --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    /* УЛУЧШЕНИЕ 1: Плавность */
}

.feature-card:hover {
    transform: translateY(-8px);
    /* Чуть больше эффект */
    box-shadow: 0 12px 25px rgba(44, 62, 80, 0.08);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

/* --- Screenshots --- */
.screenshots-showcase {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.screenshot {
    max-width: 300px;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(44, 62, 80, 0.15);
    transition: all 0.3s ease-in-out;
    /* УЛУЧШЕНИЕ 1: Плавность */
}

.screenshot:hover {
    /* УЛУЧШЕНИЕ 3: Эффект "приподнимания" */
    transform: scale(1.05) translateY(-5px);
}

/* --- Guide & Stars Section --- */
.guide-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

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

.guide-text h2 {
    text-align: left;
}

.guide-text p {
    font-size: 1.1rem;
}

.guide-subtitle {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.guide-steps {
    list-style-position: inside;
    font-size: 1.1rem;
    padding-left: 5px;
}

.guide-steps li {
    margin-bottom: 0.75rem;
}

.guide-steps li::marker {
    font-weight: 700;
    color: var(--primary-blue);
}


/* --- Footer --- */
.main-footer {
    background: var(--dark-text);
    color: #bdc3c7;
    padding: 2rem 0;
    text-align: center;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.main-footer a {
    color: #fff;
    /* УЛУЧШЕНИЕ 5: Подготовка для подчеркивания */
    position: relative;
    padding-bottom: 4px;
}

/* УЛУЧШЕНИЕ 5: Анимированное подчеркивание */
.main-footer a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.main-footer a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

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

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

/* --- Responsive Design --- */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .guide-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .guide-text {
        order: 2;
    }

    .guide-text h2,
    .guide-text .guide-subtitle {
        text-align: center;
    }

    .guide-image-wrapper {
        order: 1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .header-cta {
        display: none;
    }

    .main-footer .container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .screenshots-showcase {
        flex-direction: column;
    }

    .screenshot {
        max-width: 80%;
    }

    .header-controls {
        gap: 10px;
    }
}