* {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    color: white;
}

/* Блок с фоном */
.hero {
    position: relative;
    background: url("../img/rust-bg.jpg") no-repeat center center fixed;
    background-size: cover;
}

/* Затемнение фона */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Тёмный блок поверх фона */
.hero .overlay {
    position: relative;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 20px;
    max-width: 600px;
    width: 100%;
}

/* Контент поверх затемнения */
.content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* Форма */
.form-container {
    background: #111;
    padding: 20px;
    max-width: 500px;
    width: 100%;
    margin: 20px auto;
    border-radius: 12px;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-container label {
    display: block;
    margin-top: 10px;
    color: #ccc;
}

.form-container input,
.form-container textarea {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    margin-top: 5px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    display: block;
}

.form-container textarea {
    min-height: 120px;
    resize: vertical;
}

/* SmartCaptcha подгоняем по размеру */
.captcha-wrapper {
    width: 100%;
    overflow: hidden;
    margin-top: 15px;
}

.smart-captcha {
    transform: scale(0.99);
    transform-origin: 0 0;
    display: block;
}

.send-button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: #e63946;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.send-button:hover {
    background: #ff4757;
}

/* Адаптив */
@media (max-width: 600px) {
    .smart-captcha {
        transform: scale(0.97);
    }

    .form-container {
        padding: 15px;
        margin: 10px;
    }

    .form-container h2 {
        font-size: 18px;
    }

    .form-container input,
    .form-container textarea {
        font-size: 14px;
        padding: 10px;
    }

    .send-button {
        font-size: 14px;
        padding: 10px;
    }
}

/* Уведомления */
.notice {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #e63946;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    min-width: 300px;
}

.show-notice {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #2a9d8f;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    min-width: 300px;
}

/* зелёный */
.notice.success {
    background: #2a9d8f;
}

/* красный */
.notice.error {
    background: #e63946;
}

.notice .close-btn,
.show-notice .close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    background: white;
    color: #e63946;
    border: none;
    border-radius: 2px;
    font-size: 10px;
    line-height: 10px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}