html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.landing-body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    color: #333;
}

.landing-container {
    max-width: 90vw;
    padding: 1rem;
}

.landing-logo {
    width: 250px;
    max-width: 80vw;
    border-radius: 20px;
    box-shadow: 0 0 40px 20px rgba(255, 204, 153, 0.3);
}

.landing-title {
    margin-top: 1.5rem;
    font-size: 1.8rem;
}

.landing-subtitle {
    font-size: 1.2rem;
    color: #666;
}

.subscribe-form {
    margin-top: 1.5rem;
}

    .subscribe-form input {
        padding: 0.5rem;
        font-size: 1rem;
        width: 250px;
        max-width: 80%;
        margin-right: 0.5rem;
    }

    .subscribe-form button {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        background-color: #ffcc99;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

.result-message {
    margin-top: 1rem;
    color: green;
}

@media (max-width: 500px) {
    .landing-title {
        font-size: 1.4rem;
    }

    .landing-subtitle {
        font-size: 1rem;
    }

    .landing-logo {
        width: 200px;
    }
}

.pre-subscribe {
    margin-top: 2rem;
}

.subscribe-link {
    color: #e86c00;
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    background-image: url("../images/subscribe.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 4rem 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 720px;
    height: 280px; /* Увеличим высоту формы */
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.subscribe-form input {
    padding: 0.4rem 0.75rem;
    font-size: 1rem;
    width: 220px; /* поменьше */
    max-width: 80%;
    margin-right: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.subscribe-form button {
    padding: 0.45rem 1rem;
    font-size: 1rem;
    background-color: #ffcc99;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

@media (max-width: 600px) {
    .modal-content {
        background-image: url("../images/subscribe-portrait.jpg");
        background-position: center top;
        background-size: cover;
        padding: 2rem 1rem;
        height: 500px;
    }

    .subscribe-form {
        flex-direction: column;
        align-items: center;
        margin-top: auto;
    }

        .subscribe-form input {
            width: 100%;
            margin: 0 0 1rem 0;
        }

        .subscribe-form button {
            width: 100%;
        }

    .modal-content h2,
    .modal-content p {
        color: #333;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    }
}