* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
}

body {
    background: linear-gradient(145deg, #1a2a3a 0%, #0f1a24 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 1000px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 30px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

h1, h2 {
    color: #f0f3f8;
    text-align: center;
    font-weight: 500;
    margin-bottom: 20px;
}

.time-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 32px;
    padding: 20px;
    text-align: center;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.time-value {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
    color: #ffd966;
    text-shadow: 0 0 8px #ffb347;
}

.date-value {
    font-size: 1.6rem;
    color: #ddd;
    margin-top: 8px;
}

.city-selector {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

#city-input {
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    background: #2c3e44;
    color: white;
    width: 250px;
    outline: none;
    transition: 0.2s;
}

#city-input:focus {
    background: #1e2e36;
    box-shadow: 0 0 0 2px #ffd966;
}

#get-weather-btn {
    background: #ffb347;
    border: none;
    padding: 12px 28px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

#get-weather-btn:hover {
    background: #ff9f1c;
    transform: scale(1.02);
}

.weather-card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 32px;
    padding: 20px;
    color: #eee;
}

.current-weather {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.temp {
    font-size: 3rem;
    font-weight: bold;
    color: #ffaa66;
}

.forecast {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.forecast-day {
    background: rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 12px;
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.forecast-day .date {
    font-weight: bold;
    color: #ffd966;
}

.placeholder {
    text-align: center;
    padding: 40px;
    opacity: 0.7;
}

footer {
    margin-top: 35px;
    text-align: center;
    font-size: 0.8rem;
    color: #aac;
}

/* ===== Адаптивность для мобильных устройств ===== */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .time-value {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .date-value {
        font-size: 1.2rem;
    }

    .city-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    #city-input {
        width: 100%;
        text-align: center;
    }

    #get-weather-btn {
        width: 100%;
    }

    .current-weather {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .temp {
        font-size: 2.5rem;
    }

    .forecast {
        flex-direction: column;
        gap: 12px;
    }

    .forecast-day {
        width: 100%;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .time-value {
        font-size: 1.8rem;
    }

    .weather-card {
        padding: 15px;
    }

    footer {
        font-size: 0.7rem;
    }
}