/* ======== Общие стили ======== */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    text-align: center;
    margin: 0;
    padding: 0;
    color: #111;
}

/* Контейнер */
.container {
    max-width: 800px;
    margin: 100px auto 80px auto;
    background: #fff;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* ======== Шапка ======== */
header {
    background: #043906;
    color: white;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin-left: 20px;
}

.logo a {
    color: white;
    text-decoration: none;
}

/* Меню */
.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.menu li {
    margin: 0 15px;
}

.menu a {
    color: #d7d310;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: bold;
}

.menu a:hover {
    color: #ffffff;
}

/* Кнопка бургер-меню */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    margin-right: 20px;
    padding: 10px 14px;
    background: #2e2e2e;
    color: white;
    border: none;
    border-radius: 6px;
}

/* ======== Блок погоды ======== */
.weather-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 16px;
}

.weather-box div {
    flex: 1 1 30%;
    min-width: 150px;
}

/* ======== Подвал ======== */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #222;
    color: #fff;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

footer .left,
footer .right {
    margin: 0 20px;
    font-size: 14px;
}

footer a {
    color: #d7d310;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #ffffff;
}

/* ======== Формы ======== */
form {
    margin: 20px 0;
}

input[type="text"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 60%;
    max-width: 300px;
}

button[type="submit"] {
    padding: 10px 14px;
    font-size: 16px;
    background-color: #043906;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #05630c;
}

/* ======== Мобильная адаптация ======== */
@media (max-width: 1024px) {
    .container {
        max-width: 90%;
        padding: 18px;
    }
    .menu li {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    header {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #043906;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 999;
        border-top: 1px solid #2a652d;
    }

    .menu li {
        margin: 10px 0;
    }

    .menu a {
        display: block;
        padding: 12px 0;
        color: #d7d310;
        font-size: 18px;
    }

    .menu.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .container {
        margin-top: 100px;
        padding: 16px;
    }

    footer {
        position: static;
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    footer .left,
    footer .right {
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .logo {
        font-size: 20px;
        margin-left: 10px;
    }

    input[type="text"] {
        width: 80%;
        font-size: 14px;
    }

    .weather-box {
        flex-direction: column;
        text-align: left;
        font-size: 14px;
    }

    .weather-box div {
        min-width: 100%;
        margin: 4px 0;
    }

    footer {
        font-size: 13px;
    }
}

/* ======== Большие экраны ======== */
@media (min-width: 1200px) {
    .container {
        max-width: 1000px;
        font-size: 18px;
    }

    .weather-box {
        font-size: 18px;
    }

    header {
        padding: 12px 0;
    }

    .logo {
        font-size: 28px;
    }

    .menu a {
        font-size: 18px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1200px;
        font-size: 20px;
    }

    .menu a {
        font-size: 18px;
    }

    .weather-box {
        font-size: 20px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
        font-size: 22px;
    }

    .weather-box {
        font-size: 22px;
    }

    .menu a {
        font-size: 18px;
    }

    footer {
        font-size: 18px;
    }
}
