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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

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

section {
    padding: 15rem 0; /* 60px */
}

h1 {
    font-size: 3.5rem; /* 56px */
    font-weight: 400;
    letter-spacing: -0.02em;
    text-align: center;
    color: #ffffed;
}

h2 {
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 1.5rem; /* 24px */
    color: #ffffed;
}

/* ===== BACKGROUND CODE (Hidden Behind Screen) ===== */
#code-background {
    position: fixed;
    top: 10rem;
    left: 2rem;
    width: auto;
    height: auto;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    padding: 0;
    overflow: hidden;
    max-width: 50%;
    max-height: 50%;
}

.code-display {
    position: relative;
    width: auto;
    height: auto;
}

#code-text {
    color: #2d5a3d;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    line-height: 1.4;
    white-space: pre;
    text-align: left;
    transition: opacity 0.5s ease;
    padding: 0;
    margin: 0;
}

.subtitle {
    text-align: center;
    font-size: 1.5rem; /* 24px */
    color: #e0e0e0;
    max-width: 70rem; /* 1120px */
    margin: 0 auto;
    opacity: 0.8;
    line-height: 2;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

/* Карточки ОС */
.os-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); /* 280px */
    gap: 2rem; /* 32px */
    margin-bottom: 3.75rem; /* 60px */
}

.card {
    background-color: #3a3a3a;
    border-radius: 1rem; /* 16px */
    padding: 1.5rem; /* 24px */
    box-shadow: 0 1.25rem 2.5rem -0.625rem rgba(0,0,0,0.1); /* 20px 40px -10px */
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    min-height: 12.5rem; /* 200px */
}

.card:hover {
    transform: translateY(-0.3125rem); /* -5px */
    box-shadow: 0 1.875rem 3.125rem -0.75rem rgba(0,0,0,0.15); /* 30px 50px -12px */
}

.card h2 {
    font-size: 1.8rem; /* ≈28.8px */
    line-height: 1.3;
    font-weight: 400;
    margin-bottom: 1rem; /* 16px */
    font-family: 'Gravity', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #f2ffed;
    text-align: left;
}

.os-details {
    display: flex;
    justify-content: left;
    gap: 0.625rem; /* 10px */
    margin-bottom: 0.5rem; /* 8px */
    font-weight: 300;
    font-family: 'Gravity', sans-serif;
    color: #e0e0e0;
}

.os-version {
    color: #e0e0e0;
    opacity: 0.8;
    font-weight: 300;
    font-family: 'Gravity', sans-serif;
    margin-bottom: 1rem; /* 16px */
}

/* Кнопка "Скачать" */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #A0C7CF;
    color: #1E1E1E;
    text-decoration: none;
    padding: 0.75rem 1.5rem; /* 12px 24px */
    border-radius: 1rem; /* 16px */
    font-weight: 700;
    font-family: 'Gravity', sans-serif;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    gap: 0.5rem; /* 8px */
}

.btn img {
    height: 1.5rem; /* 24px */
    width: auto;
    object-fit: contain;
}

.btn:hover {
    background: #b6e2eb;
}

/* Логотип ОС внутри карточки */
.occardpic {
    position: absolute;
    bottom: 2rem;
    right: -1.1rem;
    width: 9rem;
    height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.occardpic img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Убираем любые hover-эффекты, если они были */
    pointer-events: none;
}

/* Контейнер для веб-версии — центрируем карточку */
.web-version {
    display: flex;
    justify-content: center;  /* горизонтальное центрирование */
    margin-bottom: 3.75rem;
}

/* Карточка: иконка слева, текст справа, без фона */
.web-card {
    display: flex;
    align-items: center;
    gap: 1rem;                /* увеличенный отступ между иконкой и текстом */
    padding: 1rem 2rem;
    max-width: 55rem;         /* чтобы не растягивалась на всю ширину */
    width: 100%;
    /* Фона нет! Только тень для лёгкого отделения (можно убрать) */
    /* background: transparent; /* уже по умолчанию */
    box-shadow: none;          /* если не хотите даже тени, удалите эту строку */
}

/* Иконка — крупная, подстраивается под контейнер */
.web-icon {
    width: 8rem;              /* 160px — увеличено по вашему желанию */
    height: 8rem;
    object-fit: contain;       /* сохраняет пропорции, не обрезается */
    flex-shrink: 0;            /* не сжимается при нехватке места */
}

/* Блок с текстом и кнопкой */
.web-content {
    display: flex;
    flex-direction: column;
}

/* Заголовок */
.web-content h3 {
    font-family: 'Gravity', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #ffffed;
    margin: 0;
}

/* Описание */
.web-content p {
    font-family: 'Gravity', sans-serif;
    font-size: 1.2rem;
    color: #e0e0e0;
    margin: 0;
    line-height: 1.5;
}

/* Кнопка */
.web-content .btn {
    align-self: flex-start;   /* чтобы кнопка не растягивалась на всю ширину */
    margin-top: 0.5rem;
}

/* Требования */
.requirements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); /* 300px */
    gap: 1.875rem; /* 30px */
}

.req-card {
    background: #637A7F;
    border-radius: 1rem; /* 16px */
    padding: 1.5rem; /* 24px */
    box-shadow: 0 0.625rem 1.875rem -0.3125rem rgba(0,0,0,0.05); /* 10px 30px -5px */
    position: relative;
    min-height: 22rem; /* 352px – подбираем под содержимое, можно и 20rem */
}

.req-card:nth-child(2n) {
    background: #A0C7CF;
}

.req-card h3 {
    margin-top: 1rem;
    font-family: 'Gravity', sans-serif;
    font-size: 2rem; /* 32px */
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f2ffed;
    text-align: left;
}

.req-card h4 {
    margin-top: 1rem;
    font-family: 'Gravity', sans-serif;
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1E1E1E;
    text-align: left;
}

.req-card ul {
    list-style: none;
}

.req-card li {
    font-family: 'Gravity', sans-serif;
    font-size: 1.1rem; /* 17.6px */
    color: #e0e0e0;
    line-height: 1.5;
    font-weight: 400;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.req-card:nth-child(2n) li {
    color: #1E1E1E;
}

.req-card li img {
    height: 1.2rem; /* 19.2px */
    width: auto;
    object-fit: contain;
}

/* Изображение в углу карточки требований */
.reqcardpic {
    position: absolute;
    bottom: 6rem;
    right: -1rem;
    width: 10.1rem;
    height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.reqcardpic img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Процесс установки */
.process {
    background: #3A3A3A;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem; /* 40px */
}

.step {
    text-align: center;
    padding: 1rem;
}

.step-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 14.5rem; /* 232px */
    border-radius: 1rem;
    background: #A0C7CF;
    color: #1E1E1E;
    font-family: 'Gravity', sans-serif;
    font-weight: 700;
    font-size: 2rem; /* 32px */
    padding: 1.5rem;
}

.step h4 {
    font-family: 'Gravity', sans-serif;
    font-size: 1.8rem; /* 28.8px */
    font-weight: 600;
    margin: 0.5rem 0 0.25rem;
    color: #1E1E1E;
}

.step p {
    font-family: 'Gravity', sans-serif;
    color: #1E1E1E;
    font-weight: 400;
    font-size: 1.4rem; /* 22.4px */
}

/* Что включено */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.875rem; /* 30px */
    margin-top: 2.5rem;
}

.feature {
    background: #637A7F;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0.625rem 1.875rem -0.3125rem rgba(0,0,0,0.05);
    min-height: 19rem; /* 304px */
}

.feature:nth-child(2n) {
    background: #3A3A3A;
}

.feature h4 {
    font-family: 'Gravity', sans-serif;
    font-size: 1.8rem;
    color: #ffffed;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 1rem;
}

.feature ul {
    list-style: none;
}

.feature li {
    font-family: 'Gravity', sans-serif;
    color: #ffffed;
    font-weight: 300;
    line-height: 1;
    font-size: 1.3rem; /* 20.8px */
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature li img {
    height: 1.3rem;
    width: auto;
    object-fit: contain;
}

/* Футер (адаптация) */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 3.75rem 0 1.875rem; /* 60px 0 30px */
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem; /* 40px */
    margin-bottom: 2.5rem;
}

.footer-col h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.7rem;
}

.footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.875rem; /* 30px */
    border-top: 1px solid #1e293b;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .occardpic {
        width: 3.75rem; /* 60px */
        height: 3.75rem;
    }

    .reqcardpic {
        width: 3.75rem;
        height: 3.75rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .btn img {
        height: 1.2rem;
    }
}

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

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

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

    .occardpic {
        position: static;      /* На очень маленьких экранах возвращаем в поток */
        margin-top: 1rem;
        width: 3.125rem; /* 50px */
        height: 3.125rem;
    }

    .reqcardpic {
        position: static;
        margin-top: 1rem;
    }
}