/* Объявляем фирменные цвета */
:root {
    --primary-blue: #4460F7;
    --light-blue: #f0f8ff;
    --white: #ffffff;
    --text-dark: #333333;
    --text-gray: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--primary-blue);
    color: white;
    padding: 15px 30px;

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.header-content {
    display: flex;
    align-items: center;
    gap: 15px;

    text-decoration: none;
    color: white;
}
.logo {
    width: 55px;
    height: 55px;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
}

/* Главный блок (Hero) */
.hero {
    background-color: var(--light-blue);
    padding: 80px 0;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.version-info {
    font-size: 0.9rem !important;
    color: #888 !important;
    margin-top: 15px !important;
}

/* Кнопка скачивания */
.btn-download {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: #4460F7;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px #4460F8;
}

.btn-download:active {
    transform: translateY(0);
}

/* Блок "О приложении" */
.about {
    padding: 70px 0;
    text-align: center;
    flex: 1;
}

.about h2 {
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    border: 1px solid #eaeaea;
    border-top: 5px solid var(--primary-blue);
    border-radius: 10px;
    padding: 30px 20px;
    width: 30%;
    min-width: 280px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-gray);
}

/* Подвал */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 40px 0 20px 0;
    margin-top: auto;
}

footer h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.contact-links {
    margin: 20px 0;
}

footer p {
    margin-bottom: 8px;
}

footer a {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Скриншоты */

.screenshots {
    padding: 80px 0;
    background: #f8faff;
}

.screenshots h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 60px;
}

.screenshot-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 70px;
}

.screenshot-row.reverse {
    flex-direction: row-reverse;
}

.screenshot-row img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);

    /* Автоматическое уменьшение */
    object-fit: contain;
}

.screenshot-text {
    flex: 1;
}

.screenshot-text h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.screenshot-text p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

@media (max-width: 768px) {

    .screenshot-row,
    .screenshot-row.reverse {
        flex-direction: column;
        text-align: center;
    }

    .screenshot-row img {
        max-width: 100%;
    }
}

/* Установка */

.installation {
    padding: 80px 0;
    background: white;
}

.installation h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 50px;
    font-size: 2.2rem;
}

.install-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.step-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    border-top: 5px solid var(--primary-blue);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 55px;
    height: 55px;
    margin: 0 auto 20px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-gray);
}

.warning-box {
    margin-top: 40px;
    background: #fff8e5;
    border-left: 5px solid #ffb100;
    padding: 20px;
    border-radius: 10px;
    color: #555;
}

@media (max-width: 900px) {
    .install-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .install-steps {
        grid-template-columns: 1fr;
    }
}