html, body {
    max-width: 100vw;
    min-height: 100vh;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-size: cover;
    background-position: center;
    background-color: #242424;
    background-image: url('images/court.webp');
    color: rgba(255, 255, 255, 0.87);
}

.container {
    margin: 0 auto;
    padding: 0 10%;
    text-align: center;
    max-width: 1280px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100vh;
}

.content {
    max-width: 500px;
    position: relative;
    text-align: left;
}

h1 {
    font-family: 'Lato', sans-serif;
    font-weight: 800;
    font-size: 60px;
    margin-bottom: 20px;
    white-space: pre-line;
}

p {
    font-size: 18px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 30px;
}

.btn-green {
    color: #9CF73E;
    border: 2px solid #9CF73E;
}

.btn-blue {
    color: #ffffff;
    background-color: #85D0FA;
    border: 2px solid #FFFFFF;
}

.btn:hover {
    box-shadow: 0 0 10px rgba(156, 247, 62, 0.8);
    transform: scale(1.1);
}

.phone {
    display: flex;
    align-items: flex-end;
    height: 100%;
    overflow: hidden;
    justify-content: center;
}

.phone img {
    max-height: 700px;
    max-width: 100%;
    display: block;
    opacity: 0; /* Скрываем изначально, анимация теперь в JS */
    transform: translateY(100%);
}

/* Стили для портретной (вертикальной) ориентации */
@media (orientation: portrait) {

    .container {
        flex-direction: column;
        align-items: center;
    }

    .content {
        text-align: center;
    }
}

/* Стили для ландшафтной (горизонтальной) ориентации */
@media (orientation: landscape) {

    .content {
        text-align: left;
    }

}

/* Стили для ландшафтной (горизонтальной) ориентации */
@media (orientation: landscape) and (max-height: 500px) {

    .content {
        max-width: 80%;
        text-align: left;
    }

    h1 {
        font-size: 40px;
        margin-bottom: 15px;
    }

    p {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .btn {
        font-size: 18px;
        padding: 12px 24px;
    }

    .phone img {
        max-height: 300px;
        width: 100%;
        object-fit: contain;
    }

}

/* ===== iPad Pro (1024px - 1199px) ===== */
@media (min-width: 1024px) and (max-width: 1199px) {

    .content {
        max-width: 75%;
    }

    h1 {
        font-size: 55px;
        margin-bottom: 20px;
    }

    p {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .btn {
        font-size: 20px;
        padding: 14px 28px;
    }

    .phone img {
        max-height: 550px;
        width: 100%;
        object-fit: contain;
    }
}

/* ===== iPad (768px - 991px) ===== */
@media (orientation: portrait) and (min-width: 768px) and (max-width: 991px) {

    .content {
        max-width: 80%;
    }

    h1 {
        font-size: 50px;
        margin-bottom: 15px;
    }

    p {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .btn {
        font-size: 18px;
        padding: 12px 24px;
    }

    .phone img {
        max-height: 500px;
        width: 100%;
        object-fit: contain;
    }
}

/* ===== Мобильные устройства (до 767px) ===== */
@media (max-width: 767px) {

    .content {
        max-width: 100%;
    }

    h1 {
        font-size: 40px;
        margin-bottom: 10px;
    }

    p {
        font-size: 16px;
    }

    .btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    .phone img {
        max-height: 500px;
        width: 100%;
        object-fit: contain;
    }
}

/* ===== iPhone SE и маленькие экраны (до 400px шириной) ===== */
@media (max-width: 400px) {
    .phone img {
        max-height: 450px;
        width: 100%;
    }
}

/* ===== Планшеты с разрешением 1280x800 (вертикальное расположение) ===== */
@media (max-width: 800px) and (max-height: 1280px) {
    .phone img {
        max-height: 90%; /* Уменьшаем на 10% */
        width: 90%;
    }
}
